Catalog JSON API Documentation

So, you want to develop some tooling around the Catalog API - perhaps some custom reports? Great! This API gives you everything that Catalog has to offer.

Authentication

Visit this page to create an API key. Once you’ve received your key, treat it like a password.

Use SSL for all requests to the API. Non-SSL requests will result in redirects, and your API key will be sent in the clear.

To authenticate, send the API key as a request header. Here’s an example using cURL:

curl https://www.my-catalog.edu/api/v1/products -H 'Authorization: Token token="my-api-key"'

Pagination

All index endpoints support pagination. Specifically, we implement RFC5988.

Pagination Options

You can use ?page= to set the page of data you want to retrieve. If no items exist for that page, the response will be a root key with an empty array.

curl https://www.my-catalog.edu/api/v1/courses?page=2

{
  "courses": []
}

To change the number of items returned for each page, you can use ?per_page=. This defaults to 20 and has a max of 100.

curl https://www.my-catalog.edu/api/v1/courses?per_page=40&page=2

Information about pagination is provided in the Link header. Here is an example of what the header could look like

curl -I https://www.my-catalog.edu/api/v1/courses?page=3

Link: <https://www.my-catalog.edu/api/v1/courses?page=4>; rel="next",  
      <https://www.my-catalog.edu/api/v1/courses?page=15>; rel="last",
      <https://www.my-catalog.edu/api/v1/courses?page=1>; rel="first",
      <https://www.my-catalog.edu/api/v1/courses?page=2>; rel="prev"

Let’s talk about what each link means. rel="next" lets us know that the next page of data is page=4. This make sense given that we requested page 3. rel="prev" lets us know that the page previous to the one we requested is page=2. rel="next" indicates the next page of data to request. rel="last" tells us the last and total number of pages of data that currently exist.

Not all rel= links will exist on every response. For instance, the response for the first page of data will not have rel="first" or rel="prev". The same is true for the last page of data. This means that you can programmatically traverse all pages of data by requesting the first page and continuing to request the rel="next" until the response does not contain a rel="next".

It’s important to note that altering the per_page= will change the total number of pages.

Listing Image

If you are uploading a product image in SVG format. You will need to specify the file type.

curl https://www.my-catalog.edu/api/v1/products -F "course[listing_image][email protected];type=image/svg+xml"'

Analytics

The POST request parameters should be sent as JSON in the request body.
If the request is unfiltered, an empty JSON object should be sent as the filter.

Getting enrollments analytics

Endpoint

POST https://www.my-catalog.edu/api/v1/analytics/enrollments

Parameters

Name Description Type
account_ids List of account ids Array
product_ids List of product ids Array
product_statuses List of product statuses (OPEN, CLOSED, and/or DELETED) Array
student_ids List of student ids(catalog user id) Array
student_canvas_user_ids List of student ids(canvas user id) Array
enrollment_date_from Enrollment date from Datetime
enrollment_date_to Enrollment date to Datetime
enrollment_statuses List of enrollment statuses (ACTIVE, COMPLETED, DROPPED and/or CONCLUDED) Array
completion_date_from Completion date from Datetime
completion_date_to Completion date to Datetime

Request

Route

POST https://www.my-catalog.edu/api/v1/analytics/enrollments

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Content-Type: application/json
Host: www.my-catalog.edu
Cookie: 

Body

{
  "account_ids": [
    1,
    2,
    3
  ],
  "product_ids": [
    1,
    2,
    3
  ],
  "product_statuses": [
    "OPEN",
    "CLOSED",
    "DELETED"
  ],
  "student_ids": [
    1,
    2,
    3
  ],
  "student_canvas_user_ids": [
    1,
    2,
    3
  ],
  "enrollment_date_from": "2023-06-05T14:46:59.944581+02:00",
  "enrollment_date_to": "2023-06-06T14:46:59.944581+02:00",
  "enrollment_statuses": [
    "ACTIVE",
    "COMPLETED",
    "DROPPED",
    "CONCLUDED"
  ],
  "completion_date_from": "2023-06-05T14:46:59.944581+02:00",
  "completion_date_to": "2023-06-06T14:46:59.944581+02:00"
}

Response

Response Fields

Name Description Type
id Enrollment id Integer
account_id Account id Integer
account_name Account name String
product[name] Product name String
product[id] Product id Integer
product[url] Product url (null if product is deleted) String
product[sku] Product sku String
product_status Product status (OPEN, CLOSED, or DELETED) String
canvas_course_id Canvas course id Integer
student[canvas_user_id] Student Canvas user id Integer
student[name] Student name String
student[email] Student email String
student[canvas_user_id_string] Canvas user id in string format String
created_at Creation date Datetime
completed_at Completion date Datetime
enrollment_status Enrollment status (ACTIVE, COMPLETED, DROPPED or CONCLUDED) String
certificate_attainable Product has a certificate Boolean
certificate_offered Certificate offered/earned Boolean
custom_fields List of custom fields (consist of key and value) Array
certificate_url Certificate url String

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Per-Page: 20
Total: 1
Content-Type: application/json; charset=utf-8
X-CSRF-Token: JPQckj5KOgug5bztbXqiOY9hKniF7q+V7sTwP39q6NIjbom9b4LACHyFwAN6siq0c0/gwIOrJu41epyOFTV0Bg==
ETag: W/"97a734a5750ae8512b5a732ee4a6dce6"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=V2xET3cxZ3ZROFFmSEpEV2hvU0YraDM3bGZXL3p2bGFwRzN2U3Bib1F1TDJkZlV5Ti9EUzJzSjIvUmhQQk1sM0l2NXl3eEJGV2o4TlVoWm5Ia05heDhkMkNZMWkyRDYwV0g2aldzU2FpNU9lSDhYYURHYVRpMmRWQWFncHZLck1rQVlVU0pjU3plYTIrNEVBVTFLL2piOVNObjBMOG1xTEhvSmxma1IrVU81ZE9uQ1hBdXFWNFNDMndzSTZ6eFFOLS1PL2QvYVFNajFDTUh4VW1IZGU3VCtBPT0%3D--87303773f788462603461fe0fc183e66b96d25d3; path=/; HttpOnly
X-Request-Id: b74654e9-f658-4e0d-b195-4b3f0f8f3808
X-Runtime: 0.096810
Content-Length: 690

Body

{
  "enrollments": [
    {
      "id": 25,
      "account_id": 3,
      "account_name": "Sub-Account 1",
      "product": {
        "name": "Course 1",
        "id": 5,
        "url": "https://www.my-catalog.edu/admin/products/1/edit",
        "sku": "sku"
      },
      "product_status": "OPEN",
      "canvas_course_id": 11,
      "student": {
        "canvas_user_id": 1,
        "name": "User 15",
        "email": "[email protected]",
        "canvas_user_id_string": "1"
      },
      "created_at": "2023-06-05T14:46:59.944581+02:00",
      "completed_at": "2023-06-29T12:13:27+02:00",
      "enrollment_status": "COMPLETED",
      "certificate_attainable": true,
      "certificate_offered": true,
      "custom_fields": [
        {
          "key": "text_udf",
          "value": "awesome udf"
        },
        {
          "key": "checkbox_udf",
          "value": "1"
        }
      ],
      "certificate_url": "https://www.my-catalog.edu/admin/certificates/1.pdf?user_id=1"
    }
  ]
}

Getting orders analytics

Endpoint

POST https://www.my-catalog.edu/api/v1/analytics/orders

Parameters

Name Description Type
account_ids List of account ids Array
product_ids List of product ids Array
product_statuses List of product statuses (OPEN, CLOSED, and/or DELETED) Array
student_ids List of student ids(catalog user id) Array
student_canvas_user_ids List of student ids(canvas user id) Array
purchaser_ids List of purchaser ids(catalog user id) Array
purchaser_canvas_user_ids List of purchaser ids(canvas user id) Array
bulk_purchases_only Bulk purchases only Boolean
purchase_date_from Purchase date from Datetime
purchase_date_to Purchase date to Datetime
order_fee List of order fee types (FREE and/or PAID) Array
listing_price_min Listing price minimum Decimal
listing_price_max Listing price maximum Decimal
promo_codes List of promotion code states (APPLIED and/or NOT_APPLIED) Array
revenue_min Revenue minimum Decimal
revenue_max Revenue maximum Decimal

Request

Route

POST https://www.my-catalog.edu/api/v1/analytics/orders

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Content-Type: application/json
Host: www.my-catalog.edu
Cookie: 

Body

{
  "account_ids": [
    1,
    2,
    3
  ],
  "product_ids": [
    1,
    2,
    3
  ],
  "product_statuses": [
    "OPEN",
    "CLOSED",
    "DELETED"
  ],
  "student_ids": [
    1,
    2,
    3
  ],
  "student_canvas_user_ids": [
    1,
    2,
    3
  ],
  "purchaser_ids": [
    1,
    2,
    3
  ],
  "purchaser_canvas_user_ids": [
    1,
    2,
    3
  ],
  "bulk_purchases_only": true,
  "purchase_date_from": "2023-06-05T14:46:59.944581+02:00",
  "purchase_date_to": "2023-06-06T14:46:59.944581+02:00",
  "order_fee": 10.0,
  "listing_price_min": 5.0,
  "listing_price_max": 100.6,
  "promo_codes": [
    "APPLIED",
    "NOT_APPLIED"
  ],
  "revenue_min": 5.0,
  "revenue_max": 1000.1
}

Response

Response Fields

Name Description Type
account_id Account id Integer
account_name Account name String
product[name] Product name String
product[id] Product id Integer
product[url] Product url (null if product is deleted) String
product[sku] Product sku String
product_status Product status (OPEN, CLOSED, or DELETED) String
canvas_course_id Canvas course id Integer
purchaser[id] Purchaser Catalog user id Integer
purchaser[canvas_user_id] Purchaser Canvas user id Integer
purchaser[name] Purchaser name String
purchaser[email] Purchaser email String
purchaser[canvas_user_id_string] Purchaser Canvas user id in string format String
purchased_at Purchase date Datetime
order_id Order id Integer
order_item_id Order item id Integer
reference_id Reference id String
list_price Listing price Decimal
currency Currency String
promo_codes List of promotion codes Array
discount Discount Decimal
revenue Revenue Decimal
bulk_purchase Bulk purchase Boolean
seat_count Seat count Integer
bulk_enrollments List of bulk enrolled students Array
bulk_enrollments[id] Bulk enrolled Catalog user id Integer
bulk_enrollments[canvas_user_id] Bulk enrolled Canvas user id Integer
bulk_enrollments[name] Bulk enrolled student name String
bulk_enrollments[email] Bulk enrolled student email String
bulk_enrollments[canvas_user_id_string] Bulk enrolled Canvas user id in string format String
last_modification_date Last modification date of revenue Datetime
revenue_change_history Revenue change history list Array
revenue_change_history[modification_date] Modification date of revenue update Datetime
revenue_change_history[new_value] New revenue value Decimal
revenue_change_history[new_value_currency] New revenue value currency String
revenue_change_history[old_value] Old revenue value Decimal
revenue_change_history[old_value_currency] Old revenue value currency String
revenue_change_history[reason] Reason of revenue update String
revenue_change_history[user_name] Name of the user who updated the revenue String
revenue_change_history[user_profile_link] Link to the user profile String

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Per-Page: 20
Total: 1
Content-Type: application/json; charset=utf-8
X-CSRF-Token: Q74B15UdM4qtiDElYGjtBPsIGYE6MV+OXHsZzJw4FCo2eZf9mBbeifvyBnqxudr+NMfUIGcGU6R9dXpyWGWOKA==
ETag: W/"2bc151db8614f69f334f1698f64f13bf"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=bFhoYjhRMnpTRVQ0M2FiSVlVZ2pJZnRBdExTTFAzN01CZmZ5Ynp2eWUzQmh3c0VIN2xGaElLaTVOTm50eStzazZoeDdnZUxlL0R2MTFmZFh5c01xUDBYbUE2TWFTSFRFaFNuaXpmR0VDbXBCaWdjVFJtcEh2OElMTk9EbDUyYm04ZUMxZUhvMk1ibzRHRW9ROGNOTUZ1VE5Xb08yRnZXbkhjL0QweEVjeU90S0N3dEhjcGYxb3lma0cwM09BY2NPLS01UjIxbWkzREo5SHNwK3NlOCtpblRRPT0%3D--1ee47a5ccd1368958a9ed15ec6ef17379ac974f4; path=/; HttpOnly
X-Request-Id: 193ca92e-8552-4ea9-bce9-56b5bb0154ae
X-Runtime: 0.044529
Content-Length: 1470

Body

{
  "orders": [
    {
      "account_id": 3,
      "account_name": "Sub-Account 1",
      "product": {
        "name": "Course 1",
        "id": 5,
        "url": "https://www.my-catalog.edu/admin/products/1/edit",
        "sku": "sku"
      },
      "product_status": "OPEN",
      "canvas_course_id": 11,
      "purchaser": {
        "id": 1,
        "canvas_user_id": 1,
        "name": "Purchaser 1",
        "email": "[email protected]",
        "canvas_user_id_string": "1"
      },
      "purchased_at": "2023-07-02T23:30:59.052239+02:00",
      "order_id": 81,
      "order_item_id": 123,
      "reference_id": "PR-81-82",
      "list_price": 5.0,
      "currency": "USD",
      "promo_codes": [
        "PROMO1",
        "PROMO2"
      ],
      "discount": 10.0,
      "revenue": 5.0,
      "bulk_purchase": true,
      "seat_count": 3,
      "bulk_enrollments": [
        {
          "id": 141,
          "canvas_user_id": 74,
          "name": "User 17",
          "email": "[email protected]",
          "canvas_user_id_string": "74"
        },
        {
          "id": 138,
          "canvas_user_id": 73,
          "name": "User 16",
          "email": "[email protected]",
          "canvas_user_id_string": "73"
        }
      ],
      "last_modification_date": "2023-07-09T23:30:59.052239+02:00",
      "revenue_change_history": [
        {
          "modification_date": "2023-07-09T23:30:59.052239+02:00",
          "new_value": 5.0,
          "new_value_currency": "USD",
          "old_value": 2.0,
          "old_value_currency": "USD",
          "reason": "This is very important",
          "user_name": "[email protected]",
          "user_profile_link": "https://www.my-catalog.edu/accounts/2/users/1"
        },
        {
          "modification_date": "2023-07-08T23:30:59.052239+02:00",
          "new_value": 2.0,
          "new_value_currency": "USD",
          "old_value": 11.0,
          "old_value_currency": "USD",
          "reason": "This is important",
          "user_name": "[email protected]",
          "user_profile_link": "https://www.my-catalog.edu/accounts/2/users/2"
        }
      ]
    }
  ]
}

Getting products analytics

Endpoint

POST https://www.my-catalog.edu/api/v1/analytics/products

Parameters

Name Description Type
account_ids List of account ids Array
product_ids List of product ids Array
product_statuses List of product statuses (OPEN, CLOSED, and/or DELETED) Array
creation_date_from Creation date from Datetime
creation_date_to Creation date to Datetime
enrollment_count_min Enrollment count minimum Integer
enrollment_count_max Enrollment count maximum Integer
completion_count_min Completion count minimum Integer
completion_count_max Completion count maximum Integer
dropped_count_min Dropped count minimum Integer
dropped_count_max Dropped count maximum Integer
listing_price_min Listing price minimum Decimal
listing_price_max Listing price maximum Decimal
promo_codes List of promotion code states (APPLIED and/or NOT_APPLIED) Array
revenue_min Revenue minimum Decimal
revenue_max Revenue maximum Decimal
certificate_offered Certificate offered for the product Boolean

Request

Route

POST https://www.my-catalog.edu/api/v1/analytics/products

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Content-Type: application/json
Host: www.my-catalog.edu
Cookie: 

Body

{
  "account_ids": [
    1,
    2,
    3
  ],
  "product_ids": [
    1,
    2,
    3
  ],
  "product_statuses": [
    "OPEN",
    "CLOSED",
    "DELETED"
  ],
  "creation_date_from": "2023-06-05T14:46:59.944581+02:00",
  "creation_date_to": "2023-06-06T14:46:59.944581+02:00",
  "enrollment_count_min": 0,
  "enrollment_count_max": 5,
  "completion_count_min": 0,
  "completion_count_max": 5,
  "dropped_count_min": 0,
  "dropped_count_max": 5,
  "listing_price_min": 10.1,
  "listing_price_max": 1000.5,
  "promo_codes": [
    "APPLIED",
    "NOT_APPLIED"
  ],
  "revenue_min": 10.1,
  "revenue_max": 500.5,
  "certificate_offered": true
}

Response

Response Fields

Name Description Type
account_id Account id Integer
account_name Account name String
product[name] Product name String
product[id] Product id Integer
product[url] Product url (null if product is deleted) String
product[sku] Product sku String
product_status Product status (OPEN, CLOSED, or DELETED) String
created_at Product creation date Datetime
canvas_course_id Canvas course id Integer
enrollment_count Enrollment count Integer
dropped_count Dropped count Integer
completion_count Completion count Integer
currency Currency String
list_price Listing price Decimal
promo_codes List of promotion codes Array
discount Discount Decimal
revenue Revenue Decimal
points Points (null if account measurement is not point) Decimal
ceus CEUs (null if account measurement is not CEU) Decimal
credits Credits (null if account measurement is not credit) Decimal
certificate_offered Certificate offered for this product Boolean

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Per-Page: 20
Total: 1
Content-Type: application/json; charset=utf-8
X-CSRF-Token: xOn03Cdtomp08nDb78aoEcv9LBhKQlG4cuUths1wxuSjtrurturdhZ+aO+O6nFymTQAfwQNSsw8yBA9m015JzQ==
ETag: W/"5a2f0129ae43f07ed8a378bdee3c6555"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=Q1VxWkVkWXVMbjNKamNHODhaNEdweTNZK3B6SzhPUXg3Vm1jTGJoZzZ5cnFncHdhY0NGUldQVTd2NlFwMjFRa3UxNkxFWUc4SXpIYWp1MEJmT3JSM1g4Vll6WmU1TVNsREx5UUkzTVVOS3RZUmtrakxlbXQ2V09sQ0t3TEN4bFZHeFJmNk82b2dvK0tsWHFkV0JIUnBGRFVtRktXUTh2L2tEY2V6d1VaZGtPK3g2em9ZVEFFeGVuNGIrS0Z5TnRZLS0ycGpEc0padnhMdWhNWjhpNm9DNDdRPT0%3D--05d3266a9810b4b8d2370aa424e8f9efcb016f69; path=/; HttpOnly
X-Request-Id: c39f415c-af60-48a7-8928-e8268d12cf73
X-Runtime: 0.047006
Content-Length: 463

Body

{
  "products": [
    {
      "account_id": 3,
      "account_name": "Sub-Account 1",
      "product": {
        "name": "Course 1",
        "id": 5,
        "url": "https://www.my-catalog.edu/admin/products/1/edit",
        "sku": "sku"
      },
      "product_status": "OPEN",
      "created_at": "2023-06-05T14:46:59.944581+02:00",
      "canvas_course_id": 11,
      "enrollment_count": 7,
      "dropped_count": 3,
      "completion_count": 2,
      "currency": "USD",
      "list_price": 10.0,
      "promo_codes": [
        "PROMO1",
        "PROMO2"
      ],
      "discount": 10.0,
      "revenue": 60.0,
      "credits": 5.0,
      "certificate_offered": true
    }
  ]
}

Getting users analytics

Endpoint

POST https://www.my-catalog.edu/api/v1/analytics/users

Parameters

Name Description Type
account_ids List of account ids Array
student_ids List of student ids(catalog user id) Array
student_canvas_user_ids List of student ids(canvas user id) Array
enrollment_count_min Enrollment count minimum Integer
enrollment_count_max Enrollment count maximum Integer
last_enrollment_date_from Last enrollment date from Datetime
last_enrollment_date_to Last enrollment date to Datetime
registration_date_from Registration date from Datetime
registration_date_to Registration date to Datetime
registered_through List of registration sources (CANVAS and/or CATALOG) Array

Request

Route

POST https://www.my-catalog.edu/api/v1/analytics/users

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Content-Type: application/json
Host: www.my-catalog.edu
Cookie: 

Body

{
  "account_ids": [
    1,
    2,
    3
  ],
  "student_ids": [
    1,
    2,
    3
  ],
  "student_canvas_user_ids": [
    1,
    2,
    3
  ],
  "enrollment_count_min": 0,
  "enrollment_count_max": 5,
  "last_enrollment_date_from": "2023-06-05T14:46:59.944581+02:00",
  "last_enrollment_date_to": "2023-06-06T14:46:59.944581+02:00",
  "registration_date_from": "2023-06-05T14:46:59.944581+02:00",
  "registration_date_to": "2023-06-06T14:46:59.944581+02:00",
  "registered_through": [
    "CANVAS",
    "CATALOG"
  ]
}

Response

Response Fields

Name Description Type
id Catalog user id Integer
canvas_user_id Canvas user id Integer
name User name String
email User email String
account_id Account id Integer
account_name Account name String
registered_through Registration source (CANVAS or CATALOG) String
registered_at Registration date Datetime
enrollment_count Enrollment count Integer
last_enrolled_at Last Enrollment date Datetime
custom_fields List of custom fields (consist of key and value) Array

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Per-Page: 20
Total: 1
Content-Type: application/json; charset=utf-8
X-CSRF-Token: TeqXgz3/OGgf0DHb9dSG1tpTR5GChC7go/LuIGNqE82pcXjalw4dmWSXOF6fF358cEGMxpT71YeN5n02RZvMBA==
ETag: W/"bd444a5c10a5f6c1b1ca69e53a5d8c30"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=MFFVajBKcW9Ta3V3TkVHc29aQ0NkdzhRZk4wb1BGWTBLenVSNWRtTjRyOHBDNkJ5bjdYd1ZRZWY1Njh3VEZDNUFkZDVyUGFJbE9HYUFPVWI1UkFLem1xSWczZHF5bjUrckRLQzRMbG4yREQ2L3lLL0VhSFlMcVF2R212Ry9HTmJITEd1Nk9sRmtsVzRJQlpFWFNsSDg0Q2N0RXgvaFY5NGtsc011dzJ5VWQzc3ZlcVVsRFM0VzAxdTZPK2JXZ3pGLS1KODQvWG9ncngybHMwVEFtUFZhRk9BPT0%3D--460fa23948fdb873ea48650ac59cbad232990f38; path=/; HttpOnly
X-Request-Id: b69ecb7d-bd10-4bf6-b7a0-3cb826bf6d1c
X-Runtime: 0.188358
Content-Length: 386

Body

{
  "users": [
    {
      "id": 150,
      "canvas_user_id": 77,
      "name": "User 19",
      "email": "[email protected]",
      "account_id": 3,
      "account_name": "Sub-Account 1",
      "registered_through": "CATALOG",
      "registered_at": "2023-07-03T15:03:57.597+02:00",
      "enrollment_count": 2,
      "last_enrolled_at": "2023-07-06T17:30:50.991764+02:00",
      "custom_fields": [
        {
          "key": "text_udf",
          "value": "awesome udf"
        },
        {
          "key": "checkbox_udf",
          "value": "1"
        }
      ]
    }
  ]
}

Catalogs

Getting a specific catalog

Endpoint

GET https://www.my-catalog.edu/api/v1/catalogs/:id

Request

Route

GET https://www.my-catalog.edu/api/v1/catalogs/28

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Host: www.my-catalog.edu
Cookie: 

Response

Response Fields

Name Description Type
id Identifier for this catalog. Integer
created_at The creation date for the catalog. Datetime
updated_at The last time the catalog was updated. Datetime
name The name of the catalog. String
canvas_domain Domain for the corresponding canvas account. String
canvas_id Id for the corresponding canvas account. String
logo URL for the catalog logo. String
locale Three character locale for the catalog. String
url Url for the catalog String
user_defined_fields An array of serialized user defined field records provided to the catalog either through direct assignment or inheritance. Array
user_defined_field[name] Name of the user defined field String
user_defined_field[label] Label that will be shown with the field String
user_defined_field[field_type] HTML input type of the field String
user_defined_field[required] Indicates if the custom field is required Boolean
parent[id] The id of the parent catalog Integer
parent[name] The name of the parent catalog Integer
settings[privacy_policy_url] Url of the privacy policy for this catalog. String
settings[terms_url] Url of the terms used for this catalog. String
settings[currency] Three character currency code. String
settings[time_zone] Timezone configured for this catalog. String
settings[country] Two character country code. String
settings[email_from_name] Name that appears as the sender in emails. String
settings[allow_user_registration] Indicates if new users allowed to enroll classes. Boolean
settings[title_tag] Used for custom titles in HTML. String
settings[meta_description] Used to a meta tag description in HTML. String
settings[custom_head_content] Used to add custom head content to HTML. String
settings[custom_body_content] Used to add custom body content to HTML. String
settings[show_listings_in_parent] Indicates if this catalogs listings will show in a parent catalog. Boolean
settings[skus_enabled] Indicates if the course displays the sku field. Boolean

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/json; charset=utf-8
X-CSRF-Token: nc+1Wa1rxdiezFXeSG1gDUAh+ka+xEC5R50peZkAy/YkMCc7wlScKssyHQFNxeEBpe7aeOFIW1qrUyEsOMDM6A==
ETag: W/"6b229a00de99299a9939c1b070dc24ca"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=TWQ4dWw4a3k0bEZlb1laWVVGaGZUVjl0VE55Z1cxbExzVGt3dmRweW1yT0lxTDBiTFdKZElmN21xeGtUdFBvelA2UE5CREVYYUR6T3lWT0JnNDdlSVRWVENNc0k4aEJ0T21kenVabnpLa2RtY3BkbDh3VjRqdmROZk5NYzg5S0VhdXlObFltcEg4TkQzT2VqR2JCUEVrTnVlbm4rU1JwS1dHWUdBdEpuT3pidWNMazFrdktmQU1CRXk4UjRBYzRILS1lbFdWSHVzSHROQVhsKzFQZmJMbHNBPT0%3D--57b278cb230dccf6b7e1a855adc91c48058e220a; path=/; HttpOnly
X-Request-Id: 2185591c-f16c-471d-a7ad-a3cea9cf1009
X-Runtime: 0.075858
Content-Length: 2015

Body

{
  "account": {
    "id": 28,
    "name": "Domain Account 32",
    "parent": null,
    "created_at": "2024/05/23 13:44:49 +0000",
    "updated_at": "2024/05/23 13:44:49 +0000",
    "canvas_domain": "www.canvas-domain-32.com",
    "canvas_id": 32,
    "settings": {
      "privacy_policy_url": "https://www.instructure.com/policies/privacy/",
      "terms_url": "https://www.instructure.com/policies/acceptable-use",
      "currency": "USD",
      "supported_payment_types": "standard",
      "time_zone": null,
      "country": "US",
      "measurement": "credit",
      "email_from_name": "Canvas Catalog",
      "email_from_address": "[email protected]",
      "allow_user_registration": true,
      "title_tag": null,
      "meta_description": null,
      "custom_head_content": null,
      "custom_body_content": null,
      "show_listings_in_parent": true,
      "order_id_prefix": null,
      "inherit_categories": false,
      "inherit_user_defined_fields": false,
      "beta_canvas_domain": null,
      "skus_enabled": false,
      "canvas_enrollment_events": false,
      "include_noncatalog_courses_in_dashboard": true,
      "external_idp_logout_workflow": false,
      "private_catalog": false,
      "bulk_purchase_disabled": false,
      "enroll_button_behavior": "cart",
      "shopping_cart_enabled": true,
      "external_registration_url": null,
      "external_registration_public_key": null,
      "redirect_external_registration_condition": "authenticated",
      "include_captcha": false,
      "user_registration_domain_restriction_type": "inherit",
      "user_registration_domain_deny_list": "",
      "user_registration_domain_allow_list": "",
      "frame_ancestors": "",
      "email_reply_to": "",
      "has_sso_warning": false,
      "measurement_id": null,
      "redirect_non_admins_to_root_url": false,
      "canvas_feature_send_usage_metrics": false,
      "disable_passive_login": false,
      "new_storefront": false,
      "tags_permission_default_value": true,
      "cross_listing_permission_default_value": false,
      "inherit_storefront_theme": false,
      "canvas_authentication_provider_id": "CANVAS_FIRST",
      "udf_collection_level": "registration"
    },
    "user_defined_fields": [

    ],
    "logo": "https://test-bucket.s3.amazonaws.com/test/logos/f81374f4340ecc5ba626ef294bc0f9567b08395d.jpeg",
    "locale": "en",
    "url": "http://www.my-catalog.edu",
    "measurement": "credit",
    "storefront_theme_id": null
  }
}

Listing catalogs

Endpoint

GET https://www.my-catalog.edu/api/v1/catalogs

Request

Route

GET https://www.my-catalog.edu/api/v1/catalogs

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Host: www.my-catalog.edu
Cookie: 

Response

Response Fields

Name Description Type
id Identifier for this catalog. Integer
created_at The creation date for the catalog. Datetime
updated_at The last time the catalog was updated. Datetime
name The name of the catalog. String
canvas_domain Domain for the corresponding canvas account. String
canvas_id Id for the corresponding canvas account. String
logo URL for the catalog logo. String
locale Three character locale for the catalog. String
url Url for the catalog String
user_defined_fields An array of serialized user defined field records provided to the catalog either through direct assignment or inheritance. Array
user_defined_field[name] Name of the user defined field String
user_defined_field[label] Label that will be shown with the field String
user_defined_field[field_type] HTML input type of the field String
user_defined_field[required] Indicates if the custom field is required Boolean
parent[id] The id of the parent catalog Integer
parent[name] The name of the parent catalog Integer
settings[privacy_policy_url] Url of the privacy policy for this catalog. String
settings[terms_url] Url of the terms used for this catalog. String
settings[currency] Three character currency code. String
settings[time_zone] Timezone configured for this catalog. String
settings[country] Two character country code. String
settings[email_from_name] Name that appears as the sender in emails. String
settings[allow_user_registration] Indicates if new users allowed to enroll classes. Boolean
settings[title_tag] Used for custom titles in HTML. String
settings[meta_description] Used to a meta tag description in HTML. String
settings[custom_head_content] Used to add custom head content to HTML. String
settings[custom_body_content] Used to add custom body content to HTML. String
settings[show_listings_in_parent] Indicates if this catalogs listings will show in a parent catalog. Boolean
settings[skus_enabled] Indicates if the course displays the sku field. Boolean

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Per-Page: 20
Total: 1
Content-Type: application/json; charset=utf-8
X-CSRF-Token: CT3r43vWNyj5oBw+FrVxDckcULLN8ZKCJmfDFPECrCc3T6A24LWuzaiosXNweLi2ykyKTHEmhsJbFCTL3bwZNw==
ETag: W/"1590920c8a01840f3f6f6b3d34b28242"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=M0krYitENHBXSWljQktabjFIalNMTEVRcThycjNRbnNKNmRhbnIxcVFrY2xYTXVEOU1JSTNSNHJIQUZKRUxqN281bUUzQ1RTRmhIRC85RkJtZkZJZFNCNjdKL1Njamg0RitiSTBHOEdTeHlmSTVjYzlvaSs3aG9iQVNoZXR5NmFQT29kZnhNRldhWnBCcUpsOGdETVhybG9haTBJWFFEaVN4TzBLRVlXQmlnWERzM2hYaHQ3YUxJNmdtUjFUckNMLS0zSGQ1a0crVStacDJlWGROWkZhQmNBPT0%3D--7c987b05d8f0ca29aa7b58177afca106377ed8ff; path=/; HttpOnly
X-Request-Id: 4fdf1425-9ee9-4f92-a4f0-338e3d9779ec
X-Runtime: 0.057500
Content-Length: 2673

Body

{
  "catalogs": [
    {
      "id": 27,
      "name": "Domain Account 27",
      "parent": null,
      "created_at": "2024/05/23 13:44:49 +0000",
      "updated_at": "2024/05/23 13:44:49 +0000",
      "canvas_domain": "www.canvas-domain-27.com",
      "canvas_id": 27,
      "settings": {
        "privacy_policy_url": "https://www.instructure.com/policies/privacy/",
        "terms_url": "https://www.instructure.com/policies/acceptable-use",
        "currency": "USD",
        "supported_payment_types": "standard",
        "time_zone": null,
        "country": "US",
        "measurement": "credit",
        "email_from_name": "Canvas Catalog",
        "email_from_address": "[email protected]",
        "allow_user_registration": true,
        "title_tag": null,
        "meta_description": null,
        "custom_head_content": null,
        "custom_body_content": null,
        "show_listings_in_parent": true,
        "order_id_prefix": null,
        "inherit_categories": false,
        "inherit_user_defined_fields": false,
        "beta_canvas_domain": null,
        "skus_enabled": false,
        "canvas_enrollment_events": false,
        "include_noncatalog_courses_in_dashboard": true,
        "external_idp_logout_workflow": false,
        "private_catalog": false,
        "bulk_purchase_disabled": false,
        "enroll_button_behavior": "cart",
        "shopping_cart_enabled": true,
        "external_registration_url": null,
        "external_registration_public_key": null,
        "redirect_external_registration_condition": "authenticated",
        "include_captcha": false,
        "user_registration_domain_restriction_type": "inherit",
        "user_registration_domain_deny_list": "",
        "user_registration_domain_allow_list": "",
        "frame_ancestors": "",
        "email_reply_to": "",
        "has_sso_warning": false,
        "measurement_id": null,
        "redirect_non_admins_to_root_url": false,
        "canvas_feature_send_usage_metrics": false,
        "disable_passive_login": false,
        "new_storefront": false,
        "tags_permission_default_value": true,
        "cross_listing_permission_default_value": false,
        "inherit_storefront_theme": false,
        "canvas_authentication_provider_id": "CANVAS_FIRST",
        "udf_collection_level": "registration"
      },
      "user_defined_fields": [
        {
          "list_order": 0,
          "name": "favorite_color",
          "label": "Favorite Color",
          "field_type": "text",
          "required": false,
          "required_message": "Favorite Color is required",
          "metadata": {
          }
        },
        {
          "list_order": 1,
          "name": "code_of_conduct",
          "label": "Code of Conduct",
          "field_type": "checkbox",
          "required": true,
          "required_message": "You must accept the Code of Conduct.",
          "metadata": {
          }
        },
        {
          "list_order": 2,
          "name": "age",
          "label": "Age",
          "field_type": "text",
          "required": true,
          "required_message": "You must provide an Age.",
          "metadata": {
          }
        },
        {
          "list_order": 3,
          "name": "yes_no",
          "label": "Yes or No",
          "field_type": "select",
          "required": false,
          "required_message": "Yes or No is required",
          "metadata": {
            "options": [
              "Yes",
              "No"
            ]
          }
        }
      ],
      "logo": "https://test-bucket.s3.amazonaws.com/test/logos/ac4be354426ea3ccda0b6188bc5114511a68e51a.jpeg",
      "locale": "en",
      "url": "http://www.my-catalog.edu",
      "measurement": "credit",
      "storefront_theme_id": null
    }
  ]
}

Certificates

Creating a Certificate

Endpoint

POST https://www.my-catalog.edu/api/v1/certificates

Parameters

Name Description Type
certificate[listing_id] required Id of the Listing Integer
certificate[name] required Name of the Certificate String
certificate[active] State of the Certificate, defaults to true Boolean
certificate[template] required Template for Certificate contents String
certificate[pdf_settings][orientation] 'Landscape' or 'Portrait' mode for PDF. Defaults to Landscape. String
days_to_expire Days until the certificate expires after it is awarded. Defaults to null. Must not be present when expires_at is present. Integer
expires_at Date of certificate expiration. Defaults to null. Must not be present when days_to_expire is present. Datetime

Request

Route

POST https://www.my-catalog.edu/api/v1/certificates

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Content-Type: application/json
Host: www.my-catalog.edu
Cookie: 

Body

{
  "certificate": {
    "listing_id": 4,
    "name": "API Name",
    "active": true,
    "template": "<H1>This is a template</h1>",
    "pdf_settings": {
      "orientation": "Landscape"
    }
  }
}

Response

Response Fields

Name Description Type
certificate[id] Certificate ID Integer
certificate[listing_id] Corresponding listing ID Integer
certificate[name] Certificate name String
certificate[active] Whether the certificate is enabled String
certificate[template] HTML template used to generate issued certificates String
certificate[pdf_settings] An object containing extra params for PDF generation Object
certificate[created_at] The creation date of the certificate Datetime
certificate[updated_at] The last time the certificate was updated Datetime
certificate[days_to_expire] Number of days for which issued certificates remain valide Integer
certificate[expires_at] A fixed datetime when issued certificates expire Datetime

Status

201

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/json; charset=utf-8
X-CSRF-Token: yv1/qzlfwCPqSANLGx+48zsw4+5WdDkCy2nZlIlJ2zLtZefyvwag5CGbDPhzs717w1oBR/EGvCvZbWRJkTU9xw==
ETag: W/"9f8e64564e2f3b926609dc6437ab8598"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=dWx5amFtbkZEWFJ1RTdtSkszeVk2a0ZOWGJ0VkwyWG16WnBVQUhHVnd5S1Rwcm1LTGZpTXdISnJBMjhVdm54cGVZSTI5TWdSbzZRVVpnWFZ1a3hBVkpKVTRiNno3Tm94N1VybGpLRlJ0T3UvTEpwVTRGMDJkaWFCcUVUeDgvQTAyOWRTUDFPbjJqR2NjRjY1eFlGMXRoL3E5OU53Q2xMbERLaWhMS21uU3Fid1JRNERyaWlHUERXMEcxaDdtUEdKLS1qeTBrK2w2M0J6eWIyZTZDSVdKVThBPT0%3D--b74feef3fe6642277ff393c3e91e9ac5b0d2c033; path=/; HttpOnly
X-Request-Id: 24447d30-49f7-4af1-82cc-dbc006b9e1af
X-Runtime: 0.317420
Content-Length: 297

Body

{
  "certificate": {
    "id": 4,
    "listing_id": 4,
    "name": "API Name",
    "active": true,
    "template": "<H1>This is a template</h1>",
    "pdf_settings": {
      "orientation": "Landscape"
    },
    "created_at": "2024/05/23 13:44:47 +0000",
    "updated_at": "2024/05/23 13:44:47 +0000",
    "days_to_expire": null,
    "expires_at": null
  }
}

Deleting a Certificate

Endpoint

DELETE https://www.my-catalog.edu/api/v1/certificates

Parameters

Name Description Type
certificate[listing_id] required Id of the Listing Integer
nullify_requirements_completed_at Should nullify the requirements_completed_at for the enrollments, defaults to false Boolean

Request

Route

DELETE https://www.my-catalog.edu/api/v1/certificates

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Content-Type: application/json
Host: www.my-catalog.edu
Cookie: 

Body

{
  "certificate": {
    "listing_id": 2
  },
  "nullify_requirements_completed_at": true
}

Response

Status

204

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
X-CSRF-Token: Uwnei0xJZCaGx2o9/t9eBpuXhyM6DJCZ0ys2P3pKN/UhYDUspfeHP4ynDK19tJ9YgAJGcFR2npFytklkwFVDPg==
Cache-Control: no-cache
Set-Cookie: _gallery_session=SmQ1bVN4Vmd1cUptMjBMazNhWHZtdlBwc3BCTnJiZ0hqbjRzL1VOSklrR1prOXp1Z210Y0xUZXk2MWVsSzE5T1puL2dJVHo2bk53MUFUUG83SFUweklES0xsUC8vaFl6Ukw5RjlwWFoxS1VBdHp3bnNNYVBzaktKeGxEMEdYWFZQdzZ3anFrN2NyTFNicjU3Yzl0TlpQbWoveWZzTTE0bldKY2grWUlJQm05L3VvSklkN3ZseXhXYk16SWFGN1pyLS0zUitmb1BHVWp1aDRYeXZTZHlVL0tnPT0%3D--8c91243730e57b460b55aa179eca9d02a4c1bf9b; path=/; HttpOnly
X-Request-Id: cbc1c0cc-cc17-413d-bb87-715becac3348
X-Runtime: 0.078443

Getting a listing Certificate

Endpoint

GET https://www.my-catalog.edu/api/v1/certificates

Parameters

Name Description Type
certificate[listing_id] required Id of the Listing Integer

Request

Route

GET https://www.my-catalog.edu/api/v1/certificates?certificate[listing_id]=3

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Content-Type: application/json
Host: www.my-catalog.edu
Cookie: 

Query Parameters

certificate={"listing_id"=>"3"}

Response

Response Fields

Name Description Type
certificate[id] Certificate ID Integer
certificate[listing_id] Corresponding listing ID Integer
certificate[name] Certificate name String
certificate[active] Whether the certificate is enabled String
certificate[template] HTML template used to generate issued certificates String
certificate[pdf_settings] An object containing extra params for PDF generation Object
certificate[created_at] The creation date of the certificate Datetime
certificate[updated_at] The last time the certificate was updated Datetime
certificate[days_to_expire] Number of days for which issued certificates remain valide Integer
certificate[expires_at] A fixed datetime when issued certificates expire Datetime

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/json; charset=utf-8
X-CSRF-Token: GGehON2VLqqlnTAmOJUOGnTqF2qQ9kg/Bg9B2BvYWVtXwstsENDONyKHa2SdI2xejP8Xv+TShKFUa2e8qH4iSw==
ETag: W/"61726a2a9bbe5d5112316df44d6720ba"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=NjRxRUlsYWZhdngvZUY0Umo1M3ZoUDNoeHhiSk50V0ZWekNianlUd003U1d0SUNabXlsY0VNVU5VYjNobHBiUTBQcDI4OWJ5SUFRZk9wV284cDhNUE9KRWRmeFNHOWZsWVBQR1B0SjZLbGVWZzM2aEhuWENnSUc4WXdjOURzRU5YQ2JjQjNZUVNPK3VMR3NyR0g4emVTdlBSdFd6S2FkTzcxRlZHZ0lXdkVpT1ExWlRGZEt4YlphVlBCcnBOeWQzLS1neDhGNlRIdmZ5OCt1NXk0VFUrcm93PT0%3D--13f4449e3a1a0ba48f2010817fba41f3e8c48a87; path=/; HttpOnly
X-Request-Id: 919f25b4-dfbd-46e1-87e3-9c94a68193e9
X-Runtime: 0.048722
Content-Length: 267

Body

{
  "certificate": {
    "id": 3,
    "listing_id": 3,
    "name": "Certificate of Training",
    "active": true,
    "template": "Congrats, {{student_name}}!",
    "pdf_settings": {
    },
    "created_at": "2024/05/23 13:44:47 +0000",
    "updated_at": "2024/05/23 13:44:47 +0000",
    "days_to_expire": null,
    "expires_at": null
  }
}

Request

Route

GET https://www.my-catalog.edu/api/v1/certificates?certificate[listing_id]=3

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Content-Type: application/json
Host: www.my-catalog.edu
Cookie: _gallery_session=NjRxRUlsYWZhdngvZUY0Umo1M3ZoUDNoeHhiSk50V0ZWekNianlUd003U1d0SUNabXlsY0VNVU5VYjNobHBiUTBQcDI4OWJ5SUFRZk9wV284cDhNUE9KRWRmeFNHOWZsWVBQR1B0SjZLbGVWZzM2aEhuWENnSUc4WXdjOURzRU5YQ2JjQjNZUVNPK3VMR3NyR0g4emVTdlBSdFd6S2FkTzcxRlZHZ0lXdkVpT1ExWlRGZEt4YlphVlBCcnBOeWQzLS1neDhGNlRIdmZ5OCt1NXk0VFUrcm93PT0%3D--13f4449e3a1a0ba48f2010817fba41f3e8c48a87

Query Parameters

certificate={"listing_id"=>"3"}

Response

Response Fields

Name Description Type
certificate[id] Certificate ID Integer
certificate[listing_id] Corresponding listing ID Integer
certificate[name] Certificate name String
certificate[active] Whether the certificate is enabled String
certificate[template] HTML template used to generate issued certificates String
certificate[pdf_settings] An object containing extra params for PDF generation Object
certificate[created_at] The creation date of the certificate Datetime
certificate[updated_at] The last time the certificate was updated Datetime
certificate[days_to_expire] Number of days for which issued certificates remain valide Integer
certificate[expires_at] A fixed datetime when issued certificates expire Datetime

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/json; charset=utf-8
X-CSRF-Token: 6ngnFQDjtX/lPwjIq7qd2n3s/9xkKw6O3QzInKRkkJml3U1BzaZV4mIlU4oODP+ehfn/CRAPwhCPaO74F8LriQ==
ETag: W/"61726a2a9bbe5d5112316df44d6720ba"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=cnN3T3lSSFYwcC9YMERTa0hHSWk1dnhLSXdpdDRFZ0o2WmI2ZVE1T1ozdkJ2b2VGb3JHRUVHekk0UDU2VkpsTEVkdGJFVzFjWVlzN0RlMUNpZG4wWDJXR0x3eWJLQU54Q2dFWlRDQVY5WFR5QlordFNpVGdua0pJelA4eVMzdisxWEM4L1M1VzJwbTJaRVhuclRjVklTcXZmcWE3V1A3ck1UQmNrT3ZiVXgxZGR4TjRIYi92K1pZbUh0RlgxZ212LS1WLzJFRitnS0NPWlkvR0xEVGRPdnVBPT0%3D--f7970ca5c6ef7359d861498d09c274e6901fc5f9; path=/; HttpOnly
X-Request-Id: e3d03acc-035e-4bc1-902c-b00737dc73a6
X-Runtime: 0.042922
Content-Length: 267

Body

{
  "certificate": {
    "id": 3,
    "listing_id": 3,
    "name": "Certificate of Training",
    "active": true,
    "template": "Congrats, {{student_name}}!",
    "pdf_settings": {
    },
    "created_at": "2024/05/23 13:44:47 +0000",
    "updated_at": "2024/05/23 13:44:47 +0000",
    "days_to_expire": null,
    "expires_at": null
  }
}

Revoking Users Certificate

Endpoint

PUT https://www.my-catalog.edu/api/v1/certificates/revoke_users_certificate

Parameters

Name Description Type
certificate[listing_id] required Id of the Listing Integer
certificate[canvas_user_ids] required List of Canvas User Id's Array

Request

Route

PUT https://www.my-catalog.edu/api/v1/certificates/revoke_users_certificate

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Content-Type: application/json
Host: www.my-catalog.edu
Cookie: 

Body

{
  "certificate": {
    "listing_id": 5,
    "canvas_user_ids": [
      1
    ]
  }
}

Response

Response Fields

Name Description Type
revoked_certificates[canvas_user_id] Canvas User ID Integer
revoked_certificates[canvas_course_id] Canvas Course ID Integer
revoked_certificates[listing_id] Catalog Product Listing ID Integer

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/json; charset=utf-8
X-CSRF-Token: 4tk6tZouucE/hDCWeIG5mWmyuaiWE7cWzekfle2dSa/0yEhuXQbtobPv0CPT7CISTzxD3jdy6fdUNX8ggJiJ9w==
ETag: W/"15dc57e6b1b9118120cd157e70dc04a7"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=YXlpQzBxM2lnSUthZXI1VXFOVy9uRHRNZndMRm54UkVSYnNHMEZheTdyUmhOSjBUQUR4L2Q3aGhsSjgvV2I0THh3aU5TbC9qZ2xpNGFjQ0ZNODAxcWJicnJyVGhVRXlnSVVaekxkNlZZdXNGR2ZnSEdkZDBTWjNkak8vYTBZRlpEUUgrbDJidFZzTFRtNnAvYXV2ZU5WWkhLYm0rOWtQSkpVWThPSWR6bjg3LzdnOHFrZ093VGlneTZMV0pxME5ELS1hMUhWZzlmcHlXQzhBZlBEZDlNVDV3PT0%3D--65a3d8a7057ee26cb7c0bc2f65bb6aea06a10efb; path=/; HttpOnly
X-Request-Id: de875793-1d71-4483-8dd8-72e0090778bb
X-Runtime: 0.059895
Content-Length: 86

Body

{
  "revoked_certificates": [
    {
      "canvas_user_id": 1,
      "canvas_course_id": 1001,
      "listing_id": 5
    }
  ]
}

Completed Certificates

listing a user's completions with a certificate

Endpoint

GET https://www.my-catalog.edu/api/v1/completed_certificates

Parameters

Name Description Type
user_id required Canvas Id of the user Integer
only_certificates Indicates if the courses without certificates should be included, default is to include all courses Boolean

Request

Route

GET https://www.my-catalog.edu/api/v1/completed_certificates?user_id=1&only_certificates=true

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Content-Type: application/json
Host: www.my-catalog.edu
Cookie: 

Query Parameters

user_id=1
only_certificates=true

Response

Response Fields

Name Description Type
canvas_course_id Canvas Course ID Integer
catalog_title catalog course title String
canvas_course_name Canvas Course name String
certificate_url URL for Course Certificate String
canvas_course_workflow_state Canvas Course Workflow State String
completed_at Canvas Course Completion Date Datetime

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/json; charset=utf-8
X-CSRF-Token: nYFXnDL/r2iJu7T24VLproKBzZ9MPe9XbkzYdLFgcExjxvk4LmozlsYyo6BsHXm+nK/aVkhwJB0oUe7D/utzSw==
ETag: W/"23becf0f0fba38b071cf7e94f3731f13"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=WFdlVk10V2FFeWpvNCtJWkZwRVY5dFVyRmlKUU5kNkpOeWVyNzE1bGRYeDA1WGYybjVQT1JsWVJmaE1YYkZEVVVONmEvYVFZSlJVYUZhQXlGdUNqRG9XeitpbFFUU3hLOVBNVU5HSDllRzZ6TFg2VUpIZkwrVUlJM0JMUmsxeldxQXpPUjR2Y081UVRzS1NJRGFZMlk3ZFdHRFNhd0oyRk5zdTZaQ2l2Z3FCaU9PNThtNW9xYVFXUG9WcklyR29RLS1oTzZsTG1JWXFsTzJxdFBzZjZLSnp3PT0%3D--875a3c2358e6663f7c16920d3059644ea4a557ca; path=/; HttpOnly
X-Request-Id: 444ce411-760b-4020-859b-ae29127b9f1d
X-Runtime: 0.512433
Content-Length: 258

Body

{
  "completed_certificates": [
    {
      "canvas_course_id": 1,
      "catalog_title": "Course 1",
      "canvas_course_name": "Course 1",
      "certificate_url": "https://www.domain-1.com/certificates/certificate-numero-1-1.pdf",
      "canvas_course_workflow_state": "available",
      "completed_at": null
    }
  ]
}

Courses

Creating a course

Endpoint

POST https://www.my-catalog.edu/api/v1/courses

Parameters

Name Description Type
course[title] required Listing title String
course[description] required Full listing description String
course[path] required Path to the listing. Used in URLs String
course[teaser] required A shorter description of the listing String
course[enrollment_open] Indicates if the listing is current accepting new students Boolean
course[enrollment_open_from] If specified, enrollment is open only from this date-time Datetime
course[enrollment_open_to] If specified, enrollment is open only to this date-time Datetime
course[visibility] Indicates if the listing is visible in the web UI. Possible values: listed, unlisted, hidden String
course[enrollment_cap] A limit for the total number of enrollments Integer
course[enrollment_fee] Enrollment fee Decimal
course[allowed_payment_types] Allowed payment methods Array
course[days_to_complete] The number of days a student has to complete the requirements Integer
course[account_id] The id of the account to associate the listing to. Can be an id of any subcatalog of the catalog making the API request. Defaults to the catalog making the API request. Integer
course[list_order] Order in which the listing is shown in the catalog Integer
course[waitlist] Waitlist enabled (defaults to false) Boolean
course[waitlist_cap] Wait List Limit for the total number of wait listed enrollments Integer
course[listing_image] URL or file upload for the image to be shown with this listing. String
course[tag_names] List of tags applied to this listing Array
course[show_free_banner] Show the 'FREE' mark on the card of the listing if free Boolean
course[associated_account_ids] Other account ids where this product should be listed Array
course[canvas_course_id] required Id of the related canvas course Integer
course[credits] Credit value of the course Decimal
sku Listing SKU for a course String

Request

Route

POST https://www.my-catalog.edu/api/v1/courses

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Content-Type: application/json
Host: www.my-catalog.edu
Cookie: 

Body

{
  "course": {
    "title": "Course 1",
    "description": "This is a very important course.",
    "path": "course-1",
    "canvas_course_id": 10010010,
    "teaser": "This is an example teaser",
    "enrollment_open": true,
    "visibility": "listed",
    "enrollment_cap": 150,
    "waitlist": true,
    "waitlist_cap": 25,
    "enrollment_fee": 49.99,
    "days_to_complete": 45,
    "list_order": 123,
    "credits": 4,
    "sku": "abc1234",
    "tag_names": [
      "Tag",
      "Another Tag"
    ]
  }
}

Response

Response Fields

Name Description Type
id Identifier for this listing. Integer
visibility Indicates if the listing is visible in the web UI. Possible values: listed, unlisted, hidden String
enrollment_open Open for enrollment Boolean
enrollment_open_from If specified, enrollment is open only from this date-time Datetime
enrollment_open_to If specified, enrollment is open only to this date-time Datetime
enrollment_cap A limit for the total number of enrollments Integer
waitlist Waitlist enabled Boolean
waitlist_cap Wait List Limit for the total number of wait listed enrollments Integer
title Title of the listing String
enrollment_fee Enrollment fee Decimal
currency The three digit currency code associated to the enrollment fee String
listing_path Path to the listing. Used in URLs String
listing_url The URL of the listing String
short_description A short description for this listing String
list_order Order in which the listing is listed in the catalog Integer
tag_names List of tags applied to this listing Array
detail_code Payment detail code for a course (only if enabled with :payment_detail_code_enabled feature flag) String
show_free_banner Show the 'FREE' mark on the card of the listing if free Boolean
associated_account_ids Other account ids where this product should be listed Array
start_date When the Canvas course starts if specified Datetime
end_date When the Canvas course ends if specified Datetime
canvas_section_id The Canvas course's section's id Integer
catalog[id] Id for the catalog that owns this listing Integer
catalog[name] Name for the catalog that owns this listing String
created_at The creation date for the listing. Datetime
updated_at The last time the listing was updated. Datetime
canvas_course[id] Corresponding Canvas id Integer
credits Credit value of the course Decimal
sku Listing SKU for a course String

Status

201

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Location: https://www.my-catalog.edu/api/v1/courses/39
Content-Type: application/json; charset=utf-8
X-CSRF-Token: 7qQouDtvUfn53eE8N7od0/nitWQ6RUFYgTZDL+/01Se8NYe/Xz17GzrvUeTkG3GBEXPwdQCc4HCjuBT3+mVOxA==
ETag: W/"0be2eb329db8484345c8ccb365f30e90"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=ZWpEbXlEeGhsQjFQdlpWVXN2WUE3VjV5d09WbDhWd3A2bVlJbW4vSUV2NW45aVlZRDY1dE8xSlp6L1l2Sm8zVG9WSWFnWWNzUEozQk9xbkVzRzZCZytiOE5RMFlrQjhoTTBaYTZ5VTI4enJlQjJ1WlFjVGFRRGRkK1BsYkc2ZlFuR1JYcTZDQmp4TUZNZCtXZFp0VkJPQ2txVHh2NUtXSTRkVVFpZk0rQkRxUllxQ1ROaTZENlVoOG5rL2c1VXBWLS1aUjcyR2FBOTlkMlRVSzJ6ODhxZHZ3PT0%3D--ca122d613d6b51f8116d11bffaab6c05b6449a50; path=/; HttpOnly
X-Request-Id: e9443900-f3a2-4c8c-8d86-0278856f6970
X-Runtime: 0.070989
Content-Length: 889

Body

{
  "course": {
    "id": 39,
    "visibility": "listed",
    "enrollment_open": true,
    "enrollment_open_from": null,
    "enrollment_open_to": null,
    "enrollment_cap": 150,
    "description": "This is a very important course.",
    "enrollment_fee": "49.99",
    "created_at": "2024/05/23 13:44:51 +0000",
    "credits": 4.0,
    "measurement": "credit",
    "updated_at": "2024/05/23 13:44:51 +0000",
    "short_description": "This is an example teaser",
    "listing_path": "course-1",
    "listing_image": null,
    "currency": "USD",
    "catalog": {
      "id": 47,
      "name": "Domain Account 51"
    },
    "type": "Course",
    "title": "Course 1",
    "list_order": 123,
    "waitlist": true,
    "waitlist_cap": 25,
    "sku": "abc1234",
    "show_free_banner": true,
    "image_alt_text": null,
    "allowed_payment_types": [
      "standard"
    ],
    "tag_names": [
      "Tag",
      "Another Tag"
    ],
    "listing_url": "http://www.my-catalog.edu/courses/course-1",
    "start_date": null,
    "end_date": null,
    "canvas_section_id": null,
    "associated_account_ids": [

    ],
    "canvas_course": {
      "id": 10010010
    }
  }
}

Deleting a specific course

Endpoint

DELETE https://www.my-catalog.edu/api/v1/courses/:id

Request

Route

DELETE https://www.my-catalog.edu/api/v1/courses/38

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Host: www.my-catalog.edu
Content-Type: application/x-www-form-urlencoded
Cookie: 

Response

Status

204

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
X-CSRF-Token: nbw1Rcdx8dus5Npm6ytzuQrT07bb8CljmZPZ9Y4RUieI3+uH6GL2CoesV/UL/Hvh339tdKL7HzbI4wpJXgy3Rg==
Cache-Control: no-cache
Set-Cookie: _gallery_session=WVc2d3EwQm1Vc3M0VU9XYjRTWVVaMHZ2Nm5uVXBncmkzNFJqcDFxUkp3RHNFL0JFaWZNcW9WeXJRVS9iRjdMbXdTNHhKRGJ1Q3lxVTFNODI1QjhLdGprRzNVRy8zUjY2ZysyVkN5a1o1NU1IYy9ib0xUanRBSkdaamcwdDNxR3MxSkg5OS8zTHJJTmsrMUhRSUlaT2N3dndjRzBiYXBuaFh5Y045RzIzY3RlTHE2VW93M2U4ZUh0L0VMN285c1cwLS1QKzJrOFJCU2NxQ2RmTWpHbVR3NVl3PT0%3D--e3b074ab6dc1f07dc1d1a4e72dbd3026c53b6a88; path=/; HttpOnly
X-Request-Id: c28dec85-b4fc-4a4e-9e20-d1e925f0c40d
X-Runtime: 0.055532

Getting a specific course

Endpoint

GET https://www.my-catalog.edu/api/v1/courses/:id

Request

Route

GET https://www.my-catalog.edu/api/v1/courses/37

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Host: www.my-catalog.edu
Cookie: 

Response

Response Fields

Name Description Type
id Identifier for this listing. Integer
visibility Indicates if the listing is visible in the web UI. Possible values: listed, unlisted, hidden String
enrollment_open Open for enrollment Boolean
enrollment_open_from If specified, enrollment is open only from this date-time Datetime
enrollment_open_to If specified, enrollment is open only to this date-time Datetime
enrollment_cap A limit for the total number of enrollments Integer
waitlist Waitlist enabled Boolean
waitlist_cap Wait List Limit for the total number of wait listed enrollments Integer
title Title of the listing String
enrollment_fee Enrollment fee Decimal
currency The three digit currency code associated to the enrollment fee String
listing_path Path to the listing. Used in URLs String
listing_url The URL of the listing String
short_description A short description for this listing String
list_order Order in which the listing is listed in the catalog Integer
tag_names List of tags applied to this listing Array
detail_code Payment detail code for a course (only if enabled with :payment_detail_code_enabled feature flag) String
show_free_banner Show the 'FREE' mark on the card of the listing if free Boolean
associated_account_ids Other account ids where this product should be listed Array
start_date When the Canvas course starts if specified Datetime
end_date When the Canvas course ends if specified Datetime
canvas_section_id The Canvas course's section's id Integer
catalog[id] Id for the catalog that owns this listing Integer
catalog[name] Name for the catalog that owns this listing String
created_at The creation date for the listing. Datetime
updated_at The last time the listing was updated. Datetime
canvas_course[id] Corresponding Canvas id Integer
credits Credit value of the course Decimal
sku Listing SKU for a course String

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/json; charset=utf-8
X-CSRF-Token: VDwSR439Sn70QDn1U61qpd7duLJF5zrfXvzJHgAWPdaAvDmZpwjGSNaV1JLR/MK26U9DJZnjOLC1FmXxwtKQmQ==
ETag: W/"57fdbc0891501315d7d00db12371f474"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=M1h0YlcyNWpRQUZDZjEvdysvNjRsOWJnMHZnZEdRWnNES2hENWJ5S1lWYWUwTnlGbG0rSHNzRGlnMUlLQ283NTl4UlZlV1pYYXRMTlV4N1M3T3JrTkJnVTkxc1hSMGcxM2FWWkpzYjN2WlFCOFBqR2pSU09FUUQyLzRRN2pZTmI2UmM5V0Y3ck9lMWhwazlBNlhCOENFTXkvTjVKZ3IzSjZVMU5TeU1ncDNxSWpYbENzVFlVTnB2UGpNL1BwMkc0LS1FU3djK1RSM3hRNXZpVFVITFk5YURBPT0%3D--4d94af1d2f79ce46c77d56dd4a8b1a6a845269fe; path=/; HttpOnly
X-Request-Id: 4fe01a75-d78d-42de-8754-43d2eaa867ce
X-Runtime: 0.046742
Content-Length: 910

Body

{
  "course": {
    "id": 37,
    "visibility": "listed",
    "enrollment_open": true,
    "enrollment_open_from": null,
    "enrollment_open_to": null,
    "enrollment_cap": null,
    "description": "description_36",
    "enrollment_fee": "0.0",
    "created_at": "2024/05/23 13:44:51 +0000",
    "credits": 3.0,
    "measurement": "credit",
    "updated_at": "2024/05/23 13:44:51 +0000",
    "short_description": "teaser_36",
    "listing_path": "course-path-36",
    "listing_image": null,
    "currency": "USD",
    "catalog": {
      "id": 45,
      "name": "Domain Account 49"
    },
    "type": "Course",
    "title": "Course 36",
    "list_order": null,
    "waitlist": false,
    "waitlist_cap": null,
    "sku": "sku_22",
    "show_free_banner": true,
    "image_alt_text": null,
    "allowed_payment_types": [
      "standard"
    ],
    "tag_names": [
      "Another Tag",
      "Tag"
    ],
    "listing_url": "http://www.my-catalog.edu/courses/course-path-36",
    "start_date": "2024/05/16 13:44:51 +0000",
    "end_date": "2024/05/30 13:44:51 +0000",
    "canvas_section_id": null,
    "associated_account_ids": [

    ],
    "canvas_course": {
      "id": 22
    }
  }
}

Listing courses

Endpoint

GET https://www.my-catalog.edu/api/v1/courses

Request

Route

GET https://www.my-catalog.edu/api/v1/courses

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Host: www.my-catalog.edu
Cookie: 

Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Per-Page: 20
Total: 1
Content-Type: application/json; charset=utf-8
X-CSRF-Token: M9hhymkP/anSAsjH+/2b3bIIGvmD7v0ZaiR0S2W0BkdCBUMCLjFCPEy//fFDa7rsR7MKJ0eI6j72yo6mpUVqVQ==
ETag: W/"a310c6dd16d088dc6908876f7fcf01e2"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=RWNvcXdBVTIxTVQyU0Q5Wk5RajMzL2ZYY3AzbFpjQU4rT21Mc05lYSs1Nnk2b2JRVGFGUS9abzE1cHRmQ0YzNnkzN084YVNoTDFLeHRJWk9KT1VtRk4zMFc4NVI3aTJZbkJOWkt5QzlhdXJVRDN5b3RNeWJPNmtGeUFPTG95aFdhczdBdjVOeEZsNDJHUUQvdUljR1JRL0ZXSUF2QmNNTlVaY3dzTUc0Y3ZQbmZ6SlRyeFJ2SkdlREEzVDIvUCtGLS1lc1ZSTUE4TzZOSDU1a296cGE5bUhBPT0%3D--911d288499dfbb3aeb2572f4db9378b525892600; path=/; HttpOnly
X-Request-Id: d859112e-883e-4272-b6aa-f6fbd32ba5d9
X-Runtime: 0.046023
Content-Length: 913

Body

{
  "courses": [
    {
      "id": 35,
      "visibility": "listed",
      "enrollment_open": true,
      "enrollment_open_from": null,
      "enrollment_open_to": null,
      "enrollment_cap": null,
      "description": "description_34",
      "enrollment_fee": "0.0",
      "created_at": "2024/05/23 13:44:51 +0000",
      "credits": 3.0,
      "measurement": "credit",
      "updated_at": "2024/05/23 13:44:51 +0000",
      "short_description": "teaser_34",
      "listing_path": "course-path-34",
      "listing_image": null,
      "currency": "USD",
      "catalog": {
        "id": 43,
        "name": "Domain Account 47"
      },
      "type": "Course",
      "title": "Course 34",
      "list_order": null,
      "waitlist": false,
      "waitlist_cap": null,
      "sku": "sku_20",
      "show_free_banner": true,
      "image_alt_text": null,
      "allowed_payment_types": [
        "standard"
      ],
      "tag_names": [
        "Another Tag",
        "Tag"
      ],
      "listing_url": "http://www.my-catalog.edu/courses/course-path-34",
      "start_date": "2024/05/16 13:44:51 +0000",
      "end_date": "2024/05/30 13:44:51 +0000",
      "canvas_section_id": null,
      "associated_account_ids": [

      ],
      "canvas_course": {
        "id": 20
      }
    }
  ]
}

Updating Course SKUs

Endpoint

PUT https://www.my-catalog.edu/api/v1/courses/update_skus

Parameters

Name Description Type
attachment required CSV containing a Catalog Course ID and Catalog Course SKU header file

Request

Route

PUT https://www.my-catalog.edu/api/v1/courses/update_skus

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Content-Type: multipart/form-data; boundary=----------XnJLe9ZIbbGUYtzPQJ16u1
Host: www.my-catalog.edu
Cookie: 

Body

------------XnJLe9ZIbbGUYtzPQJ16u1
content-disposition: form-data; name="attachment"; filename="missing_header1.csv"
content-type: text/plain
content-length: 69

[uploaded data]
------------XnJLe9ZIbbGUYtzPQJ16u1--

Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/json; charset=utf-8
X-CSRF-Token: yNwZA4pjkE1Cdzq41TZnwJW1xu4IQWxsL6CBtk2wIXoQs/08jaE0oFshvUDTzTGjeVIYWknxOpkMwmpYmiTcUg==
ETag: W/"046d8066c3e61d7988879c74d72a7297"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=aUQ3ME5KTHZtWGZFSG5MYWZORlJVYXh0eko5ZjM2dDlFMUhoMDJ0bUdHVWE5K2F3TTExelN0bWZVREZhUUJNOWVabjA1dFZaSE9XZG1WY1B5VmhGUzhLQTVSSTBQYUp6Q04vckFBNWJ5Q0pPeWFBQzJLT0NnUG53RFVQUW1LTWhFTmM4OEl2dzVVUVQyVU1mQnpUNGZRcFpuQjZ4MHVHdGR2T1c0TjJPNllWeTNjQUNXcHBiSkI0M3dQMTdFYkx1LS1HbzBKQWNTRUNqdUNkRkNHN3lpSDF3PT0%3D--273dd01e7666013b76ecb9f179d9539c538a21bf; path=/; HttpOnly
X-Request-Id: 3c837648-8c88-4042-9ead-2c6fd3f9238a
X-Runtime: 0.071577
Content-Length: 206

Body

{
  "progress": {
    "id": 1,
    "account_id": 48,
    "canvas_user_id": null,
    "completion_percent": null,
    "workflow_state": "queued",
    "payload": {
    },
    "created_at": "2024/05/23 13:44:51 +0000",
    "updated_at": "2024/05/23 13:44:51 +0000"
  }
}

Updating a course

Endpoint

PUT https://www.my-catalog.edu/api/v1/courses/:id

Parameters

Name Description Type
course[title] Listing title String
course[description] Full listing description String
course[path] Path to the listing. Used in URLs String
course[teaser] A shorter description of the listing String
course[enrollment_open] Indicates if the listing is current accepting new students Boolean
course[enrollment_open_from] If specified, enrollment is open only from this date-time Datetime
course[enrollment_open_to] If specified, enrollment is open only to this date-time Datetime
course[visibility] Indicates if the listing is visible in the web UI. Possible values: listed, unlisted, hidden String
course[enrollment_cap] A limit for the total number of enrollments Integer
course[enrollment_fee] Enrollment fee Decimal
course[allowed_payment_types] Allowed payment methods Array
course[days_to_complete] The number of days a student has to complete the requirements Integer
course[account_id] The id of the account to associate the listing to. Can be an id of any subcatalog of the catalog making the API request. Defaults to the catalog making the API request. Integer
course[list_order] Order in which the listing is shown in the catalog Integer
course[waitlist] Waitlist enabled (defaults to false) Boolean
course[waitlist_cap] Wait List Limit for the total number of wait listed enrollments Integer
course[listing_image] URL or file upload for the image to be shown with this listing. String
course[tag_names] List of tags applied to this listing Array
course[show_free_banner] Show the 'FREE' mark on the card of the listing if free Boolean
course[associated_account_ids] Other account ids where this product should be listed Array
course[canvas_course_id] Id of the related canvas course Integer
course[credits] Credit value of the course Decimal
sku Listing SKU for a course String

Request

Route

PUT https://www.my-catalog.edu/api/v1/courses/36

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Content-Type: application/json
Host: www.my-catalog.edu
Cookie: 

Body

{
  "course": {
    "title": "Course 1",
    "description": "This is a very important course.",
    "path": "course-1",
    "canvas_course_id": 10010010,
    "teaser": "This is an example teaser",
    "enrollment_open": true,
    "visibility": "listed",
    "enrollment_cap": 150,
    "waitlist": true,
    "waitlist_cap": 25,
    "enrollment_fee": 49.99,
    "days_to_complete": 45,
    "list_order": 123,
    "credits": 4,
    "sku": "abc1234",
    "tag_names": [
      "Tag",
      "Another Tag"
    ]
  }
}

Response

Status

204

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
X-CSRF-Token: SzR8mfmxcEdhzucto2Da1Ic/AzDz7alS6mXBNIA65Kfj5iQEMFmrSyhFOol37cpkGBJQbWcEBfO+fYvGH8RQhg==
Cache-Control: no-cache
Set-Cookie: _gallery_session=Wk5obGFiWllQY3AzSlE1MThHUkFhNVY5NnNWMWJJS0daUlY4TW1MUlk4UE5DQ2xMNmp6OTRTK1pqYWMzUFVwb3lGWmRucjFneW9IVGNDUkVkZlJoVnlkYS9HRUtldTdYbmpuRG5aWEt2Rnltdk96RWoxY0dyUC9rYUdsSGpJKzdYczd6MjlGdEh5YzhScHBITEZ1akQ0Qi9FTWRDdCtyeUNETUlXT0trMTQ4SWxFRzNnQ3hjekJET3ZiVTlFVTA0LS1wbjhqMHlXak12QmtiTGxFbVFjTHJBPT0%3D--1bd32d084da3e80411d90be155c4de9b3e24adee; path=/; HttpOnly
X-Request-Id: 473992e8-5d86-48a8-b628-40618e655f8f
X-Runtime: 0.071750

Enrollments

Creating an enrollment

Endpoint

POST https://www.my-catalog.edu/api/v1/enrollments

Parameters

Name Description Type
create_order Create an order record for this enrollment, defaults to true Boolean
send_email Send an enrollment email to the user, defaults to true Boolean
enrollment[listing_id] required Id of the Listing Integer
enrollment[canvas_user_id] required Id of the Canvas user Integer

Request

Route

POST https://www.my-catalog.edu/api/v1/enrollments

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Content-Type: application/json
Host: www.my-catalog.edu
Cookie: 

Body

{
  "enrollment": {
    "listing_id": 14,
    "canvas_user_id": 1
  }
}

Response

Response Fields

Name Description Type
id Identifier for this enrollment Integer
user[id] Corresponding Canvas user id for this enrollment. Integer
listing[id] Identifier for the listing Integer
listing[title] The name of the listing String
listing[type] The type of listing (Course or Program) String
listing[canvas_course_id] Canvas course ID (nil for Program enrollments) String
enrolled_at The time of enrollment (UTC) Datetime
status Enrollment status (active, dropped or concluded) String

Status

201

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/json; charset=utf-8
X-CSRF-Token: IU1ei/ya+Y1ervMSvMD4nmSa80nODSsPfsrnH83no7VrjDTKPQtMPtVjmOJf9K0DNxhbaVPQ1wT8d+vLU8EhHw==
ETag: W/"8af20fcaf681f8a99837c2bdcb8efae1"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=SnlTeWlDZVhxekRnTklITlZoNHVOZjc4Y2lPMVVnWEkrNHhrT010R3dJZjFIWi80QTZ2QXl4ZHV1emlSeEk3bzhsMnM4aU5kRnYxZkVVWU1iZDdzcWlPV0dEdDNhcXJGUnI4UmZ1TDJJM2lRWlBQNmY0eWQxYmlWbnBsRUhkOVoreEdwSVNNUWpPK2JTUXdBYW54Nm4wTWdyWm43THUyRUJWZWZtemxTOTRpM0kzSysvMHJqcE1vL2V1UkFIYXNHLS1UM2hrN2pQc1pxZFp2Y1lrZ2ozR3NnPT0%3D--44477a94b4fbf8670dccff198b83a8bbaa8f79c8; path=/; HttpOnly
X-Request-Id: 3828994a-81cc-4a4e-9b3e-37eb5c5c8721
X-Runtime: 0.047495
Content-Length: 177

Body

{
  "enrollment": {
    "id": 7,
    "user": {
      "id": 1
    },
    "listing": {
      "id": 14,
      "title": "Course 14",
      "type": "Course",
      "canvas_course_id": 10
    },
    "enrolled_at": "2024/05/23 13:44:49 +0000",
    "status": "active"
  }
}

Deleting an enrollment

An additional request must be made to Canvas to delete the enrollment and remove it from the Catalog Student Dashboard

Endpoint

DELETE https://www.my-catalog.edu/api/v1/enrollments/:id

Request

Route

DELETE https://www.my-catalog.edu/api/v1/enrollments/4

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Host: www.my-catalog.edu
Content-Type: application/x-www-form-urlencoded
Cookie: 

Response

Response Fields

Name Description Type
id Identifier for this enrollment Integer
user[id] Corresponding Canvas user id for this enrollment. Integer
listing[id] Identifier for the listing Integer
listing[title] The name of the listing String
listing[type] The type of listing (Course or Program) String
listing[canvas_course_id] Canvas course ID (nil for Program enrollments) String
enrolled_at The time of enrollment (UTC) Datetime
status Enrollment status (active, dropped or concluded) String

Status

204

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
X-CSRF-Token: vEqjN/VSwJiu7wAqhkOeneeOKiYBWJG4+YNmcAm2jG8Tt9JZRG5UIlXmZsz8kzKcBnXUc0q/6zXeXg0dEyGiGw==
Cache-Control: no-cache
Set-Cookie: _gallery_session=cm1USUdycmgwcytUTXFhM3hVaUxySCtvS2ZPcXdoK05XNHpsQ3hWT3V5UjlMMS9IUk1MT1MvN2NqL25GV1pRbHk4UUFTdDVhc25RKzhGTVFkTStobGFEdTlFazcwUXJrUHZOUXMzOFJqdlBnN3BZUEorS1JRN1lRYzE1azl0bHFETURBRUdDRHI1TG5ZWGxyQlNFZDh6UXVMaXV0WXRYUlo2TWkwdHF6Zk9kWnZIMlhGTCtWZC9jWHhlcXdlMC9rLS00K0F6c3F2NGpUYmE4eXFIclg4UGhRPT0%3D--3705492326f9354abac703138599dac82e54e315; path=/; HttpOnly
X-Request-Id: b95ec563-45b0-43d4-abda-09fc4ba165ab
X-Runtime: 0.070399

Getting a specific bulk enrollment

Endpoint

GET https://www.my-catalog.edu/api/v1/order_items/history/bulk_enrollments/:id

Parameters

Name Description
id Order id (Integer)

Getting a specific enrollment

Endpoint

GET https://www.my-catalog.edu/api/v1/enrollments/:id

Request

Route

GET https://www.my-catalog.edu/api/v1/enrollments/5

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Host: www.my-catalog.edu
Cookie: 

Response

Response Fields

Name Description Type
id Identifier for this enrollment Integer
user[id] Corresponding Canvas user id for this enrollment. Integer
listing[id] Identifier for the listing Integer
listing[title] The name of the listing String
listing[type] The type of listing (Course or Program) String
listing[canvas_course_id] Canvas course ID (nil for Program enrollments) String
enrolled_at The time of enrollment (UTC) Datetime
status Enrollment status (active, dropped or concluded) String

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/json; charset=utf-8
X-CSRF-Token: Oh/f5e36FkfgknkZYWwfBA6rS/FEI9xw+H4BXaKSHt2/Qe5z9IodbsZu/Z4NTVKtms0uRrPC2vZUxBt77byyqg==
ETag: W/"74a26635ce003e0cfd61b34aa899ce26"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=M2FoOEw2bWRWN1d2NmZYTGNrTVFEM1FOeXplOXdTUi9ZWFJJOGhqTVFwUXRtRGlGM2YvOFp5eXFWQ2Q1aE55dlhNbXc3alRGbjhZak5HdDdxMTlNWndPSU5EWFhiblQyKzZwRDAvdDZ0RTlZUGxzU3dpUFQvZHJnL29nR3hOTktWckpkbFM4RGZjQ3pTSGN1RmJTcjQycUZLM2hyYkZyMVJGWkY2TUdCZFE5cWhiU0psaTFaRUhkenFJVlh4cjRRLS1wbmJ0WGh2SGM5U1RyU0FuUE85L0J3PT0%3D--95f0a79231a625e80909ad62a490a11c5b555043; path=/; HttpOnly
X-Request-Id: 838d24f2-3589-4f11-9878-6adf58a707ef
X-Runtime: 0.046629
Content-Length: 176

Body

{
  "enrollment": {
    "id": 5,
    "user": {
      "id": 1
    },
    "listing": {
      "id": 12,
      "title": "Course 12",
      "type": "Course",
      "canvas_course_id": 8
    },
    "enrolled_at": "2024/05/23 13:44:49 +0000",
    "status": "active"
  }
}

Listing bulk enrollments

Endpoint

GET https://www.my-catalog.edu/api/v1/order_items/history/bulk_enrollments

Parameters

Name Description
from Only include bulk enrollments from this date (optional, DateTime)
to Only include bulk enrollments to this date (optional, DateTime)
canvas_user_ids Only include bulk enrollments for the specified canvas user ids (optional, Integer[])

Listing enrollments

Endpoint

GET https://www.my-catalog.edu/api/v1/enrollments

Parameters

Name Description
listing_id Only include enrollments for the specified listing (optional, Integer)

Request

Route

GET https://www.my-catalog.edu/api/v1/enrollments

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Host: www.my-catalog.edu
Cookie: 

Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Per-Page: 20
Total: 1
Content-Type: application/json; charset=utf-8
X-CSRF-Token: oWwQTFr4yCL8Ac4PH53tiuxtZlUKH3tQ7D74j1RA60lRTKwdsPKYDTmmIBzG9+G2HfGvVpLdrPVx0DUrw1vX+A==
ETag: W/"2ddd24ed4c9809d9c0ba49c6054ac7d0"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=R2RHVHU1Y2tIbFc4bkdGTUNCZFc0bUl1NHNUSTZKaHloTVV0S2VMcUk3QkpvaWtvLzd5ZEwySkszSGpYemdqTXZkblprcFEvSmlqODRNUERDZ1Z6ekttQlkyQjFkZUVGTmhLT1lxT0drUmtvTGZsVXJaYzk4UnovUm12Tm1jV0pVdlliYm13SjdpS1V2bGFOU1FPU2ZYQVBmTUFEZHNTRzBDQWZFYTNjMW1sekpnRmtvSWhUSXA3NS92V1VQYU1TLS1BWXM2NnRiWjNFWE5oSEJ6Z2hjZG53PT0%3D--8ca0dd7f77991d7a06c888318f895699b0b82ff6; path=/; HttpOnly
X-Request-Id: 8f0624b2-ca42-4e99-9507-6b82ce863123
X-Runtime: 0.041003
Content-Length: 179

Body

{
  "enrollments": [
    {
      "id": 6,
      "user": {
        "id": 2
      },
      "listing": {
        "id": 13,
        "title": "Course 13",
        "type": "Course",
        "canvas_course_id": 9
      },
      "enrolled_at": "2024/05/23 13:44:49 +0000",
      "status": "active"
    }
  ]
}

Orders

Getting a specific order

Endpoint

GET https://www.my-catalog.edu/api/v1/orders/:id

Request

Route

GET https://www.my-catalog.edu/api/v1/orders/1

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Host: www.my-catalog.edu
Cookie: 

Response

Response Fields

Name Description Type
id Identifier for this order. Integer
full_id Full ID for this order, including prefix. String
catalog_id DEPRECATED: Use catalog['id'] instead. Integer
catalog[id] Identifier for the catalog the order is linked to Integer
catalog[name] Name of the catalog this order is linked to String
user[id] Canvas ID of the user who placed the order Integer
user[name] Name of the user who placed the order String
user[email] E-mail address of the user who placed the order String
listings Array of purchased listings (courses and programs). Fields below: Array
listing[id] Identifier for a listing purchased with this order Integer
listing[catalog_id] Catalog ID associated to this listing Integer
listing[canvas_course_id] Canvas course ID associated to this listing Integer|null
listing[title] The name of the listing String
listing[amount] Listing price at the time of purchase Decimal
listing[discounted_amount] Discounted price by promotions Decimal
promotions Array of promotions used. Fields below: Array
promotion[id] Identifier for a promotion used with this order Integer
promotion[listing_id] Identifier for the listing this promotion is used for Integer
promotion[code] Promo code used for this order String
promotion[amount] Discount amount Decimal
payments Array of payments. Fields below: Array
payment[reference_id] Identifier from the payment redirector String
payment[status] Status of the payment. Can be success, error, or pending. String
payment[amount] Amount of the payment Decimal
total Total cost charged to the user Decimal
currency Currency used for the transaction String
purchased_at Time the transaction was successfully completed. This field is nil for unsuccessful or unpaid orders. Datetime
created_at Time the order was initiated. Datetime

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/json; charset=utf-8
X-CSRF-Token: vG71lWQ+YqVyT2CiFNZmqtUvfFOF0TxJ8VW23u3AWfJmH5nCRAe9fGFtVYkZumHT6aS3jowd0bz8ZpjvJyNIIw==
ETag: W/"6f01ef264b3eafcfd246cc27427ccd19"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=ZllUK1dKQUtNeC9TclpxdDBiNmtIOTNPb09TaXlpSElrSVFpR2dRdERHNGxMdUtkV29HM2tqVUROZmxtUXYyUXcyYTJhRGR6S2pEODhRb1JHN0hEUVczTnNhV0hkUGlOem1WYjlzVnNxczhRL2lZQ2gwTkZwNGdMdlphLzRCQ0hrSUNUb0oxQjcwRlJZcTRwMlIxQjR6UjhJUXYwNGViSDlaRnRGc2VGdjhiVmFZQkpxVnBpdWN3VFdXSVVTYjMzLS1JZUJIUWpWZnUzcThqUjZhdHg1aWdRPT0%3D--113b424c4fdf02516d8af3980a2f5fad7e3ce06f; path=/; HttpOnly
X-Request-Id: 4d09467c-15c6-4cc8-92dc-520fd07af7c9
X-Runtime: 0.050366
Content-Length: 544

Body

{
  "order": {
    "id": 1,
    "full_id": "1",
    "catalog_id": 12,
    "catalog": {
      "id": 12,
      "name": "Domain Account 12"
    },
    "user": {
      "id": 1,
      "name": "Saul Goodman",
      "email": "[email protected]"
    },
    "listings": [
      {
        "id": 6,
        "canvas_course_id": 2,
        "title": "Course 6",
        "amount": "100.0",
        "discounted_amount": "90.0",
        "catalog_id": 12
      }
    ],
    "promotions": [
      {
        "id": 1,
        "listing_id": 6,
        "code": "PROMO1",
        "amount": "-10.0"
      }
    ],
    "payments": [
      {
        "reference_id": "123",
        "status": "success",
        "amount": "90.0"
      }
    ],
    "total": "90.0",
    "currency": "USD",
    "purchased_at": "2024/05/23 13:44:48 +0000",
    "created_at": "2024/05/23 13:44:48 +0000"
  }
}

Listing orders

Endpoint

GET https://www.my-catalog.edu/api/v1/orders

Parameters

Name Description
from Earliest date/time to return (optional, String). Suggested format YYYY-MM-DDTHH:MM:SSZ, e.g. 2018-01-01T00:00:00Z. System time zone is UTC.
to Latest date/time to return (optional, String). See 'from' above for format.
canvas_user_id Return only orders for the specified Canvas user ID (optional, String|Array)
completed When set, only return orders that were completed successfully (optional)

Request

Route

GET https://www.my-catalog.edu/api/v1/orders

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Host: www.my-catalog.edu
Cookie: 

Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Per-Page: 20
Total: 1
Content-Type: application/json; charset=utf-8
X-CSRF-Token: p95L0LQX1W2rKDwcn0CMfHiOGOY2zuBmsMLSrSbElhB0i6MDF9W3SdCY8fWS2zCpoD5Y9VcMUEBzsF09G1L0rA==
ETag: W/"a60be38ada0fbe999c6f9558668ea0df"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=cktlTjdMZXB5SjVaSmZSUHZFZXhRdFVabW1sTEo1N0s4NWEzYVRsQURVbHVTNDJQZG51ckpET2lua2JMZ1l6dEJLVXFDQS9qS00rOW94WlBOTkI1bVdaVmRRL3djRmRjQThEL2VmdG1BOXBPSWJMR291bm1aYnFhU2t5UERHaHVNZ3dJYTRuMEQ3UmM5d2hOUFBCbmxNcElBTDNZT1plbGw4NkpZR1A0RmgwQ3NrSkdNaW1GaHo2akZUb0lVOVA4LS1kL01GRWJUcjQ3S0IxanlzYi9KSFV3PT0%3D--b023fc0479e25480594474193919bebc25459d81; path=/; HttpOnly
X-Request-Id: aa2da5bc-399d-4ca6-8508-68dfe3305a57
X-Runtime: 0.042753
Content-Length: 547

Body

{
  "orders": [
    {
      "id": 2,
      "full_id": "2",
      "catalog_id": 13,
      "catalog": {
        "id": 13,
        "name": "Domain Account 13"
      },
      "user": {
        "id": 1,
        "name": "Saul Goodman",
        "email": "[email protected]"
      },
      "listings": [
        {
          "id": 7,
          "canvas_course_id": 3,
          "title": "Course 7",
          "amount": "100.0",
          "discounted_amount": "90.0",
          "catalog_id": 13
        }
      ],
      "promotions": [
        {
          "id": 2,
          "listing_id": 7,
          "code": "PROMO2",
          "amount": "-10.0"
        }
      ],
      "payments": [
        {
          "reference_id": "123",
          "status": "success",
          "amount": "90.0"
        }
      ],
      "total": "90.0",
      "currency": "USD",
      "purchased_at": "2024/05/23 13:44:48 +0000",
      "created_at": "2024/05/23 13:44:48 +0000"
    }
  ]
}

Programs

Creating a program

Endpoint

POST https://www.my-catalog.edu/api/v1/programs

Parameters

Name Description Type
program[title] required Listing title String
program[description] required Full listing description String
program[path] required Path to the listing. Used in URLs String
program[teaser] required A shorter description of the listing String
program[enrollment_open] Indicates if the listing is current accepting new students Boolean
program[enrollment_open_from] If specified, enrollment is open only from this date-time Datetime
program[enrollment_open_to] If specified, enrollment is open only to this date-time Datetime
program[visibility] Indicates if the listing is visible in the web UI. Possible values: listed, unlisted, hidden String
program[enrollment_cap] A limit for the total number of enrollments Integer
program[enrollment_fee] Enrollment fee Decimal
program[allowed_payment_types] Allowed payment methods Array
program[days_to_complete] The number of days a student has to complete the requirements Integer
program[account_id] The id of the account to associate the listing to. Can be an id of any subcatalog of the catalog making the API request. Defaults to the catalog making the API request. Integer
program[list_order] Order in which the listing is shown in the catalog Integer
program[waitlist] Waitlist enabled (defaults to false) Boolean
program[waitlist_cap] Wait List Limit for the total number of wait listed enrollments Integer
program[listing_image] URL or file upload for the image to be shown with this listing. String
program[tag_names] List of tags applied to this listing Array
program[show_free_banner] Show the 'FREE' mark on the card of the listing if free Boolean
program[associated_account_ids] Other account ids where this product should be listed Array
program[requirement_ids] Ordered array of listing IDs that represent requirements for completing the program Array
program[sequential] Indicates if students are required to complete requirements in order Boolean

Request

Route

POST https://www.my-catalog.edu/api/v1/programs

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Content-Type: application/json
Host: www.my-catalog.edu
Cookie: 

Body

{
  "program": {
    "title": "Program 1",
    "description": "This is a very awesome program.",
    "path": "program-1",
    "teaser": "This is an example teaser",
    "enrollment_open": true,
    "visibility": "listed",
    "enrollment_cap": 150,
    "waitlist": true,
    "waitlist_cap": 12,
    "enrollment_fee": 49.99,
    "days_to_complete": 45,
    "list_order": 123,
    "requirement_ids": [

    ],
    "sequential": true,
    "tag_names": [
      "Tag",
      "Another Tag"
    ]
  }
}

Response

Response Fields

Name Description Type
id Identifier for this listing. Integer
visibility Indicates if the listing is visible in the web UI. Possible values: listed, unlisted, hidden String
enrollment_open Open for enrollment Boolean
enrollment_open_from If specified, enrollment is open only from this date-time Datetime
enrollment_open_to If specified, enrollment is open only to this date-time Datetime
enrollment_cap A limit for the total number of enrollments Integer
waitlist Waitlist enabled Boolean
waitlist_cap Wait List Limit for the total number of wait listed enrollments Integer
title Title of the listing String
enrollment_fee Enrollment fee Decimal
currency The three digit currency code associated to the enrollment fee String
listing_path Path to the listing. Used in URLs String
listing_url The URL of the listing String
short_description A short description for this listing String
list_order Order in which the listing is listed in the catalog Integer
tag_names List of tags applied to this listing Array
detail_code Payment detail code for a course (only if enabled with :payment_detail_code_enabled feature flag) String
show_free_banner Show the 'FREE' mark on the card of the listing if free Boolean
associated_account_ids Other account ids where this product should be listed Array
start_date When the Canvas course starts if specified Datetime
end_date When the Canvas course ends if specified Datetime
canvas_section_id The Canvas course's section's id Integer
catalog[id] Id for the catalog that owns this listing Integer
catalog[name] Name for the catalog that owns this listing String
created_at The creation date for the listing. Datetime
updated_at The last time the listing was updated. Datetime
sequential Indicates if students are required to complete requirements in order Boolean
requirements A nested array of the programs requirements. This includes courses and subprograms which can be distinguished by the type key. Array
credits Cumulative credit value of the program's requirements Decimal

Status

201

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Location: https://www.my-catalog.edu/api/v1/programs/22
Content-Type: application/json; charset=utf-8
X-CSRF-Token: 3iYBtHUSQX0MEFBvH4QmMfN11XylD88O/APXPmQlQVroNeQCBNWeQlDQaFggyJ2tq5sxoR7NorFa2d3s4KIL6Q==
ETag: W/"59d43af689d322aae0befd647c0cb557"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=N0UrbzdjQStTYWVpcXc4K3huQitjanFYMUt6SDdJTWdNby9INDVKT1o5aXp0MHYyc1RTRHpvYmhGcis5TWlhR1VGbm1LdVFxV3U4Umt4ckt2UEpWWEZMOEI3c3IxRXYydzZKODdwV0pYdEZIT3lUR3FPTTNHSHQ2NDFRd21FV3k5K3krWm9kVy80TUYvS2Y2b1JxZ1hrMG5Xa3VFNDh3Z29JcjZwRUVkM3ZHMUdJRXM1OC84eVlyQVNzU3dlZnJoLS1lMHFPd0l6WHNwM2wzM3FydDR3OTBnPT0%3D--1d875c572e8eb07c57f995c130755ffc233625d1; path=/; HttpOnly
X-Request-Id: 74654144-5e8c-42f9-9a40-1c84b4037394
X-Runtime: 0.090063
Content-Length: 894

Body

{
  "program": {
    "id": 22,
    "visibility": "listed",
    "enrollment_open": true,
    "enrollment_open_from": null,
    "enrollment_open_to": null,
    "enrollment_cap": 150,
    "description": "This is a very awesome program.",
    "enrollment_fee": "49.99",
    "created_at": "2024/05/23 13:44:50 +0000",
    "credits": null,
    "measurement": "credit",
    "updated_at": "2024/05/23 13:44:50 +0000",
    "short_description": "This is an example teaser",
    "listing_path": "program-1",
    "listing_image": null,
    "currency": "USD",
    "catalog": {
      "id": 40,
      "name": "Domain Account 44"
    },
    "type": "Program",
    "title": "Program 1",
    "list_order": 123,
    "waitlist": true,
    "waitlist_cap": 12,
    "sku": null,
    "show_free_banner": true,
    "image_alt_text": null,
    "allowed_payment_types": [
      "standard"
    ],
    "tag_names": [
      "Tag",
      "Another Tag"
    ],
    "listing_url": "http://www.my-catalog.edu/programs/program-1",
    "start_date": null,
    "end_date": null,
    "canvas_section_id": null,
    "associated_account_ids": [

    ],
    "sequential": true,
    "requirements": [

    ]
  }
}

Deleting a specific program

Endpoint

DELETE https://www.my-catalog.edu/api/v1/programs/:id

Request

Route

DELETE https://www.my-catalog.edu/api/v1/programs/15

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Host: www.my-catalog.edu
Content-Type: application/x-www-form-urlencoded
Cookie: 

Response

Status

204

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
X-CSRF-Token: nHlLD+4Q/x8XebhV6XYuu8oeWYZLr4BXF+O4qXIuPS8HJxlZd9jlCNPzaVsvecm6pDK1vvhDH6JpDOMs7PgnlQ==
Cache-Control: no-cache
Set-Cookie: _gallery_session=dW9zVGJxa1F1WTJ2R1ArbDZMSkNvemNNdDlGRXduZ0hsMzlzYWkrRjRoQk1aTmQvbzNKRHUwd3pkMDZHa0xpVGFXYlcvSjlMTE5LRjVRYTNjZng2Q3RYOHp0ZmNDbXJkY2lkdzBEL2pNZC9ZN1RQYlhTM1MwUXZJRWIwUnJnalkxUmw0YWZ1ZGNUVVZ0TEVuaThNNm9WZDJFZmd0VUFScmFGTjhHdUN6RFQxZm1Cb0FORHBTNUVyT0xyQXA1eEIrLS1xN09KMXZKbG15L2NPeDhCL3VDZ2hBPT0%3D--335e4ba68cd12a613c1345f42f437b3e98f94a44; path=/; HttpOnly
X-Request-Id: 171ca0db-9672-4776-aec9-d4caf2691eac
X-Runtime: 0.081517

Getting a specific program

Endpoint

GET https://www.my-catalog.edu/api/v1/programs/:id

Request

Route

GET https://www.my-catalog.edu/api/v1/programs/29

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Host: www.my-catalog.edu
Cookie: 

Response

Response Fields

Name Description Type
id Identifier for this listing. Integer
visibility Indicates if the listing is visible in the web UI. Possible values: listed, unlisted, hidden String
enrollment_open Open for enrollment Boolean
enrollment_open_from If specified, enrollment is open only from this date-time Datetime
enrollment_open_to If specified, enrollment is open only to this date-time Datetime
enrollment_cap A limit for the total number of enrollments Integer
waitlist Waitlist enabled Boolean
waitlist_cap Wait List Limit for the total number of wait listed enrollments Integer
title Title of the listing String
enrollment_fee Enrollment fee Decimal
currency The three digit currency code associated to the enrollment fee String
listing_path Path to the listing. Used in URLs String
listing_url The URL of the listing String
short_description A short description for this listing String
list_order Order in which the listing is listed in the catalog Integer
tag_names List of tags applied to this listing Array
detail_code Payment detail code for a course (only if enabled with :payment_detail_code_enabled feature flag) String
show_free_banner Show the 'FREE' mark on the card of the listing if free Boolean
associated_account_ids Other account ids where this product should be listed Array
start_date When the Canvas course starts if specified Datetime
end_date When the Canvas course ends if specified Datetime
canvas_section_id The Canvas course's section's id Integer
catalog[id] Id for the catalog that owns this listing Integer
catalog[name] Name for the catalog that owns this listing String
created_at The creation date for the listing. Datetime
updated_at The last time the listing was updated. Datetime
sequential Indicates if students are required to complete requirements in order Boolean
requirements A nested array of the programs requirements. This includes courses and subprograms which can be distinguished by the type key. Array
credits Cumulative credit value of the program's requirements Decimal

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/json; charset=utf-8
X-CSRF-Token: I0kxvbsyF9JesWnuYR4SiaoQaIyjrH+fGWFJHk6VkwrGTGrVklXpOdO0xOKKgSus5zzFHpq1Zs2gHGfS236FVg==
ETag: W/"1eda31c1dc80c2bc53378865ef526b6d"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=aXV2aWJRQmdiOGM5VG1YbEtPbFNQdjA2RGNUTWZucE1yK1V1V0FBR2l2SGtqdEhDaWVIbGFmTWl2UEpYYjhVclQvcU16RmtVMUVWN0xweUZkaE5yTzBGSElxQ3lNbjA0ME8zOWRoZG5aZUM3L2NkYUI3eUFXV2M0K2RMTUQ5dXcvcWROdDFXWW9NVU92eEFRb0NibHJQQy9mbE5JVlA0KytJdGE3eFdCTTI5eitlTHJqSVJFeU5mcWlxTnZ3VTJRLS1wRktxVUdOR0ZnRjJYODJMWXl1TDl3PT0%3D--e4d9344a803e2fdae2831bbd6208a4a86eb64bab; path=/; HttpOnly
X-Request-Id: ff4361ca-1b52-413b-ab1d-022ff8e933dc
X-Runtime: 0.077183
Content-Length: 5277

Body

{
  "program": {
    "id": 29,
    "visibility": "listed",
    "enrollment_open": true,
    "enrollment_open_from": null,
    "enrollment_open_to": null,
    "enrollment_cap": null,
    "description": "description_28",
    "enrollment_fee": "0.0",
    "created_at": "2024/05/23 13:44:51 +0000",
    "credits": 9.0,
    "measurement": "credit",
    "updated_at": "2024/05/23 13:44:51 +0000",
    "short_description": "teaser_28",
    "listing_path": "program-path-28",
    "listing_image": null,
    "currency": "USD",
    "catalog": {
      "id": 42,
      "name": "Domain Account 46"
    },
    "type": "Program",
    "title": "Program 28",
    "list_order": null,
    "waitlist": false,
    "waitlist_cap": null,
    "sku": null,
    "show_free_banner": true,
    "image_alt_text": null,
    "allowed_payment_types": [
      "standard"
    ],
    "tag_names": [
      "Another Tag",
      "Tag"
    ],
    "listing_url": "http://www.my-catalog.edu/programs/program-path-28",
    "start_date": "2024/05/16 13:44:51 +0000",
    "end_date": null,
    "canvas_section_id": null,
    "associated_account_ids": [

    ],
    "sequential": true,
    "requirements": [
      {
        "id": 30,
        "visibility": "listed",
        "enrollment_open": true,
        "enrollment_open_from": null,
        "enrollment_open_to": null,
        "enrollment_cap": null,
        "description": "description_29",
        "enrollment_fee": "0.0",
        "created_at": "2024/05/23 13:44:51 +0000",
        "credits": 3.0,
        "measurement": "credit",
        "updated_at": "2024/05/23 13:44:51 +0000",
        "short_description": "teaser_29",
        "listing_path": "program-path-29",
        "listing_image": null,
        "currency": "USD",
        "catalog": {
          "id": 42,
          "name": "Domain Account 46"
        },
        "type": "Program",
        "title": "Program 29",
        "list_order": null,
        "waitlist": false,
        "waitlist_cap": null,
        "sku": null,
        "show_free_banner": true,
        "image_alt_text": null,
        "allowed_payment_types": [
          "standard"
        ],
        "tag_names": [

        ],
        "listing_url": "http://www.my-catalog.edu/programs/program-path-29",
        "start_date": "2024/05/16 13:44:51 +0000",
        "end_date": null,
        "canvas_section_id": null,
        "associated_account_ids": [

        ],
        "sequential": true,
        "requirements": [
          {
            "id": 32,
            "visibility": "listed",
            "enrollment_open": true,
            "enrollment_open_from": null,
            "enrollment_open_to": null,
            "enrollment_cap": null,
            "description": "description_31",
            "enrollment_fee": "0.0",
            "created_at": "2024/05/23 13:44:51 +0000",
            "credits": 3.0,
            "measurement": "credit",
            "updated_at": "2024/05/23 13:44:51 +0000",
            "short_description": "teaser_31",
            "listing_path": "course-path-31",
            "listing_image": null,
            "currency": "USD",
            "catalog": {
              "id": 42,
              "name": "Domain Account 46"
            },
            "type": "Course",
            "title": "Course 31",
            "list_order": null,
            "waitlist": false,
            "waitlist_cap": null,
            "sku": "sku_17",
            "show_free_banner": true,
            "image_alt_text": null,
            "allowed_payment_types": [
              "standard"
            ],
            "tag_names": [

            ],
            "listing_url": "http://www.my-catalog.edu/courses/course-path-31",
            "start_date": "2024/05/16 13:44:51 +0000",
            "end_date": "2024/05/30 13:44:51 +0000",
            "canvas_section_id": null,
            "associated_account_ids": [

            ],
            "canvas_course": {
              "id": 17
            }
          }
        ]
      },
      {
        "id": 31,
        "visibility": "listed",
        "enrollment_open": true,
        "enrollment_open_from": null,
        "enrollment_open_to": null,
        "enrollment_cap": null,
        "description": "description_30",
        "enrollment_fee": "0.0",
        "created_at": "2024/05/23 13:44:51 +0000",
        "credits": 6.0,
        "measurement": "credit",
        "updated_at": "2024/05/23 13:44:51 +0000",
        "short_description": "teaser_30",
        "listing_path": "program-path-30",
        "listing_image": null,
        "currency": "USD",
        "catalog": {
          "id": 42,
          "name": "Domain Account 46"
        },
        "type": "Program",
        "title": "Program 30",
        "list_order": null,
        "waitlist": false,
        "waitlist_cap": null,
        "sku": null,
        "show_free_banner": true,
        "image_alt_text": null,
        "allowed_payment_types": [
          "standard"
        ],
        "tag_names": [

        ],
        "listing_url": "http://www.my-catalog.edu/programs/program-path-30",
        "start_date": "2024/05/16 13:44:51 +0000",
        "end_date": null,
        "canvas_section_id": null,
        "associated_account_ids": [

        ],
        "sequential": true,
        "requirements": [
          {
            "id": 33,
            "visibility": "listed",
            "enrollment_open": true,
            "enrollment_open_from": null,
            "enrollment_open_to": null,
            "enrollment_cap": null,
            "description": "description_32",
            "enrollment_fee": "0.0",
            "created_at": "2024/05/23 13:44:51 +0000",
            "credits": 3.0,
            "measurement": "credit",
            "updated_at": "2024/05/23 13:44:51 +0000",
            "short_description": "teaser_32",
            "listing_path": "course-path-32",
            "listing_image": null,
            "currency": "USD",
            "catalog": {
              "id": 42,
              "name": "Domain Account 46"
            },
            "type": "Course",
            "title": "Course 32",
            "list_order": null,
            "waitlist": false,
            "waitlist_cap": null,
            "sku": "sku_18",
            "show_free_banner": true,
            "image_alt_text": null,
            "allowed_payment_types": [
              "standard"
            ],
            "tag_names": [

            ],
            "listing_url": "http://www.my-catalog.edu/courses/course-path-32",
            "start_date": "2024/05/16 13:44:51 +0000",
            "end_date": "2024/05/30 13:44:51 +0000",
            "canvas_section_id": null,
            "associated_account_ids": [

            ],
            "canvas_course": {
              "id": 18
            }
          },
          {
            "id": 34,
            "visibility": "listed",
            "enrollment_open": true,
            "enrollment_open_from": null,
            "enrollment_open_to": null,
            "enrollment_cap": null,
            "description": "description_33",
            "enrollment_fee": "0.0",
            "created_at": "2024/05/23 13:44:51 +0000",
            "credits": 3.0,
            "measurement": "credit",
            "updated_at": "2024/05/23 13:44:51 +0000",
            "short_description": "teaser_33",
            "listing_path": "course-path-33",
            "listing_image": null,
            "currency": "USD",
            "catalog": {
              "id": 42,
              "name": "Domain Account 46"
            },
            "type": "Course",
            "title": "Course 33",
            "list_order": null,
            "waitlist": false,
            "waitlist_cap": null,
            "sku": "sku_19",
            "show_free_banner": true,
            "image_alt_text": null,
            "allowed_payment_types": [
              "standard"
            ],
            "tag_names": [

            ],
            "listing_url": "http://www.my-catalog.edu/courses/course-path-33",
            "start_date": "2024/05/16 13:44:51 +0000",
            "end_date": "2024/05/30 13:44:51 +0000",
            "canvas_section_id": null,
            "associated_account_ids": [

            ],
            "canvas_course": {
              "id": 19
            }
          }
        ]
      }
    ]
  }
}

Listing programs

Endpoint

GET https://www.my-catalog.edu/api/v1/programs

Request

Route

GET https://www.my-catalog.edu/api/v1/programs

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Host: www.my-catalog.edu
Cookie: 

Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Per-Page: 20
Total: 3
Content-Type: application/json; charset=utf-8
X-CSRF-Token: jqZ6O610LRQ1UYwTduzbxu7axpKF9ovbXJhyny9KOTfmFZHP0X07vhpNmrUUYOdaYRdvjnl40ETc6yDlqlCmqQ==
ETag: W/"0af6ed48ee4fabdd475c6e1fc1bb156e"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=NjRVOTQrTUpDTlAzcFAvMmVMcmRBTnlaekN1RUVJWGp2aGZPNnc0WFVuYkxsU1Z3VDhzZUJjdTE2ekdYWHdENzlFZWZSL094ajdGU21uWDdDSHVNTWNZcXRydGpHYkM5ZCtyYlBCdkNpTiswTS9DY2R2d2lLU3dMeUlKalZ1a2c0WmcrWVhXUFVEeWZEeGxnQzh1S2gxVkIycHZHTFM2Zm1JQ2tpNHBlQ3ByUXp2UC94czRGcmpNZGJPM090aVBzLS1Sc1ZZbnJKcmJ4azFoa3hMVnpxcEZnPT0%3D--42898264f67c5d75f8c000bb4c0d2fdc154c8c8e; path=/; HttpOnly
X-Request-Id: 3ab161fc-43df-4c95-ba55-37dff881e0b8
X-Runtime: 0.111775
Content-Length: 9659

Body

{
  "programs": [
    {
      "id": 23,
      "visibility": "listed",
      "enrollment_open": true,
      "enrollment_open_from": null,
      "enrollment_open_to": null,
      "enrollment_cap": null,
      "description": "description_22",
      "enrollment_fee": "0.0",
      "created_at": "2024/05/23 13:44:50 +0000",
      "credits": 9.0,
      "measurement": "credit",
      "updated_at": "2024/05/23 13:44:50 +0000",
      "short_description": "teaser_22",
      "listing_path": "program-path-22",
      "listing_image": null,
      "currency": "USD",
      "catalog": {
        "id": 41,
        "name": "Domain Account 45"
      },
      "type": "Program",
      "title": "Program 22",
      "list_order": null,
      "waitlist": false,
      "waitlist_cap": null,
      "sku": null,
      "show_free_banner": true,
      "image_alt_text": null,
      "allowed_payment_types": [
        "standard"
      ],
      "tag_names": [
        "Another Tag",
        "Tag"
      ],
      "listing_url": "http://www.my-catalog.edu/programs/program-path-22",
      "start_date": "2024/05/16 13:44:50 +0000",
      "end_date": null,
      "canvas_section_id": null,
      "associated_account_ids": [

      ],
      "sequential": true,
      "requirements": [
        {
          "id": 24,
          "visibility": "listed",
          "enrollment_open": true,
          "enrollment_open_from": null,
          "enrollment_open_to": null,
          "enrollment_cap": null,
          "description": "description_23",
          "enrollment_fee": "0.0",
          "created_at": "2024/05/23 13:44:50 +0000",
          "credits": 3.0,
          "measurement": "credit",
          "updated_at": "2024/05/23 13:44:50 +0000",
          "short_description": "teaser_23",
          "listing_path": "program-path-23",
          "listing_image": null,
          "currency": "USD",
          "catalog": {
            "id": 41,
            "name": "Domain Account 45"
          },
          "type": "Program",
          "title": "Program 23",
          "list_order": null,
          "waitlist": false,
          "waitlist_cap": null,
          "sku": null,
          "show_free_banner": true,
          "image_alt_text": null,
          "allowed_payment_types": [
            "standard"
          ],
          "tag_names": [

          ],
          "listing_url": "http://www.my-catalog.edu/programs/program-path-23",
          "start_date": "2024/05/16 13:44:50 +0000",
          "end_date": null,
          "canvas_section_id": null,
          "associated_account_ids": [

          ],
          "sequential": true,
          "requirements": [
            {
              "id": 26,
              "visibility": "listed",
              "enrollment_open": true,
              "enrollment_open_from": null,
              "enrollment_open_to": null,
              "enrollment_cap": null,
              "description": "description_25",
              "enrollment_fee": "0.0",
              "created_at": "2024/05/23 13:44:50 +0000",
              "credits": 3.0,
              "measurement": "credit",
              "updated_at": "2024/05/23 13:44:50 +0000",
              "short_description": "teaser_25",
              "listing_path": "course-path-25",
              "listing_image": null,
              "currency": "USD",
              "catalog": {
                "id": 41,
                "name": "Domain Account 45"
              },
              "type": "Course",
              "title": "Course 25",
              "list_order": null,
              "waitlist": false,
              "waitlist_cap": null,
              "sku": "sku_14",
              "show_free_banner": true,
              "image_alt_text": null,
              "allowed_payment_types": [
                "standard"
              ],
              "tag_names": [

              ],
              "listing_url": "http://www.my-catalog.edu/courses/course-path-25",
              "start_date": "2024/05/16 13:44:50 +0000",
              "end_date": "2024/05/30 13:44:50 +0000",
              "canvas_section_id": null,
              "associated_account_ids": [

              ],
              "canvas_course": {
                "id": 14
              }
            }
          ]
        },
        {
          "id": 25,
          "visibility": "listed",
          "enrollment_open": true,
          "enrollment_open_from": null,
          "enrollment_open_to": null,
          "enrollment_cap": null,
          "description": "description_24",
          "enrollment_fee": "0.0",
          "created_at": "2024/05/23 13:44:50 +0000",
          "credits": 6.0,
          "measurement": "credit",
          "updated_at": "2024/05/23 13:44:50 +0000",
          "short_description": "teaser_24",
          "listing_path": "program-path-24",
          "listing_image": null,
          "currency": "USD",
          "catalog": {
            "id": 41,
            "name": "Domain Account 45"
          },
          "type": "Program",
          "title": "Program 24",
          "list_order": null,
          "waitlist": false,
          "waitlist_cap": null,
          "sku": null,
          "show_free_banner": true,
          "image_alt_text": null,
          "allowed_payment_types": [
            "standard"
          ],
          "tag_names": [

          ],
          "listing_url": "http://www.my-catalog.edu/programs/program-path-24",
          "start_date": "2024/05/16 13:44:50 +0000",
          "end_date": null,
          "canvas_section_id": null,
          "associated_account_ids": [

          ],
          "sequential": true,
          "requirements": [
            {
              "id": 27,
              "visibility": "listed",
              "enrollment_open": true,
              "enrollment_open_from": null,
              "enrollment_open_to": null,
              "enrollment_cap": null,
              "description": "description_26",
              "enrollment_fee": "0.0",
              "created_at": "2024/05/23 13:44:50 +0000",
              "credits": 3.0,
              "measurement": "credit",
              "updated_at": "2024/05/23 13:44:50 +0000",
              "short_description": "teaser_26",
              "listing_path": "course-path-26",
              "listing_image": null,
              "currency": "USD",
              "catalog": {
                "id": 41,
                "name": "Domain Account 45"
              },
              "type": "Course",
              "title": "Course 26",
              "list_order": null,
              "waitlist": false,
              "waitlist_cap": null,
              "sku": "sku_15",
              "show_free_banner": true,
              "image_alt_text": null,
              "allowed_payment_types": [
                "standard"
              ],
              "tag_names": [

              ],
              "listing_url": "http://www.my-catalog.edu/courses/course-path-26",
              "start_date": "2024/05/16 13:44:50 +0000",
              "end_date": "2024/05/30 13:44:50 +0000",
              "canvas_section_id": null,
              "associated_account_ids": [

              ],
              "canvas_course": {
                "id": 15
              }
            },
            {
              "id": 28,
              "visibility": "listed",
              "enrollment_open": true,
              "enrollment_open_from": null,
              "enrollment_open_to": null,
              "enrollment_cap": null,
              "description": "description_27",
              "enrollment_fee": "0.0",
              "created_at": "2024/05/23 13:44:50 +0000",
              "credits": 3.0,
              "measurement": "credit",
              "updated_at": "2024/05/23 13:44:50 +0000",
              "short_description": "teaser_27",
              "listing_path": "course-path-27",
              "listing_image": null,
              "currency": "USD",
              "catalog": {
                "id": 41,
                "name": "Domain Account 45"
              },
              "type": "Course",
              "title": "Course 27",
              "list_order": null,
              "waitlist": false,
              "waitlist_cap": null,
              "sku": "sku_16",
              "show_free_banner": true,
              "image_alt_text": null,
              "allowed_payment_types": [
                "standard"
              ],
              "tag_names": [

              ],
              "listing_url": "http://www.my-catalog.edu/courses/course-path-27",
              "start_date": "2024/05/16 13:44:50 +0000",
              "end_date": "2024/05/30 13:44:50 +0000",
              "canvas_section_id": null,
              "associated_account_ids": [

              ],
              "canvas_course": {
                "id": 16
              }
            }
          ]
        }
      ]
    },
    {
      "id": 24,
      "visibility": "listed",
      "enrollment_open": true,
      "enrollment_open_from": null,
      "enrollment_open_to": null,
      "enrollment_cap": null,
      "description": "description_23",
      "enrollment_fee": "0.0",
      "created_at": "2024/05/23 13:44:50 +0000",
      "credits": 3.0,
      "measurement": "credit",
      "updated_at": "2024/05/23 13:44:50 +0000",
      "short_description": "teaser_23",
      "listing_path": "program-path-23",
      "listing_image": null,
      "currency": "USD",
      "catalog": {
        "id": 41,
        "name": "Domain Account 45"
      },
      "type": "Program",
      "title": "Program 23",
      "list_order": null,
      "waitlist": false,
      "waitlist_cap": null,
      "sku": null,
      "show_free_banner": true,
      "image_alt_text": null,
      "allowed_payment_types": [
        "standard"
      ],
      "tag_names": [

      ],
      "listing_url": "http://www.my-catalog.edu/programs/program-path-23",
      "start_date": "2024/05/16 13:44:50 +0000",
      "end_date": null,
      "canvas_section_id": null,
      "associated_account_ids": [

      ],
      "sequential": true,
      "requirements": [
        {
          "id": 26,
          "visibility": "listed",
          "enrollment_open": true,
          "enrollment_open_from": null,
          "enrollment_open_to": null,
          "enrollment_cap": null,
          "description": "description_25",
          "enrollment_fee": "0.0",
          "created_at": "2024/05/23 13:44:50 +0000",
          "credits": 3.0,
          "measurement": "credit",
          "updated_at": "2024/05/23 13:44:50 +0000",
          "short_description": "teaser_25",
          "listing_path": "course-path-25",
          "listing_image": null,
          "currency": "USD",
          "catalog": {
            "id": 41,
            "name": "Domain Account 45"
          },
          "type": "Course",
          "title": "Course 25",
          "list_order": null,
          "waitlist": false,
          "waitlist_cap": null,
          "sku": "sku_14",
          "show_free_banner": true,
          "image_alt_text": null,
          "allowed_payment_types": [
            "standard"
          ],
          "tag_names": [

          ],
          "listing_url": "http://www.my-catalog.edu/courses/course-path-25",
          "start_date": "2024/05/16 13:44:50 +0000",
          "end_date": "2024/05/30 13:44:50 +0000",
          "canvas_section_id": null,
          "associated_account_ids": [

          ],
          "canvas_course": {
            "id": 14
          }
        }
      ]
    },
    {
      "id": 25,
      "visibility": "listed",
      "enrollment_open": true,
      "enrollment_open_from": null,
      "enrollment_open_to": null,
      "enrollment_cap": null,
      "description": "description_24",
      "enrollment_fee": "0.0",
      "created_at": "2024/05/23 13:44:50 +0000",
      "credits": 6.0,
      "measurement": "credit",
      "updated_at": "2024/05/23 13:44:50 +0000",
      "short_description": "teaser_24",
      "listing_path": "program-path-24",
      "listing_image": null,
      "currency": "USD",
      "catalog": {
        "id": 41,
        "name": "Domain Account 45"
      },
      "type": "Program",
      "title": "Program 24",
      "list_order": null,
      "waitlist": false,
      "waitlist_cap": null,
      "sku": null,
      "show_free_banner": true,
      "image_alt_text": null,
      "allowed_payment_types": [
        "standard"
      ],
      "tag_names": [

      ],
      "listing_url": "http://www.my-catalog.edu/programs/program-path-24",
      "start_date": "2024/05/16 13:44:50 +0000",
      "end_date": null,
      "canvas_section_id": null,
      "associated_account_ids": [

      ],
      "sequential": true,
      "requirements": [
        {
          "id": 27,
          "visibility": "listed",
          "enrollment_open": true,
          "enrollment_open_from": null,
          "enrollment_open_to": null,
          "enrollment_cap": null,
          "description": "description_26",
          "enrollment_fee": "0.0",
          "created_at": "2024/05/23 13:44:50 +0000",
          "credits": 3.0,
          "measurement": "credit",
          "updated_at": "2024/05/23 13:44:50 +0000",
          "short_description": "teaser_26",
          "listing_path": "course-path-26",
          "listing_image": null,
          "currency": "USD",
          "catalog": {
            "id": 41,
            "name": "Domain Account 45"
          },
          "type": "Course",
          "title": "Course 26",
          "list_order": null,
          "waitlist": false,
          "waitlist_cap": null,
          "sku": "sku_15",
          "show_free_banner": true,
          "image_alt_text": null,
          "allowed_payment_types": [
            "standard"
          ],
          "tag_names": [

          ],
          "listing_url": "http://www.my-catalog.edu/courses/course-path-26",
          "start_date": "2024/05/16 13:44:50 +0000",
          "end_date": "2024/05/30 13:44:50 +0000",
          "canvas_section_id": null,
          "associated_account_ids": [

          ],
          "canvas_course": {
            "id": 15
          }
        },
        {
          "id": 28,
          "visibility": "listed",
          "enrollment_open": true,
          "enrollment_open_from": null,
          "enrollment_open_to": null,
          "enrollment_cap": null,
          "description": "description_27",
          "enrollment_fee": "0.0",
          "created_at": "2024/05/23 13:44:50 +0000",
          "credits": 3.0,
          "measurement": "credit",
          "updated_at": "2024/05/23 13:44:50 +0000",
          "short_description": "teaser_27",
          "listing_path": "course-path-27",
          "listing_image": null,
          "currency": "USD",
          "catalog": {
            "id": 41,
            "name": "Domain Account 45"
          },
          "type": "Course",
          "title": "Course 27",
          "list_order": null,
          "waitlist": false,
          "waitlist_cap": null,
          "sku": "sku_16",
          "show_free_banner": true,
          "image_alt_text": null,
          "allowed_payment_types": [
            "standard"
          ],
          "tag_names": [

          ],
          "listing_url": "http://www.my-catalog.edu/courses/course-path-27",
          "start_date": "2024/05/16 13:44:50 +0000",
          "end_date": "2024/05/30 13:44:50 +0000",
          "canvas_section_id": null,
          "associated_account_ids": [

          ],
          "canvas_course": {
            "id": 16
          }
        }
      ]
    }
  ]
}

Updating a program

Endpoint

PUT https://www.my-catalog.edu/api/v1/programs/:id

Parameters

Name Description Type
program[title] Listing title String
program[description] Full listing description String
program[path] Path to the listing. Used in URLs String
program[teaser] A shorter description of the listing String
program[enrollment_open] Indicates if the listing is current accepting new students Boolean
program[enrollment_open_from] If specified, enrollment is open only from this date-time Datetime
program[enrollment_open_to] If specified, enrollment is open only to this date-time Datetime
program[visibility] Indicates if the listing is visible in the web UI. Possible values: listed, unlisted, hidden String
program[enrollment_cap] A limit for the total number of enrollments Integer
program[enrollment_fee] Enrollment fee Decimal
program[allowed_payment_types] Allowed payment methods Array
program[days_to_complete] The number of days a student has to complete the requirements Integer
program[account_id] The id of the account to associate the listing to. Can be an id of any subcatalog of the catalog making the API request. Defaults to the catalog making the API request. Integer
program[list_order] Order in which the listing is shown in the catalog Integer
program[waitlist] Waitlist enabled (defaults to false) Boolean
program[waitlist_cap] Wait List Limit for the total number of wait listed enrollments Integer
program[listing_image] URL or file upload for the image to be shown with this listing. String
program[tag_names] List of tags applied to this listing Array
program[show_free_banner] Show the 'FREE' mark on the card of the listing if free Boolean
program[associated_account_ids] Other account ids where this product should be listed Array
program[requirement_ids] Ordered array of listing IDs that represent requirements for completing the program Array
program[sequential] Indicates if students are required to complete requirements in order Boolean

Request

Route

PUT https://www.my-catalog.edu/api/v1/programs/21

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Content-Type: application/json
Host: www.my-catalog.edu
Cookie: 

Body

{
  "program": {
    "title": "Program 1",
    "description": "This is a very awesome program.",
    "path": "program-1",
    "teaser": "This is an example teaser",
    "enrollment_open": true,
    "visibility": "listed",
    "enrollment_cap": 150,
    "waitlist": true,
    "waitlist_cap": 12,
    "enrollment_fee": 49.99,
    "days_to_complete": 45,
    "list_order": 123,
    "requirement_ids": [

    ],
    "sequential": true,
    "tag_names": [
      "Tag",
      "Another Tag"
    ]
  }
}

Response

Status

204

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
X-CSRF-Token: V+ecDPS6xXbnMRFpWjvY2m1UzKiMijQyOeEiwM4Zrojsl6GsEeJ52zKEu+hHWZRuV76Y90maLGnVX0wKAmyfgw==
Cache-Control: no-cache
Set-Cookie: _gallery_session=R3dUdXNQUEhEeElYdkRkVWJXNUpJWnFRVVpsTmF0ZTF0S0FEazZDLy9XQzFlQmhiZ044SVNEbUFaNzJ5V1Q2T2NpNEJvZm5rK3lEVFNCQU1nWXdUekF3cWdvN3Z1ZFFseE1QWnk2TjVmTmdKNloyeFo2YmhjZkNoTTJKYkZPVnVXUEYvL2N1cGFkV3RPaWkxZFZRekp2RTFqNEkvQmpydEUvS1dhWlc0QmNSZzhsVVlHUk04MXdpTEdtSnhIRVh1LS1kNGhZVDNYcjRqNFAwYXdBd1MySmRnPT0%3D--fd626e2b911a5b0da9f18cb04801efbe43c6a067; path=/; HttpOnly
X-Request-Id: 022d0c9a-740f-4b1d-926f-d1b4ba2429ef
X-Runtime: 0.080980

Progresses

Getting a specific progress

Endpoint

GET https://www.my-catalog.edu/api/v1/progresses/:id

Request

Route

GET https://www.my-catalog.edu/api/v1/progresses/2

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Host: www.my-catalog.edu
Cookie: 

Response

Response Fields

Name Description Type
id Progress ID Integer
account_id Catalog Account ID Integer
canvas_user_id The Canvas User ID of the user who initiated the job Integer
completion_percent The completion percent of the job Integer
workflow_state The status of the progress String
payload Any data or errors returned by the job Array
created_at The creation date for the progress job Datetime
updated_at The last time the progress job was updated Datetime

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/json; charset=utf-8
X-CSRF-Token: 250HRZjfUiRGaSyJWTbOeTJ8AM5ZhP1LZI1Oh4Bbn45+9LM7vtvUTmNKoOAd0DD2v7oLmdRL+rSb4YROPvekOQ==
ETag: W/"1d36a40779c4a5c8f5b20023d6299944"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=SnQwQmNndFpWVzVKS0N2UG5MOWVKRTkvcDBIY2ZYaW1Ia1JYdExkNHFkY1htSG1sb0lwS3VaeHdKNGlWTzdxd1lBVEFCcTNPSGc3SVUyQ3lnTm9oZUJROHhhdjhXUkVLL2lLS1JoaEZHbFdtMVdHQU0wNUwwUGpQU0ZYUy8zWU1OZlcwUVN3dTVhUitSZkRUTlNVcUJDRlo0ajErQk9wN3JoZGJhSExyMHF4cVhYVGRXRXcxYlZRTEI2RXBhcUNKLS1wd1htMmhic0VOa1A2L056OHZYdGpnPT0%3D--b2c083e16e4c87afb8496743a9bc265d2e67f2da; path=/; HttpOnly
X-Request-Id: 736cffee-9d82-4971-af9a-019b27e451c1
X-Runtime: 0.034545
Content-Length: 206

Body

{
  "progress": {
    "id": 2,
    "account_id": 49,
    "canvas_user_id": null,
    "completion_percent": null,
    "workflow_state": "queued",
    "payload": {
    },
    "created_at": "2024/05/23 13:44:51 +0000",
    "updated_at": "2024/05/23 13:44:51 +0000"
  }
}

Tags

The request parameters should be sent as JSON in the request body.

Creating a Tag

Endpoint

POST https://www.my-catalog.edu/api/v1/tags

Parameters

Name Description Type
name required Tag name (minimum 1 and maximum 255 characters) String
product_ids List of product ids associate to this tag Array

Request

Route

POST https://www.my-catalog.edu/api/v1/tags

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Content-Type: application/json
Host: www.my-catalog.edu
Cookie: 

Body

{
  "name": "Tag 1",
  "product_ids": [
    1,
    2,
    3
  ]
}

Response

Response Fields

Name Description Type
id Tag id Integer
account_id Account id Integer
name Tag name String
created_at Tag created at Datetime
updated_at Tag updated at Datetime
assigned_listings Products associate to this tag Array
assigned_listings[id] Product id Integer
assigned_listings[title] Product title String
assigned_listings[type] Product type (COURSE or PROGRAM) String
assigned_listings[canvas_course_id] Product Canvas course id Integer
assigned_categories Returns empty list to indicate there are no associated categories to the newly created tag Array

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/json; charset=utf-8
X-CSRF-Token: jYT2OlswLZ9WoCRJKhAH6h1ZwSXXpjl2Yya+QPF/Bl/TfgXNHMCYqWt1WsdYI0UiX0PRA+cuS0d2PnlsJ3MckA==
ETag: W/"a7459d27f7080449446d5b5bb224377d"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=VzhFUHdJYnYxUXNlWkkwZk0wYWwrWHoyanV4YTR4SUpxTEs0V2ZNY2t1ZElRdUlzS3lram5KSXRuMWtFQm9zVFArNUdkWHRjUU5NcFZrZmw1NzBLdXY1R01rVCsxRjlNcHZvb01mcmk5eHRFNjJ3blR0N1FVV2hXMGcyeGtmQ2lmMUE2cEthNkN3ZHJGMWRQaEJEVVlad29IVk9kanQ0TktWMFdVSk5WMnBPQ2FQQ1R2NEZTOEtDc2JUUzU3SXhNLS1xTFZIVzEwUHluaFplOElMejQ4UXZBPT0%3D--65f5f34fd38c2107dfaf79b4186c52806f533bc8; path=/; HttpOnly
X-Request-Id: 3fca1584-2be4-4874-9ee6-11a31830e2d5
X-Runtime: 0.043452
Content-Length: 347

Body

{
  "id": 1,
  "account_id": 1,
  "name": "Tag 1",
  "assigned_listings": [
    {
      "id": 1,
      "title": "Course 1",
      "type": "COURSE",
      "canvas_course_id": 2
    },
    {
      "id": 2,
      "title": "Course 2",
      "type": "COURSE",
      "canvas_course_id": 3
    },
    {
      "id": 3,
      "title": "Program 1",
      "type": "PROGRAM"
    }
  ],
  "assigned_categories": [

  ],
  "created_at": "2023-08-07T09:45:45.535989Z",
  "updated_at": "2023-08-07T09:45:45.535989Z"
}

Deleting a specific Tag

Endpoint

DELETE https://www.my-catalog.edu/api/v1/tags/:id

Request

Route

DELETE https://www.my-catalog.edu/api/v1/tags/1

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Content-Type: application/json
Host: www.my-catalog.edu
Cookie: 

Response

Response Fields

Name Description Type
id Tag id Integer
account_id Account id Integer
name Tag name String
created_at Tag created at Datetime
updated_at Tag updated at Datetime
assigned_listings Returns empty list to indicate associated products to this tag are deleted Array
assigned_categories Returns empty list to indicate associated categories to this tag are deleted Array
is_deleted Returns true to indicate tag is deleted Boolean

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/json; charset=utf-8
X-CSRF-Token: lsnWZh7bxINmi0acahKk+UGpeCP5wIlTLpYLZwv9pKLFHcsSjpro+jZSmfFz9I/08rW52zcr5CHE4rzFImrZdg==
ETag: W/"d8083a384dfb4a4eaf41756aaa4b3830"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=MDdXcy83alZKdnFrUlkwWUg0Y2cvSE1jM0xBRHFCVVZFeC9QV1RSeWZVSmxhditqem5haGpTUGRDc1VCeFZQaEZKc0Y3R3V4NnUxUG5YWWJrbSs4K0w5bEY0SnFHdm5haUFnb01QTzV4M1o3SVBZSnNjYS9Eejkxd242ODdvVHFSbXJiMHMxM3hubzRWQXozNVpGM0dXUytNWFJBZDNjWWdKUC94bWNOTHFWUXpGNzUwQUVPSlAxNVFaa2FXVUF3LS1pMUQyZFJ3MU5XR2dIa1Q1bVd0YkN3PT0%3D--f9ad61ab272857bcd3e5df9b72651faab0f93058; path=/; HttpOnly
X-Request-Id: eabafd26-7741-476a-8b1f-d71b2b6f96dd
X-Runtime: 0.074029
Content-Length: 190

Body

{
  "id": 1,
  "account_id": 1,
  "name": "Tag 1",
  "assigned_listings": [

  ],
  "assigned_categories": [

  ],
  "created_at": "2023-08-07T09:45:45.535989Z",
  "updated_at": "2023-08-07T09:45:45.535989Z",
  "is_deleted": true
}

Getting a specific Tag

Endpoint

GET https://www.my-catalog.edu/api/v1/tags/:id

Request

Route

GET https://www.my-catalog.edu/api/v1/tags/1

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Content-Type: application/json
Host: www.my-catalog.edu
Cookie: 

Response

Response Fields

Name Description Type
id Tag id Integer
account_id Account id Integer
name Tag name String
created_at Tag created at Datetime
updated_at Tag updated at Datetime
assigned_listings Products associate to this tag Array
assigned_listings[id] Product id Integer
assigned_listings[title] Product title String
assigned_listings[type] Product type (COURSE or PROGRAM) String
assigned_listings[canvas_course_id] Product Canvas course id Integer
assigned_categories Categories associate to this tag Array
assigned_categories[id] Category id Integer
assigned_categories[account_id] Account id Integer
assigned_categories[tag_id] Tag id Integer
assigned_categories[created_at] Category created at Datetime
assigned_categories[updated_at] Category updated at Datetime

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/json; charset=utf-8
X-CSRF-Token: +BS6/Vly6g4AA4qbxleutLYgcwyw20WNmMggWP8hoYRVvkS2z1ynf1pmXOc0CQIZYA0ALQ3LSd6N7MjFKh0ZgQ==
ETag: W/"711206f4244188786ce158dbe5d4d93a"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=Y2gxTTErOTF0dVVqSjg1dFBnWVlJd0gzYWcwa2thTTNzc2pjekpzbUdrenNkU0FwdlNJSmZWcFVOaktyZVVlRVlSa3ZzcVRiaDAyTlpRSXZXdHg3eGRaMjdaamF4REJmbm1NckxodXpTSkIvNVBXMytiV0J3aGVqRDlTYnhld1hOOGpMV1pOekEzMFQ4TEVhZnNIK1ZTTHArUWE0RUhBMXl0Y28zcUw4V040WHc5SC9XZERCaWZjOEJFRnVjZHpVLS1EQUJBejdrNVpIVFN0VWRwUzl4QmRRPT0%3D--559991c7cb8ee79fb41dfa2ee04c57f77855561a; path=/; HttpOnly
X-Request-Id: 59333c74-a179-4142-a9e4-9c7d13d4348b
X-Runtime: 0.061350
Content-Length: 357

Body

{
  "id": 1,
  "account_id": 1,
  "name": "Tag 1",
  "assigned_listings": [
    {
      "id": 3,
      "title": "Course 1",
      "type": "COURSE",
      "canvas_course_id": 4
    }
  ],
  "assigned_categories": [
    {
      "id": 12,
      "account_id": 5,
      "tag_id": 1,
      "created_at": "2023-08-22T06:33:38.991906Z",
      "updated_at": "2023-08-24T06:33:38.991906Z"
    }
  ],
  "created_at": "2023-08-07T09:45:45.535989Z",
  "updated_at": "2023-08-07T09:45:45.535989Z"
}

Listing Tags

Endpoint

GET https://www.my-catalog.edu/api/v1/tags

Parameters

Name Description Type
product_ids List of product ids (maximum 20 ids) Array
name Search value which will be searched in tag name and associated products names String
has_category Tag has category or not Boolean
updated_at_from Updated at from Datetime
updated_at_to Updated at to Datetime
created_at_from Created at from Datetime
created_at_to Created at to Datetime

Request

Route

GET https://www.my-catalog.edu/api/v1/tags?product_ids=1%2C2%2C3&name=tag+1&has_category=true&updated_at_from=2023-08-06T14%3A46%3A59.944581%2B02%3A00&updated_at_to=2023-08-10T14%3A46%3A59.944581-05%3A00&created_at_from=2023-08-05T14%3A46%3A59.944581%2B02%3A00&created_at_to=2023-08-09T14%3A46%3A59.944581-05%3A00

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Content-Type: application/json
Host: www.my-catalog.edu
Cookie: 

Query Parameters

product_ids=1,2,3
name=tag 1
has_category=true
updated_at_from=2023-08-06T14:46:59.944581+02:00
updated_at_to=2023-08-10T14:46:59.944581-05:00
created_at_from=2023-08-05T14:46:59.944581+02:00
created_at_to=2023-08-09T14:46:59.944581-05:00

Response

Response Fields

Name Description Type
id Tag id Integer
account_id Account id Integer
name Tag name String
created_at Tag created at Datetime
updated_at Tag updated at Datetime
assigned_listings Products associate to this tag Array
assigned_listings[id] Product id Integer
assigned_listings[title] Product title String
assigned_listings[type] Product type (COURSE or PROGRAM) String
assigned_listings[canvas_course_id] Product Canvas course id Integer
assigned_categories Categories associate to this tag Array
assigned_categories[id] Category id Integer
assigned_categories[account_id] Account id Integer
assigned_categories[tag_id] Tag id Integer
assigned_categories[created_at] Category created at Datetime
assigned_categories[updated_at] Category updated at Datetime

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Per-Page: 20
Total: 1
Content-Type: application/json; charset=utf-8
X-CSRF-Token: OU0u3QNyGui29YWz61cEWAjM1fHzvuAAKqO+nK6FBGPMZwRNf8r50klR0n7HGD03iDp0rRdKNiQ2n29e95ACsA==
ETag: W/"9732c5f5b49c7e093675a4bacf98d5c1"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=N1NRdzVEU25BNENkK3lhTmkzdEZ1LzRrMnUyWGxkUmFNT3BZVmRMb0txSUFmVDZGTVdRM2RMaWp1bUw3ejRmOWtmTlZZZDhjVnloOGY2ay9oV25qSXhOZGRHZzBXTi8zRFZDY1RVN0FTWVZjazVOSmJ5TDBvMnd0a2M4SFdtU21pRlpVbERMeHpoNllHQUU1MkNSKzJxeEJkNHNNRERoaHNoejRjd2FsT2VrR0ZOV2pDRnZ4UDdmZ0Q0NHo2Qld5LS1aaEx0aGc3SlkremFteEI0bURPNTlnPT0%3D--a0f6c0e28d02f1641ec90abc70a1296da393db74; path=/; HttpOnly
X-Request-Id: 38634565-3521-4f25-9d9b-fe165058e27b
X-Runtime: 0.059714
Content-Length: 368

Body

{
  "tags": [
    {
      "id": 1,
      "account_id": 1,
      "name": "Tag 1",
      "assigned_listings": [
        {
          "id": 3,
          "title": "Course 1",
          "type": "COURSE",
          "canvas_course_id": 4
        }
      ],
      "assigned_categories": [
        {
          "id": 12,
          "account_id": 5,
          "tag_id": 1,
          "created_at": "2023-08-22T06:33:38.991906Z",
          "updated_at": "2023-08-24T06:33:38.991906Z"
        }
      ],
      "created_at": "2023-08-07T09:45:45.535989Z",
      "updated_at": "2023-08-07T09:45:45.535989Z"
    }
  ]
}

Updating a specific Tag

Endpoint

PUT https://www.my-catalog.edu/api/v1/tags/:id

Parameters

Name Description Type
name required New tag name (minimum 1 and maximum 255 characters) String

Request

Route

PUT https://www.my-catalog.edu/api/v1/tags/1

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Content-Type: application/json
Host: www.my-catalog.edu
Cookie: 

Body

{
  "name": "New tag name"
}

Response

Response Fields

Name Description Type
id Tag id Integer
account_id Account id Integer
name Tag name String
created_at Tag created at Datetime
updated_at Tag updated at Datetime
assigned_listings Products associate to this tag Array
assigned_listings[id] Product id Integer
assigned_listings[title] Product title String
assigned_listings[type] Product type (COURSE or PROGRAM) String
assigned_listings[canvas_course_id] Product Canvas course id Integer
assigned_categories Categories associate to this tag Array
assigned_categories[id] Category id Integer
assigned_categories[account_id] Account id Integer
assigned_categories[tag_id] Tag id Integer
assigned_categories[created_at] Category created at Datetime
assigned_categories[updated_at] Category updated at Datetime

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/json; charset=utf-8
X-CSRF-Token: pLjL4IVnXfhPjSyf+FNlEZTCpm13IAEuOyHbgiUOLUtURIZxKcrg0auuw9gtGJwEpQCeNiu6f3flbt+edfNscQ==
ETag: W/"104309dc756d84780c6c2d30edae48c6"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=ZlVueVd3dklEaWE5eUR0dVRPUjVhN1B1a1lEeGxvamwweFczMXZSMXI3cUttZGp0OFowKzVGOXphSTVxZ1Y3Z1JOWHpneWRFWERMU0NEaFV4U3dXQS93b3NleDVkNHJDUWh4MkF6bytTRy9SeHhHQml4aTl0RTZ5VmZZRjhZemg4K2xrS2RqckdtOEJJU214eW5rUnlMZDh6S1d6bTNwVnRGZFcxeHFXZXNWbmVMMVpuL21rbEd1Zmg1QW4xMkQ1LS1WTm1GU1Q2cnpWTmwrVnBZd0h6amVRPT0%3D--bd9202fcc5343a6799a00fc49c6206aa13f605a7; path=/; HttpOnly
X-Request-Id: 430216ef-0191-4342-9187-34c044fe329d
X-Runtime: 0.045593
Content-Length: 364

Body

{
  "id": 1,
  "account_id": 1,
  "name": "New tag name",
  "assigned_listings": [
    {
      "id": 3,
      "title": "Course 1",
      "type": "COURSE",
      "canvas_course_id": 4
    }
  ],
  "assigned_categories": [
    {
      "id": 12,
      "account_id": 5,
      "tag_id": 1,
      "created_at": "2023-08-22T06:33:38.991906Z",
      "updated_at": "2023-08-24T06:33:38.991906Z"
    }
  ],
  "created_at": "2023-08-07T09:45:45.535989Z",
  "updated_at": "2023-08-07T09:45:45.535989Z"
}

User registrations

Getting a specific user registration

DEPRECATED: use users resource instead. It has all data from the current API endpoint.
GET /api/v1/users?canvas_user_id=:id is providing similar data

Endpoint

GET https://www.my-catalog.edu/api/v1/user_registrations/:id

Parameters

Name Description
id Canvas user ID

Request

Route

GET https://www.my-catalog.edu/api/v1/user_registrations/2

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Host: www.my-catalog.edu
Cookie: 

Response

Response Fields

Name Description Type
canvas_user_id Canvas user ID Integer
name Full name String
email E-mail address String
custom_fields Custom field values, e.g. { 'phone': '(999) 123-4567' } Object
created_at Date/time registration was recorded Datetime
updated_at Date/time last updated Datetime
catalog[id] Id for the catalog this user registered for Integer
catalog[name] Name for the catalog this user registered for String

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/json; charset=utf-8
X-CSRF-Token: GvgORUVCCT7CH7HkdITE6R3KvxWBV4ftvaeaSeJz1wFUwacHtuTv7CSJ4WK0UFdUtVVawdS1lpsw0K10tpBpIg==
ETag: W/"97b52cb2286fed3a48c743c28d64f771"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=U1FCNlExM1FOdE9FakY2YlhhRlRSRDVjcXRUTHozcjhOcitiNjFkYmhKcGk0aHNRd29LMnQrMG9NR2M0T1d0enhTL2V2V1hna1p2SytJbk5xODFoUjZMd294YVM2R2dTQ0pBWmxwOVBrdEtzc0VMUFZmTGNsUURmTVhTK2VTR0ZzUExBKzJFQW5YcE1qMzhJQ1VCSWVaR2FaanQwaUd3L1o1N2djaHRqNDhkK0NLV2JjQmNBNE1GWnlHK0t6YzFRLS0zY2NxdWRreE95MDQ5TkxtT0xrVFZBPT0%3D--36910611639ad725a23da2998751330e870e29c9; path=/; HttpOnly
X-Request-Id: ff7e66c3-ce1f-4da1-a579-5067593d4f43
X-Runtime: 0.041516
Content-Length: 291

Body

{
  "user_registration": {
    "canvas_user_id": 2,
    "catalog": {
      "id": 6,
      "name": "Domain Account 6"
    },
    "name": "User 2",
    "email": "[email protected]",
    "custom_fields": {
      "favorite_color": "#BADA55",
      "code_of_conduct": "1",
      "age": "19"
    },
    "created_at": "2024/05/23 13:44:47 +0000",
    "updated_at": "2024/05/23 13:44:47 +0000"
  }
}

Listing user registrations

DEPRECATED: use users resource instead. It has all data from the current API endpoint.
GET /api/v1/users?registered_in_catalog=true is providing similar data

Endpoint

GET https://www.my-catalog.edu/api/v1/user_registrations

Parameters

Name Description
from Earliest date/time to return (optional, String). Suggested format YYYY-MM-DDTHH:MM:SSZ, e.g. 2018-01-01T00:00:00Z. System time zone is UTC.
to Latest date/time to return (optional, String). See 'from' above for format.

Request

Route

GET https://www.my-catalog.edu/api/v1/user_registrations

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Host: www.my-catalog.edu
Cookie: 

Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Per-Page: 20
Total: 1
Content-Type: application/json; charset=utf-8
X-CSRF-Token: WnM3QqZ7jVWsg/gGKOlYa2SIdmmmxly4wQtURQEF2kr5sNfJhw4VuFXnvZ+5B6ESTV7WKXqGWa3u8vvngNgR9g==
ETag: W/"9974d5e4a330aff68aaecd7b03aee459"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=VHVocmlnSXNWNUZuYVZxdVdyVjY4OGlpeTAvbEhnZ29LMmdRem9GTFpYTXIvMVpSL3dZSVdyUGdSMThHb0dYTnIwb1lQai9xUmV4UDVrMXcxMkUrMFRITmN5TjhETjhxY2dGM3MzTXdpQmVteHlzbkNqYVdqcFlnTU9YNEhFWDBGallnUklGamtaeFNXeVY0WFFVTDFsZERyOWZES2xUYjA2U0JVRHE2N2djRUJ5RVBsUkpZUU1nRGdRTm5hYUVLLS05R2x2U3dneUZTTlVkZm96NkIvRDFnPT0%3D--80710ed0ab50db4c2651b0147b3b2398200722cf; path=/; HttpOnly
X-Request-Id: 76d034a2-ace6-48bb-b5f4-ebaeee0c965d
X-Runtime: 0.063192
Content-Length: 294

Body

{
  "user_registrations": [
    {
      "canvas_user_id": 3,
      "catalog": {
        "id": 7,
        "name": "Domain Account 7"
      },
      "name": "User 3",
      "email": "[email protected]",
      "custom_fields": {
        "favorite_color": "#BADA55",
        "code_of_conduct": "1",
        "age": "19"
      },
      "created_at": "2024/05/23 13:44:47 +0000",
      "updated_at": "2024/05/23 13:44:47 +0000"
    }
  ]
}

Registering a user

DEPRECATED: use users resource instead. It has all data from the current API endpoint.
POST /api/v1/users is providing similar behavior

Endpoint

POST https://www.my-catalog.edu/api/v1/user_registrations

Parameters

Name Description
name Full name
email E-mail address (will also serve as login)
catalog_id ID of subcatalog to associate with user (optional)
custom_fields Hash of custom field values, e.g. { 'phone': '867-5309' } (optional)

Request

Route

POST https://www.my-catalog.edu/api/v1/user_registrations

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Content-Type: application/json
Host: www.my-catalog.edu
Cookie: 

Body

{
  "user_registration": {
    "name": "Barack Obama",
    "email": "[email protected]",
    "custom_fields": {
      "phone": "(999) 123-4567"
    }
  }
}

Response

Response Fields

Name Description Type
canvas_user_id Canvas user ID Integer
name Full name String
email E-mail address String
custom_fields Custom field values, e.g. { 'phone': '(999) 123-4567' } Object
created_at Date/time registration was recorded Datetime
updated_at Date/time last updated Datetime
catalog[id] Id for the catalog this user registered for Integer
catalog[name] Name for the catalog this user registered for String

Status

201

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/json; charset=utf-8
X-CSRF-Token: 4J+0ot0b2MdmOX1pt3jyFNPQPHL1R8QfHJnqq50t8PMdvaHIRBkY0R8C4vAmU6CQwlByTmyIlkqYSxzrZSOwDg==
ETag: W/"23a39e909c8bfb415096d9446807c436"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=K1ZmdzViNzdvUjVzZEU3bG9OaW9tQVJXeU96WmtoS2dodkhHL0o2WUhJaHd5dVVaTEpOQmZMNWtybG5uaXIwamRCR1J5NDdKNHJoVW0zdmlNZHZlMVVIenNQTGYvZnpnc3ZDRkRmMG4rRTA4OCtNZFV2Smd3ejJsYXJ4Q202ZjdpZlA2RXRaREV3TG5JOVpzQ3pQbjBTbHdLZ0JVTjM2UThmWlpZbW9NWi8zMkVSL3B4aElhMit2WWgvSURSbHd1LS0zZnlqMzg4dkFkWmdXUlJTa1Bpa0ZBPT0%3D--31728a4a30563f9614823ac0f7f87043d34f0dd1; path=/; HttpOnly
X-Request-Id: c6c781d4-b3d4-4361-a473-bd50d6ca92a3
X-Runtime: 0.132194
Content-Length: 240

Body

{
  "user_registration": {
    "canvas_user_id": 1234,
    "catalog": {
      "id": 5,
      "name": "Domain Account 5"
    },
    "name": "Barack Obama",
    "email": "[email protected]",
    "custom_fields": {
    },
    "created_at": "2024/05/23 13:44:46 +0000",
    "updated_at": "2024/05/23 13:44:46 +0000"
  }
}

Users

Deleting a specific user with dependencies

This endpoint will delete requested existing Catalog user if the user is in the root catalog or one of sub-catalog of the root catalog that api key is generated.
When only_orders_and_enrollments parameter is TRUE, it will delete only user dependencies that are orders, enrollments, payments, bulk invitations that he created, and applicants (wait list) for that user.
When only_orders_and_enrollments is FALSE or not specified, it will delete user dependencies including user itself and its related account admins.

Endpoint

DELETE https://www.my-catalog.edu/api/v1/users/:id?only_orders_and_enrollments=:only_orders_and_enrollments

Parameters

Name Description Type
id required Catalog user id Integer
only_orders_and_enrollments Delete only orders and enrollments (user dependencies) except user and related account admins OR delete user dependencies including user and related account admins Boolean

Request

Route

DELETE https://www.my-catalog.edu/api/v1/users/1?only_orders_and_enrollments=true

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Content-Type: application/json
Host: www.my-catalog.edu
Cookie: 

Query Parameters

only_orders_and_enrollments=true

Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/json
X-CSRF-Token: Mqf2JYC7Io9ZW1/B4CDRikMOIjR6xl11I/g9nxDb1AYFNNdoleZFEchG8SIwojJqeYkwKqj99C8T7dubVOwXbw==
Cache-Control: no-cache
Set-Cookie: _gallery_session=SGRKUXMwZWNhWGNPdjJuMDlXNlZpalcwVlhIOUl4M3UzTVJYdXpKVGlrbDJXNUhIelBRSTlBc3l4c1VnaW9ZRDl3RzBVT01uUjRrNWxCUFpmWVpEbE5DUS9wV21Qd3ZPVGNKcmVRZHZLRHA0UnFveUhHR2tCUFJqb2xoQkthY25KMUdod0ZHQ1RaNmhCZEw4bWRHc2MybzdrZ3BFTnk0Y0RuQWtkakgrQWZFcVVKajlXZVppUUNZZjY0bFZlNCtqLS1hdDRnTmFVbklvdDRkd0h3YTNJWWhRPT0%3D--c50b4d23e810dbcd541a5df76a0a58d21a6b95e0; path=/; HttpOnly
X-Request-Id: f07ac8ea-20b7-495d-9671-47905821eee3
X-Runtime: 0.064317
Content-Length: 0

Getting a specific User

Endpoint

GET https://www.my-catalog.edu/api/v1/users/:id

Parameters

Name Description Type
id required Catalog user id Integer

Request

Route

GET https://www.my-catalog.edu/api/v1/users/1

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Content-Type: application/json
Host: www.my-catalog.edu
Cookie: 

Response

Response Fields

Name Description Type
id Catalog user id Integer
root_account_id Root account id Integer
canvas_user_id Canvas user id Integer
registered_account_id The account where the user was registered Integer
canvas_root_account_uuid Canvas root account UUID String
canvas_user_uuid Canvas user UUID String
user_name Full name String
first_name First name String
last_name Last name String
email_address E-mail address String
custom_fields Custom field values, e.g. { "phone": "(999) 123-4567" } Object
created_at Date/time of creation Datetime
updated_at Date/time of last update Datetime
time_zone User timezone String
merged_into_user_id The user where the user merged into Integer

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/json; charset=utf-8
X-CSRF-Token: x7QnUFSbldo7djNDSy7tZ0uhclckhhO3yC0ZAa9/w1FLkUO/FJrB+bNPI3YAYy8Kqp0oHwjBKDz+BZDqQtRdFw==
ETag: W/"62d1db502b13ab377d1da2dffab17854"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=eWxlYm8yWkNrcHlBdStjQmtCZndjdytGZFZ1bS9QbjB5RHExMXNUYzVIL0Eybm8xQitka050emxWRW1WRDlGUmxpUm1RRG9HS1dHQVdvK09YcGUyMHFvalBrTVNKTW1JTHhydWkyeWk0elhXVDRKTm1QbktJSHZYS1FrNWRhVFU5U3JTRUlrSTB0N0czbHV4c2NlSnVzZHJwWjc1anNxazlxeHNyVFNHN28zdU5NS1lFbjRpYlMvYUZaQXBCYmhiLS1ma2xXYVkwT0ZpdUpITE9aTUhWMmdnPT0%3D--ddfd9daf07d3843cfdb5561740ae98e164311454; path=/; HttpOnly
X-Request-Id: 71c55a90-f7e7-4975-b24a-9ab351329f00
X-Runtime: 0.047613
Content-Length: 539

Body

{
  "user": {
    "id": 2,
    "root_account_id": 1,
    "canvas_user_id": 2,
    "registered_account_id": 21,
    "canvas_root_account_uuid": "GUxMJJhiZ8ugUdRADskc0nJrcMXuYYIwV15aWiMO",
    "canvas_user_uuid": "573SBAKMeMX3pAa6iOcml1a81xzsVaomatXUBhUT",
    "user_name": "Firstname Lastname",
    "first_name": "Firstname",
    "last_name": "Lastname",
    "email_address": "[email protected]",
    "custom_fields": {
      "favorite_color": "#BADA55",
      "code_of_conduct": "1",
      "age": "19"
    },
    "created_at": "2024-04-11T15:33:45.503Z",
    "updated_at": "2024-04-11T15:33:45.563514Z",
    "merged_into_user_id": 4,
    "time_zone": "Etc/UTC"
  }
}

List users

Endpoint

GET https://www.my-catalog.edu/api/v1/users

Parameters

Name Description Type
registered_in_catalog If true, only queries users registered through Catalog. If false, only queries users registered through Canvas. If not specified, queries all users. Boolean
canvas_user_id Canvas user id Integer
created_at_from Created at from. Suggested format YYYY-MM-DDTHH:MM:SSZ, e.g. 2018-01-01T00:00:00Z. System time zone is UTC. Datetime
created_at_to Created at to. Suggested format YYYY-MM-DDTHH:MM:SSZ, e.g. 2018-01-01T00:00:00Z. System time zone is UTC. Datetime

Request

Route

GET https://www.my-catalog.edu/api/v1/users?canvas_user_id=2&registered_in_catalog=true&created_at_from=2018-01-01T00%3A00%3A00Z&created_at_to=2024-05-01T00%3A00%3A00Z

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Content-Type: application/json
Host: www.my-catalog.edu
Cookie: 

Query Parameters

canvas_user_id=2
registered_in_catalog=true
created_at_from=2018-01-01T00:00:00Z
created_at_to=2024-05-01T00:00:00Z

Response

Response Fields

Name Description Type
id Catalog user id Integer
root_account_id Root account id Integer
canvas_user_id Canvas user id Integer
registered_account_id The account where the user was registered Integer
canvas_root_account_uuid Canvas root account UUID String
canvas_user_uuid Canvas user UUID String
user_name Full name String
first_name First name String
last_name Last name String
email_address E-mail address String
custom_fields Custom field values, e.g. { "phone": "(999) 123-4567" } Object
created_at Date/time of creation Datetime
updated_at Date/time of last update Datetime
time_zone User timezone String
merged_into_user_id The user where the user merged into Integer

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Per-Page: 20
Total: 1
Content-Type: application/json; charset=utf-8
X-CSRF-Token: R+LMg0HPFS2bJPiIAHA5NfpQuP9JHQEsakwo/fdiDMxNjVd6i0avI/4jVhgAx9k5k6ZdkvpJp9jGtqEQSXYtMA==
ETag: W/"d42e14fc2fb1e4f19fbcd6197ac21415"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=a3hsVm91K3hxVS9QdjYvcTR1TnBHK1UzWWFkbHRXRUsyU3RIbVVLWkRLUjRDdEJibklza3JFV0tPMlpzempGSjRZa2ZMeGlDWms2WHUyTW1nRzQrYUJjT2gzZFNMQmt1YVYxalZLSFJwK3ZXM01GWlUvRlBFbXcxeXliS2RTRHJlbXczb0tXditDNzhIVTlhcnFRa0hIcmZXdzd6WVNramtYbXV4emIyelpEdk1HQ0o5eGlHMTRTTHBPcUtCSUlCLS1VOVkyMnYwdXVRSTFyMVNHT3ZzWjZ3PT0%3D--26a59c4845830fb104bbc1bc680197a0ad29f2d0; path=/; HttpOnly
X-Request-Id: 8d87f56d-791b-47a8-8d09-45e3e62fac93
X-Runtime: 0.056808
Content-Length: 542

Body

{
  "users": [
    {
      "id": 2,
      "root_account_id": 1,
      "canvas_user_id": 2,
      "registered_account_id": 20,
      "canvas_root_account_uuid": "GUxMJJhiZ8ugUdRADskc0nJrcMXuYYIwV15aWiMO",
      "canvas_user_uuid": "573SBAKMeMX3pAa6iOcml1a81xzsVaomatXUBhUT",
      "user_name": "Firstname Lastname",
      "first_name": "Firstname",
      "last_name": "Lastname",
      "email_address": "[email protected]",
      "custom_fields": {
        "favorite_color": "#BADA55",
        "code_of_conduct": "1",
        "age": "19"
      },
      "created_at": "2024-04-11T15:33:45.503Z",
      "updated_at": "2024-04-11T15:33:45.563514Z",
      "merged_into_user_id": 4,
      "time_zone": "Etc/UTC"
    }
  ]
}

Registering a User

Endpoint

POST https://www.my-catalog.edu/api/v1/users

Parameters

Name Description Type
user_name required Full user name String
first_name First name String
last_name Last name String
email_address required E-mail address (will also serve as login) String
registered_account_id ID of subcatalog to associate with user (optional). If not specified, the root account ID used to generate the API key will be registered_account_id Integer
custom_fields Hash of custom field values, e.g. { "phone": "867-5309" } (optional) Object

Request

Route

POST https://www.my-catalog.edu/api/v1/users

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Content-Type: application/json
Host: www.my-catalog.edu
Cookie: 

Body

{
  "user_name": "Firstname Lastname",
  "first_name": "Firstname",
  "last_name": "Lastname",
  "email_address": "[email protected]",
  "registered_account_id": 23,
  "custom_fields": {
    "favorite_color": "#BADA55",
    "code_of_conduct": "1",
    "age": "19"
  }
}

Response

Response Fields

Name Description Type
id Catalog user id Integer
root_account_id Root account id Integer
canvas_user_id Canvas user id Integer
registered_account_id The account where the user was registered Integer
canvas_root_account_uuid Canvas root account UUID String
canvas_user_uuid Canvas user UUID String
user_name Full name String
first_name First name String
last_name Last name String
email_address E-mail address String
custom_fields Custom field values, e.g. { "phone": "(999) 123-4567" } Object
created_at Date/time of creation Datetime
updated_at Date/time of last update Datetime
confirmation_url User confirmation url String
terms_of_use User term of use flag Boolean
locale User locale based on registered account String

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/json; charset=utf-8
X-CSRF-Token: FOoX1Tcgzuh5kX2FVW0AS+noGffG4vm7xph0f0Ib0Nh4ykg4z4d+8QNPuMhm6/cS5WKMLooU87GY0XuRCRsolA==
ETag: W/"3cb65fd22efc37f3bb7a491b77801237"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=cUd6NWZFNXREeDNOZ01TemxQSjhwU01FemN5ZlpXdjhBRm95VXdZNEFodEcrM0ZVUkVlQ3owelYzeDV3QjFNU2ZKMFJTYUdOdURzV0M3R3JzTHBBNytLR01OOTRhd0JKaUJmRC83WUdIcHc4WUNlb1d0NDRyNEJMSFZnajBtRFpxVzBYRHd2cllhRHhJTE84YkU1b1BsWDd0dStOOTBoWTRDdHVDbjNhaXMwOTRaNFJvRkx6M2FVTUwzb3VKVGY4LS1Sa2p6Y1V2Zzg3MElhSnR6STN2SnNRPT0%3D--50931a737a9a5a5f6f4ca23cbccffff4f70787b9; path=/; HttpOnly
X-Request-Id: 928b203a-5ee7-4567-9259-2c4d4552bd61
X-Runtime: 0.082291
Content-Length: 602

Body

{
  "user": {
    "id": 2,
    "root_account_id": 1,
    "canvas_user_id": 2,
    "registered_account_id": 23,
    "canvas_root_account_uuid": "GUxMJJhiZ8ugUdRADskc0nJrcMXuYYIwV15aWiMO",
    "canvas_user_uuid": "573SBAKMeMX3pAa6iOcml1a81xzsVaomatXUBhUT",
    "user_name": "Firstname Lastname",
    "first_name": "Firstname",
    "last_name": "Lastname",
    "email_address": "[email protected]",
    "custom_fields": {
      "favorite_color": "#BADA55",
      "code_of_conduct": "1",
      "age": "19"
    },
    "created_at": "2024-04-11T15:33:45.503Z",
    "updated_at": "2024-04-11T15:33:45.563514Z",
    "confirmation_url": "http://service.com/register/OBtRMuSPiFUAyStz47cbAiOHM",
    "terms_of_use": true,
    "locale": "en"
  }
}

Waitlist applicants

Delete applicants

Endpoint

DELETE https://www.my-catalog.edu/api/v1/applicants

Parameters

Name Description
listing_id required applicants for the specified listing (Integer)
canvas_user_id delete for the specific canvas user id (optional, Integer)

Request

Route

DELETE https://www.my-catalog.edu/api/v1/applicants

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Host: www.my-catalog.edu
Content-Type: application/x-www-form-urlencoded
Cookie: 

Body

listing_id=10

Response

Status

204

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
X-CSRF-Token: +HdERHjgT9dtiQzweCNCuehegZsFEoDMoXkoHvFhElcKxNtUSDIIH1T4TdEd2rRUO9dB1WrEwjJm9BRm6pn6sA==
Cache-Control: no-cache
Set-Cookie: _gallery_session=S1l3QmpCT3czcGk2dzMvdVRHL2FrcEpMN2hXL2VYcExxUFdwQWRzeWRjTTIvS3RxdHRudkk5a1Jabkg4VURpVHozL1BDRWNpNmxaT3cvelh2VjdxMEExRVd6MTlqNU9WYmVPanFzMW1WK0lJUFJPM1dFQk1KbUJUVFZCaGN1ODl6WUFYcndRSEJkYVQ2a0x6Yy9CdTdNZFMwMVRNSkVOZkJZTDdGczdwQVJDb2l2UzRSZk5kMmlWdGRwY2JKUXR4LS1nL0M0OW1SaEpZMk94QjVRakNBdjR3PT0%3D--7941378585eac2945722a25efee4e3a370d37f09; path=/; HttpOnly
X-Request-Id: ea00ed74-e289-42f2-98b5-b713cda7d475
X-Runtime: 0.048646

Getting a specific applicant record

Endpoint

GET https://www.my-catalog.edu/api/v1/applicants/:id

Request

Route

GET https://www.my-catalog.edu/api/v1/applicants/2

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Host: www.my-catalog.edu
Cookie: 

Response

Response Fields

Name Description Type
id Identifier for this applicant Integer
listing[id] Identifier for listing Integer
listing[title] Listing title String
user[id] User ID Integer
user[name] Full name String
user[email] E-mail address String
status Status (waitlist, accepted, expired, or error) String
notified_of_opening_at Time user was notified of opening Datetime
created_at The creation date for the applicant Datetime
updated_at The last time the applicant was updated Datetime

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/json; charset=utf-8
X-CSRF-Token: hL4WPTQsGQ1ld0wyu6k/elgKTGmvlrO/OpVLWPv599Kj4lphVxD2kTcm4vHFwtdVaRY6ryK0S8k2wyxZEfxVlQ==
ETag: W/"a7ac4a9654764e5d7db3b45ba4d341c7"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=b1BrT3ovdjFTYTA3QUNLbjFDZUhsSEVlY0JFNlBTY3lLWnpOcnJZNkF1ZXZycXhBM2ljNUlHSHhCamZvclB2VlJNdExzd2c0QTI2SEJBOWFhWGQ2dGgxaUhKWHh0N2oxODZXNTFxaUdveVF1M0lldmVITncwOXo1RzlXc0gza09PaHpSLzl1SzM0M1Z4Q2dQWC9YS1Erem1aSmtaaUI4ckU5K3lWdEc1bjNzWE5jR0c4S3VFaFE5d25JQ3Jib2x3LS1VcGVDaVJudk1ycXdwRVRvaGhaa0xnPT0%3D--a3c19024a57e7553b498e29a9ced3f8f973e28dc; path=/; HttpOnly
X-Request-Id: ab2c9d6f-88da-4f71-9ec3-268fb7a120d8
X-Runtime: 0.051484
Content-Length: 253

Body

{
  "applicant": {
    "id": 2,
    "user": {
      "id": 2,
      "name": "Applicant",
      "email": "[email protected]"
    },
    "listing": {
      "id": 9,
      "title": "Course 9"
    },
    "notified_of_opening_at": null,
    "status": "waitlist",
    "created_at": "2024/05/23 13:44:49 +0000",
    "updated_at": "2024/05/23 13:44:49 +0000"
  }
}

Listing applicants

Endpoint

GET https://www.my-catalog.edu/api/v1/applicants

Parameters

Name Description
listing_id Only include applicants for the specified listing (optional, Integer)
status Only include applicants for the specified status (optional, String)

Request

Route

GET https://www.my-catalog.edu/api/v1/applicants

Headers

Version: HTTP/1.0
Authorization: Token token="my-token"
Host: www.my-catalog.edu
Cookie: 

Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Per-Page: 20
Total: 1
Content-Type: application/json; charset=utf-8
X-CSRF-Token: CRszLxHYrE5IYi8jNkDuoLgT8+PtCbcHrlUto7MVYWddaUK7fDCnR9QvlwD2MH8nI9x1ThW47xz6Zq3qmkDrmQ==
ETag: W/"647d72f4376bfd41ad3475b11827662c"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=cG03cFkvNUswWmNVNFNrZFNORGpsNFdycnZwSGNyMEphdGVmK2Q0Z050ZUEwcnNkUTJNQ0VRNTV1a0dmMmovSnYrQ0lHYkpjSUc1NlV6S2VrcUhiWEJuZFhlNDFwNmxXQ2xpaDdJODRIZTlhL2xTT0lraW9Ob3ZaUCt0dEFkVWVBaXQxQUgwZk5BS3ZmS200cnRlV0RNc1VJUEhabWhDUndVTzVUYWh2OXNsSURhWTJDWXZ2V0ZzUC9jbzJkRlU4LS12d01VRTFvS212MW9hM3Fhejd5UGFRPT0%3D--cfa47ee682771841b7ebdd1067185cd991b198d3; path=/; HttpOnly
X-Request-Id: 18dc75df-ab7d-4b9a-93eb-dff370cf1887
X-Runtime: 0.056779
Content-Length: 256

Body

{
  "applicants": [
    {
      "id": 1,
      "user": {
        "id": 1,
        "name": "Applicant",
        "email": "[email protected]"
      },
      "listing": {
        "id": 8,
        "title": "Course 8"
      },
      "notified_of_opening_at": null,
      "status": "waitlist",
      "created_at": "2024/05/23 13:44:49 +0000",
      "updated_at": "2024/05/23 13:44:49 +0000"
    }
  ]
}