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]=@somefile.svg;type=image/svg+xml"'

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/27

Headers

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: lDVNgGd0HsCjz3yT9BcubKH1aSgbgpOJl3A6eF068tjUlkSZDr+KbNli6ak0k+bLZ5tsWodMRsxAiLqrmONerQ==
ETag: W/"a74954fb8f87f3ff50d4890769a96d4d"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=cXVUVS9pT25pN3BHbDFka1d3LzRTWTRjR2RSc0lvaFdKazh1bHB2Ym1VczJUZDFreEFVamh0WTNsSEhxOVdpNi9tNGE4RDRJSjBVMURDSURwT3BaVEp3bkpoTmc2WE82UGZkUkYvTTFkSG53bnc5T21JcUpydHZpbHpETi9BaHJoNmFOSFZOSzYvN1NrUlRXczF4NFlLMW1ERVdnQTZseGNuWjZNanlMVDJEVmRQek1XNDEzOVBsS0FRQU9QRGtiLS0vTDlQMVkrajUxRUx6TnI2ajRjL0t3PT0%3D--f59875e8d98394e6667618b052da3ae811188da3; path=/; HttpOnly
X-Request-Id: 60efca5d-6791-459e-a9a3-497c647b0d68
X-Runtime: 0.038994
Content-Length: 1764

Body

{
  "account": {
    "id": 27,
    "name": "Domain Account 28",
    "parent": null,
    "created_at": "2023/05/17 15:09:39 +0000",
    "updated_at": "2023/05/17 15:09:39 +0000",
    "canvas_domain": "www.canvas-domain-28.com",
    "canvas_id": 28,
    "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": "notifications@instructure.com",
      "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",
      "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": "",
      "disabled_new_registration": false,
      "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
    },
    "user_defined_fields": [

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

Listing catalogs

Endpoint

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

Request

Route

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

Headers

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: C6ITEHi6zjxrMFvKxed5pjZuR4kojAdhVzmDpRXwMbGqVCy93Cu84XIreSA20zYz0k2uXj8AGerp9wNJ4KE+RQ==
ETag: W/"1d7c424c027cbe514b55ea05e8f14c90"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=R1RwSWlockd0c0FUbUEwODZMV2lXVGVxZTFDdFhoYy85Q0xWbVl2L0xpTVRWU2M4UmZwdVlMblpmRlNyUDJ3c2FxR3BnMDN2cTZudjBTelBlWGdaQVBFRG5JRjV5Rjdwd2o3ek82ZUJZWGlNT1B4U3hKdXB4L2JLSytyZGlTbzFaTUFkOGJUdHkwcnhvNkJWcTNyWTE0V0ZucEZvS2pPR3hscVRGVk1lRm1Dci9jK1p5V0VIMjlwWEdINStCdmltLS14SHRLQk41VGdaVE9hcXFqUEZmdyt3PT0%3D--d895b2150b178b20a3c25d03e6b3ef6e7a8d1dc2; path=/; HttpOnly
X-Request-Id: a197d67b-f53c-469f-8a7f-259e12a6219d
X-Runtime: 0.029834
Content-Length: 2209

Body

{
  "catalogs": [
    {
      "id": 28,
      "name": "Domain Account 29",
      "parent": null,
      "created_at": "2023/05/17 15:09:39 +0000",
      "updated_at": "2023/05/17 15:09:39 +0000",
      "canvas_domain": "www.canvas-domain-29.com",
      "canvas_id": 29,
      "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": "notifications@instructure.com",
        "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",
        "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": "",
        "disabled_new_registration": false,
        "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
      },
      "user_defined_fields": [
        {
          "list_order": 0,
          "name": "favorite_color",
          "label": "Favorite Color",
          "field_type": "text",
          "required": false,
          "required_message": "Favorite Color is required"
        },
        {
          "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."
        },
        {
          "list_order": 2,
          "name": "age",
          "label": "Age",
          "field_type": "text",
          "required": true,
          "required_message": "You must provide an Age."
        }
      ],
      "logo": "https://test-bucket.s3.amazonaws.com/test/logos/f81374f4340ecc5ba626ef294bc0f9567b08395d.jpeg",
      "locale": "en",
      "url": "http://www.my-catalog.edu",
      "measurement": "credit"
    }
  ]
}

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

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

Body

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

Response

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: zanVAPBZsSKTeiWqxUr6lumOKvRM5Va2laoGvD1PiZw5cAdc1WFB8vFyskN4xYutUF7kCQk307D2HSqtbZycaQ==
ETag: W/"353ca65515378cbad30bd1d7d29e25e9"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=OERyTTJnQmFzS1BDVW9PVlpPNmFGSGZDTFlobEJ4L2V3N2dRdWFzWmc4MzFDVGFBNlVLeHduNXE1UTRFejU0ViszNUNKRS9ONHVoekNXcW9FanJ2dDB5aXhOYzBFUEduM3BKWHVqTSt0L0pHckV0UE92Yk9Pb1VwZWtaNktyZllRTGs3ZG5hNmNTM29mWDNJSHB3WDZiY3BqcE1MR2h5Q0F1WjZWdnFTbE9rS25ZbC9aNXVMSWR4Yng0alE0STBDLS1HZ0hobndXKzJpVWs0YVd0dkF5QlZnPT0%3D--58724d48d8774351b0cc7d80d6d57b89e0f05b13; path=/; HttpOnly
X-Request-Id: d32d8c8f-afaa-4e4d-b015-111b0a3cc1f4
X-Runtime: 0.038555
Content-Length: 298

Body

{
  "certificate": {
    "id": 2,
    "listing_id": 12,
    "name": "API Name",
    "active": true,
    "template": "<H1>This is a template</h1>",
    "pdf_settings": {
      "orientation": "Landscape"
    },
    "created_at": "2023/04/28 14:07:29 +0000",
    "updated_at": "2023/04/28 14:07:29 +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

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

Body

{
  "certificate": {
    "listing_id": 38
  },
  "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: Hnv5KKQ0Wy6ngQikgNjALVXLUNiKQV7ib/8jKEj0Mfz9gqAt04uGmlWVqfQFxd33POVyIY//DURMF0rx40HSjw==
Cache-Control: no-cache
Set-Cookie: _gallery_session=dS9mL1AyUGZBaHRNMnJ1cFR1S0NhcGpidG5rTUlXdmlBMXNndk5rdzFRUytQaVhLR252ZXJPbHV4K3ZLenM5eklRQ1hKbGZ2aERKVDdoU1MreWxsZEN3bzV1RjRkWmhzaEdPWUhQdVJ3MzFHQ2k3YmhYUVdNUWpudytrakZvMkZTTE4vczRsR0M1QXRhTllHdSt6VktjNlpZTmg2N0V3dnpOcUZSUXBjTkN6MzB2aDVFb0FLT0Vzb09aVk95UXFJLS1vYVV3SGtSbnlZaDNTSUNjNG1Fd2p3PT0%3D--36eb6fde5da75cc8ea95b6d0f6e144b5b6028516; path=/; HttpOnly
X-Request-Id: f64ca9f2-4ac9-4f8d-b05f-49eb8e60a16a
X-Runtime: 0.047084

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

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

Body

{
  "certificate": {
    "listing_id": 37,
    "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: D6ED0R7Z+AIo7YwDUqWFgCbW0tRBnWTJHd3zmyj49HLWQdTSSs5EmqiH+L+4tykjyBChT3LFuoI199UfVFmdgw==
ETag: W/"79c25ab69f805fab4b6c69822e7c38e3"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=YlhTdXR1OHk2KzNpTGxVWHdSWmxwa3dQZHJ0dHVXK0JBRUdNbngyUUcwN2FxMDNuZ2w3cmV6OVZ3Y1RVWVlBOGhJaENOMW5OVnkrT1FkY01zTlMrZm9QVURldUV3VlUyQ1owVkJOODFJcE1SZFd5U2lOVVA5ZnRBZVl2aVNkTFcza01DRHJqS1h1ekk1VWtmeU1qZU5IWE4yZGRmUTE1bGtSQkdobmJydzRuZFdsdEFXT1d6aWR1d2FHcGxiVHRxLS1henFyTEF1RU16cDd3ekRSL3BNTnhBPT0%3D--0d19e8253497f7e3ef49381694a96c86c85051c9; path=/; HttpOnly
X-Request-Id: 2c58bdc2-0312-400b-9db4-e1f89fa674c2
X-Runtime: 0.047480
Content-Length: 87

Body

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

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

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: G/jcRWJiu+qTB3NHlTQaXq6+hZPn9nkT6u2hnLDeRPYEsNKK7oUcMQE1EvJwJiWUqFfxUZ3qXfcaNumQQ/Wwvg==
ETag: W/"9580991c40cf3a82be6a5d5345adb8ff"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=M1R1TjRmcHIyZTgwN2NQaFBhbEpQNEdZcXkvSlIxR1VFdDZHUVJ4NHkzcFRpekJwQ0w2R0RhOGlRZG1xb0dQU2dWZ3JGS0hCb21vWTVYaUU1V1h5TUFFMzN3RE5iUE4rMHhUTWU4QjQ2ZExhb0l0QWV3bWtTd3dLam5ENjZpWjJxN0Q2am9mQ2ZvTmozVGRGOTU0T1NSOHYwaDAxcVVSWnUwaERMNVZSYXBIMkllZEZ4U2FaVGlVNVVHTEtBREVCLS1nc3RCcTl4dnZaU0k3ZFduT2RKM3BRPT0%3D--c9fd6f9aacfd6ce4f56976c3d847100ed05ca4f4; path=/; HttpOnly
X-Request-Id: 6b57461f-1084-4f1f-abd9-cdf492c31613
X-Runtime: 0.105730
Content-Length: 262

Body

{
  "completed_certificates": [
    {
      "canvas_course_id": 14,
      "catalog_title": "Course 24",
      "canvas_course_name": "Course 24",
      "certificate_url": "https://www.domain-15.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[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

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
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/2
Content-Type: application/json; charset=utf-8
X-CSRF-Token: jxiMZmM9rt4dyG/zj1UhUvjMfm92cWe57E6yu7U6uBURA915ZLR45EXbtYJgqQfHyo2Uzs2Pk+HQBcaDrMqIaQ==
ETag: W/"7143ac7ae014953b305ff473bd172cbb"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=aGFQY2ZvQmozNE9MMGFOM3lMMVlnMHZydFc1WG1Dd1hWWE1xWnlNUTVteFJhQTY2R3cwcjVmbE0zekIvbkRLWnpXeFFrS3pXNngvNUkxMlZPdDZVODJGYzRJR2sxYzRCSm5aUUczUWtFSlFGaXJqTkxhSzJJcUFURWlkYUlEWGkzdDhYN3F3dU80QnA3WVVXN3hONUFmR3lFY1FPSFV6ZVFKRUljZm5pSUJmOFhKMG0ybHI3TFJZNlZBM3BIV0lGLS03NjZSZ0h4Nkt6YzM1M1FLZDQzelF3PT0%3D--bab59c716a17e916ef64d41c874cc6127b29f8fb; path=/; HttpOnly
X-Request-Id: 533a8a32-da5f-4f8f-b862-6bf347ed5327
X-Runtime: 0.072716
Content-Length: 858

Body

{
  "course": {
    "id": 2,
    "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": "2023/05/17 15:09:37 +0000",
    "credits": 4.0,
    "measurement": "credit",
    "updated_at": "2023/05/17 15:09:37 +0000",
    "short_description": "This is an example teaser",
    "listing_path": "course-1",
    "listing_image": null,
    "currency": "USD",
    "catalog": {
      "id": 2,
      "name": "Domain Account 2"
    },
    "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,
    "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/5

Headers

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: HywjQahAwFyes2jbpZoUUCjyBJy4+GDdB4/evzSBBWYtWXgwgr/svWd+OGyRjS1Iw8rG2LjM2YBpW+rgGoZvkw==
Cache-Control: no-cache
Set-Cookie: _gallery_session=S3lmUk5QL1haVVVGL0d6STNMVHhDaW9hYzhRMEJTUW9acEVrRzFiZlRCVDBRckxSOSthZnpYK3hQZjd2eWMyakJtUTQ3bHNVSjh4NVdnZ0RDandKVVhIOFRTU08zWjRSbW8vdHd6ZlVLbWlFS1RPQmNTWVlZUE5QL0puL2U2VHBTTnllWW94L2pmcFppMEE0V05ZeExGSUovdVk1MURQY3VPTFVtR3JjVWYwTGs4RHNiQ0dXOERXa2Y3Y2piTVZlLS1XK2JNLzZUUTFocjZYeWFDclJhV3hnPT0%3D--bca7b6e7a4bedd4f135ea5fcba445dc9328ccdff; path=/; HttpOnly
X-Request-Id: 769d79d1-55d5-4a28-8419-5c174c0037e8
X-Runtime: 0.059025

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/3

Headers

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
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: clnG8ffDbCDGmL2bKSMXWaDQfDcdzIffHiP/qf53QOgGo7gUACjwLElc0zioyrXYTx04BdQMW//4HezCzqCk6A==
ETag: W/"1e538dd8f41851740acdf12102c6a035"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=dlFWcjFkS3IzejIxK3BuejJoRlYvS0RQRTlYY1M5MUsrRllaZG4zeTZwRjUyMWl0WHVtaDJVeTRoOExqM0RLWXVhNXNBcjM5SFQzYWJKaXIxK09pSmV4T1lRMTJHRkhPYnFWc1lRcnBlR2owQi81VHVERnl6STZ1dnhTanhYVjdVNmdXUkYvZlArTElsY2FGRHRzN2QwNHp6eGFGMm9LOU5TbllWRTVSZXJ6Rklxb1o2UHh3VVhoQ2JYNE9pVVB4LS1ORUpDNkxjbkFXYi9MZm1CWWJVaGpBPT0%3D--702526a48cc1ed5ef01a946d13189749991e6e41; path=/; HttpOnly
X-Request-Id: 83ad316c-47fe-41be-b69a-bdf97e22b951
X-Runtime: 0.035125
Content-Length: 872

Body

{
  "course": {
    "id": 3,
    "visibility": "listed",
    "enrollment_open": true,
    "enrollment_open_from": null,
    "enrollment_open_to": null,
    "enrollment_cap": null,
    "description": "description_2",
    "enrollment_fee": "0.0",
    "created_at": "2023/05/17 15:09:37 +0000",
    "credits": 3.0,
    "measurement": "credit",
    "updated_at": "2023/05/17 15:09:37 +0000",
    "short_description": "teaser_2",
    "listing_path": "course-path-2",
    "listing_image": null,
    "currency": "USD",
    "catalog": {
      "id": 4,
      "name": "Domain Account 5"
    },
    "type": "Course",
    "title": "Course 2",
    "list_order": null,
    "waitlist": false,
    "waitlist_cap": null,
    "sku": "sku_2",
    "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-path-2",
    "start_date": "2023/05/10 15:09:37 +0000",
    "end_date": "2023/05/24 15:09:37 +0000",
    "canvas_section_id": null,
    "canvas_course": {
      "id": 2
    }
  }
}

Listing courses

Endpoint

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

Request

Route

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

Headers

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: 5s1pRjDSiKb39V1t3G/Qh1Hi8o2FmE8jgcZ6iGYGlTLE4FbMJ9Cz/gEM53kP2OqzD0DhOBDlK/vRwEi4gwyS5Q==
ETag: W/"1bb923c40c5cfcc7c4e39dd3e1fffbc5"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=Q0dBL2N5OGNGQWowUU9TQjdQL2JGSjdBaklPLzM2RENPMXdud1FlbUNrNmFJL05QaXZ5WFVuaHAvOTVxcjJYdTZBT3FCVTdUb3Q1RkZ3Z0sxaDJ2Nm8xbi9MdHJoanhIUzIvc0FpU2RKUmQzaDU3Tkh4MUo0Y2FFbG92SDdyd1lseGZPK1ozTlBHWHFtYmtubTRMNFpna1JQcFQrZEVaZXBlL0FQdTNmSGJNTWx5UlVwcDFWeHlCZkcvOHlrOHN3LS13bXhzdVBFUHlobm85THhCdERqTjh3PT0%3D--9a33ced338a44cbc3bed1ea6fb893df247e56583; path=/; HttpOnly
X-Request-Id: 0ead888f-1710-40e4-aa52-c298cc01bf21
X-Runtime: 0.098117
Content-Length: 875

Body

{
  "courses": [
    {
      "id": 1,
      "visibility": "listed",
      "enrollment_open": true,
      "enrollment_open_from": null,
      "enrollment_open_to": null,
      "enrollment_cap": null,
      "description": "description_1",
      "enrollment_fee": "0.0",
      "created_at": "2023/05/17 15:09:36 +0000",
      "credits": 3.0,
      "measurement": "credit",
      "updated_at": "2023/05/17 15:09:36 +0000",
      "short_description": "teaser_1",
      "listing_path": "course-path-1",
      "listing_image": null,
      "currency": "USD",
      "catalog": {
        "id": 1,
        "name": "Domain Account 1"
      },
      "type": "Course",
      "title": "Course 1",
      "list_order": null,
      "waitlist": false,
      "waitlist_cap": null,
      "sku": "sku_1",
      "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-path-1",
      "start_date": "2023/05/10 15:09:36 +0000",
      "end_date": "2023/05/24 15:09:36 +0000",
      "canvas_section_id": null,
      "canvas_course": {
        "id": 1
      }
    }
  ]
}

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

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: tlEKaqYa8svKFb3YckDN9rbJxw8U/SwMokNclTQAHmSKtMzcuVcE5T/OuoQKo5DBZlmsGmsJdx7iD3t7rKsCiQ==
ETag: W/"924b17b1570b528566a7e5b7dfb7184a"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=VzAzamg5NWQzTzZYemZFbnl1TStnOHg3bm5EbWpWNlV2Q2ZpaDFOU1h2L3UrT3M5M3AvMGxac1dyMDhBY01GdFU3MVlkN29OTkJHMkgwZmNJNGJYcVJkM1lWYU9KWmtQVzVxVXh1em9DdDRzM3lNVzg1OTBUNTV3ZDlRdDZpRHFjWDhRN244NTFUem5EUi9mL05PcXVOOTg0UmRzK3I4OU92bTVieUxBWEVFZWx0dG1qaGxObjdTMjBZYjJMdW9ZLS1rdVIwNzV0REhud3VlcTVpNTRqYXVBPT0%3D--c3ed92455d7385ec42168b11ef4516a730b2085c; path=/; HttpOnly
X-Request-Id: e3bc0045-3a8e-4932-88f2-37518ff7589f
X-Runtime: 0.050713
Content-Length: 205

Body

{
  "progress": {
    "id": 1,
    "account_id": 3,
    "canvas_user_id": null,
    "completion_percent": null,
    "workflow_state": "queued",
    "payload": {
    },
    "created_at": "2023/05/17 15:09:37 +0000",
    "updated_at": "2023/05/17 15:09:37 +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[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/4

Headers

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: o7ukXxFWwIsLotjawuywfeVp0JTTPc7nvPkHSJ1o6dv0dZzm3BVzdo2RS0DVR8J+1Iie7COpwsJCDjKttkDu3g==
Cache-Control: no-cache
Set-Cookie: _gallery_session=WmFTajhOVmxtSDRBdmZKcnprVmRaTWt5bkpkOGtUUCs5RkttWmxFdEVYMHJhWnFFTnZvSVFTaFUxdVpVaUh3L3JwK2lUMVYvMnFOR2M4TnVsK1pnczcybXlqcG15QjlNd1FjWFZiNk44dStjTWRNZnNlczJrVGlZbm1EeTVnTjZJZUpqcGJlMGk2U0YxczA1Si8yS0IxY013aE5oOVVldWQveVR2aDRxemhpb2dFcVUyREttK0ZESHViSnZ2VHJQLS1KcXVhVk9MS1lGbEUvU3R3NituL1B3PT0%3D--4e8e99a9a3e0ed4ba88a3fc4d0bc4a211360a31a; path=/; HttpOnly
X-Request-Id: 6f47e2e5-4ecf-4be2-a3c3-68ab331fb926
X-Runtime: 0.051745

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

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

Body

{
  "enrollment": {
    "listing_id": 31,
    "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: 30sI6THyfGpISTPwra+WQ/Xg1l2UR9rhPy45+jbKUuy3ujiTEcUWj7QHmglDLrmK6ckfg6qVEfuOQh6FwgEwvg==
ETag: W/"8ff5bd70703945a910bfec76c8d63b10"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=dzY0OWJncE9WKzFzMEVIVFNEbDBaWnJlWEMzTFZlNC9oaU5PeklUS0U0eC95WFlZSXZhN0h1M2lvZEtiaUdscWI5ZzFWSS9RSkU3V09IV3ZvREFxSWlHeFdNangrS3h5VnBmSXlmci9EYVdQTEJmU25GUzNOMGg3VjZDVGxiQVZjTGpHM2JEV2ZiSmY5R1BOWVpNSTJiS202VGtDeDBMZmg4VXVEU2dDUDVZR2pMeGtvSVNlaFlydkJURGN6dmJrLS03YVZxQVV6WnlkV01KNXJVY3Q1N3pRPT0%3D--e0912f596c48500dd7662c4bed6f27c6056d4b31; path=/; HttpOnly
X-Request-Id: addef228-03c9-42ee-9618-caa3fa5916df
X-Runtime: 0.037251
Content-Length: 177

Body

{
  "enrollment": {
    "id": 3,
    "user": {
      "id": 1
    },
    "listing": {
      "id": 31,
      "title": "Course 29",
      "type": "Course",
      "canvas_course_id": 19
    },
    "enrolled_at": "2023/05/17 15:09:39 +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/2

Headers

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: FDO7hWPrAQ7fxqKCOeHKon83bP+k3b+lfTZh0e2/O1b5dGwu82kZ5+IkSpXK4i5qv6fyXirxO5Mr6b1BpH3jfg==
Cache-Control: no-cache
Set-Cookie: _gallery_session=Zm9uWUx1TDEyR1pHd2tRNzQ2R3lPbVB6eTl4ampBYkxYTWFoTmdKYU0yWHpTc2VRclVYSXE4WVBTMEttRUNCdUJvMjRNMmZVVThNVzkxVkd6V1R4QlJvYVlXSEZOR253d2s0VVh5ZXFhUk82WllQTVhVR2UwMlNtZ1V4aStncEN1bWlOdzdGOTM5VHdIa1lsRGh5UkYvR0UvQ3ZlUWFPNVBMYXVpZ25SZ1FYN3E2UTdMS0dpYmUwcGp2aFVDT0h1LS1ZcXpXZkNmWUZCbVQ1V1NjeEhTMkJnPT0%3D--3fe8a68ce93136783e8081165284df6a9c63d308; path=/; HttpOnly
X-Request-Id: 39791950-79e2-4b12-b7c3-69bd07eb812f
X-Runtime: 0.033301

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/4

Headers

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: hRcElcZWN9OOVP/djHrMgWt3dRsD1yuNQ5CCejp8H/SMD4HukPbszO5A4eKtK8pTYJzABwDtNjKyn7nmG8FjTA==
ETag: W/"87a49eef6a52353df889e4c940e2a987"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=RFlGcjUyczRMNFAxcmpQZjNObXMxRFB1RGR3WmE1MHF5ZXFocE42djltcWdwc3lIcTVqVUYzKy9XcjhnOEhDdHByQXBEdWY0RVRBSlJ4YUZQTnRLU0JKRnlNRHpkMkcrK29Ya241SlFNTXVNdCs5a1p5ZWVtbHVLUU5CYjFNWjdaRzNVNldvdHBETnhhWEFDcHdpMHFzWitydHdnbHZXNkoyR1B3U3hWaitvSGd3OWJsS25EeXp0ODV2VEpRbGkxLS13bllhODI5UXoxSC8wWkh4Y1pKRHJBPT0%3D--107505e832fca250bceeaa9fb4919fb6a4a05483; path=/; HttpOnly
X-Request-Id: bb6f15a7-6139-47f5-ac19-529e424c33ee
X-Runtime: 0.026654
Content-Length: 177

Body

{
  "enrollment": {
    "id": 4,
    "user": {
      "id": 1
    },
    "listing": {
      "id": 32,
      "title": "Course 30",
      "type": "Course",
      "canvas_course_id": 20
    },
    "enrolled_at": "2023/05/17 15:09:39 +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

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: surXho4vq4BEws3/qAbDPZSUi3KEj5cRgrTXWjrCweIfnAuj79oSTR1cWfH1BTpecsMXRIMMvV5DxmNxPvsATQ==
ETag: W/"c3376ebdcb51eb318bfb7730f711b4ed"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=Q2g5N3NVMTZKYnk3UlFnRmFPaFhxejhZY00wK1VFajVkMXFnOHh4UEtnZVB3T2thMWE5SVFEWnE4dTJZQ3UycGgyQk5OQjdkNmpqZ1NYc1Q1Vi9aeXVzc3MwdTRaeEduSmxocVZnU0UxYlZMWHlsdGJhRjhjcGFvV0ZhUERNaGtkRGNySURVOU5rVW9lSGRIUEFMcFdjdldMVFJMVHR1K01WUmh6dE95RWd1M3FYR09TbjNrZ0wyWnowSE9vam5BLS1vMU14K0lBU2UzNS9YQzhaYzhUTDFBPT0%3D--825b7009a71679f9a866f3b2050b800794c4b9bf; path=/; HttpOnly
X-Request-Id: 2f234c2e-d079-43c8-890b-5e4f2f61474d
X-Runtime: 0.030042
Content-Length: 180

Body

{
  "enrollments": [
    {
      "id": 5,
      "user": {
        "id": 1
      },
      "listing": {
        "id": 33,
        "title": "Course 31",
        "type": "Course",
        "canvas_course_id": 21
      },
      "enrolled_at": "2023/05/17 15:09:39 +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/3

Headers

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: TsOupRIzUZ3nNGGh2HoCT8bThAyd0J6bTl9bpOswYtVHY/xfK2yQzdriqdATdu7LlHVoppqL2n+5BJRpcPBkIA==
ETag: W/"002b5b6654ebf73330bdacfc280c8768"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=ME9nVG5YaUVOQm4wdWZ4eTQ2UDJURnB6blRnSE5hbTY1QWdaUkdzMmlqeitaMVQ2Z2o4bTVVTDFwdHNOOHI1RGI3RXEwdHVQU2l3WW1xUmx5QWFPZUpRUDVmbWg1bEJmSWowTWdhV1ozY0dHbWg3T0hpY1Z6eWhabEdXQU91eHUyRDdkL21GQ0tQYXdIYjI4SHVwdHBmazFxYUVhMmVJWWpoa3Q5LzhrY0RFR1QvazMwcVhSbFV3M1N5VllRQmlqLS1tZnRlb3ltQWdJKzFaR1A0V3FhUWZRPT0%3D--1a13ec168f6fc9cfe2a41344923f315aef457671; path=/; HttpOnly
X-Request-Id: 1898323b-1798-41d7-9e50-0b6aa0b17c29
X-Runtime: 0.044583
Content-Length: 548

Body

{
  "order": {
    "id": 3,
    "full_id": "3",
    "catalog_id": 33,
    "catalog": {
      "id": 33,
      "name": "Domain Account 34"
    },
    "user": {
      "id": 1,
      "name": "Saul Goodman",
      "email": "bettercall@saul.com"
    },
    "listings": [
      {
        "id": 35,
        "canvas_course_id": 23,
        "title": "Course 33",
        "amount": "100.0",
        "discounted_amount": "90.0",
        "catalog_id": 33
      }
    ],
    "promotions": [
      {
        "id": 2,
        "listing_id": 35,
        "code": "PROMO2",
        "amount": "-10.0"
      }
    ],
    "payments": [
      {
        "reference_id": "123",
        "status": "success",
        "amount": "90.0"
      }
    ],
    "total": "90.0",
    "currency": "USD",
    "purchased_at": "2023/05/17 15:09:39 +0000",
    "created_at": "2023/05/17 15:09:39 +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

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: JuudY7eYHBQ2XV/TRvYwLztG4PPP3cN5LwToeB7+Jjg0uEPTgCHgcHwefJmpdigPpB90gMr2yR26nv0zqxFcOA==
ETag: W/"ccdaeab725ec6e9265eca7e4e8d56baa"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=VFR6aHRFcmt2V0JuN3o5c2wwRW5TeCtZMWl1bmNZMlhHTUhCQVVTM0plaHpxWk0wMkhBaHhyU2dpNE9PZXdCdEVsbU9hb1FiZm1xYWlmOUE0clhUaFFJTVoxMEpEU0hDTHh2QzcwL3dxdFhqUUhiaEpBS3Azc2pzd3hod05FeGdJc1BGbUlNRUU3KzFLdU92dlZkamIrZTlTdkdBODg0cFIrMlNGVjREaEEwYzBKcmZ4SGlLWmJSa0J0ZTNJSGNILS1manZOM1g3eWhhZFNZU1JwSWxxM0V3PT0%3D--9bca742c96add952ffe396464967bd287742e7b3; path=/; HttpOnly
X-Request-Id: c72e3fed-258a-4f59-bdf5-3e08f7eab767
X-Runtime: 0.043053
Content-Length: 551

Body

{
  "orders": [
    {
      "id": 2,
      "full_id": "2",
      "catalog_id": 32,
      "catalog": {
        "id": 32,
        "name": "Domain Account 33"
      },
      "user": {
        "id": 1,
        "name": "Saul Goodman",
        "email": "bettercall@saul.com"
      },
      "listings": [
        {
          "id": 34,
          "canvas_course_id": 22,
          "title": "Course 32",
          "amount": "100.0",
          "discounted_amount": "90.0",
          "catalog_id": 32
        }
      ],
      "promotions": [
        {
          "id": 1,
          "listing_id": 34,
          "code": "PROMO1",
          "amount": "-10.0"
        }
      ],
      "payments": [
        {
          "reference_id": "123",
          "status": "success",
          "amount": "90.0"
        }
      ],
      "total": "90.0",
      "currency": "USD",
      "purchased_at": "2023/05/17 15:09:39 +0000",
      "created_at": "2023/05/17 15:09:39 +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[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

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
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/19
Content-Type: application/json; charset=utf-8
X-CSRF-Token: +LRzK+esf1493GROfW6Q3LMptb3sr6w09S0VHQm/WJDvtx+rJkMHOqo3DBO7m2RSDLuu/9BsYjSzJMKKxgJt6Q==
ETag: W/"9a974ebf3a24f234cc49cfca85777cc8"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=MHgzZk02MTAwU1lFQkZCTStGRnB4Mkowd05VZWMvU2VmRWlGRFNpcTNaZVpzVnVGN0ZTamVzN3BaalVSTjlGT08wcGJqTFdaZWVsTFR6Njd0NTJOS1pnZ1JiL01GT0hYUEY1RlNESlprS2pjRHk5TVZCRSsvV3ptd1U2L0ZCaGdJNzU3N2x5OHh0WW5mQkUyc0dXOWlCV3dNeHlKdXJ1Sit4VmM4S3E2eFZMT1NXanV1cE1IOHBLSTJ3ZUNCWGpDLS1zQXp1Qk1iY04xY3JNbVB1RmU3V253PT0%3D--8503ae81cd46ee138d01bb9adaaf12a593ad099f; path=/; HttpOnly
X-Request-Id: 99c15297-3dc2-4d28-8747-2d478a463c8c
X-Runtime: 0.049825
Content-Length: 866

Body

{
  "program": {
    "id": 19,
    "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": "2023/05/17 15:09:38 +0000",
    "credits": null,
    "measurement": "credit",
    "updated_at": "2023/05/17 15:09:38 +0000",
    "short_description": "This is an example teaser",
    "listing_path": "program-1",
    "listing_image": null,
    "currency": "USD",
    "catalog": {
      "id": 12,
      "name": "Domain Account 13"
    },
    "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,
    "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/20

Headers

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: o2s68F89H14tabk92ZdyVf1O1gU7pBJ9xfAXAyHLkoN8fB7TwOQQcGclELiRK/lGQNwXV/KWI3XzUfnQoxIfBg==
Cache-Control: no-cache
Set-Cookie: _gallery_session=ZS9jSThMM2xpaUJOVldsWXdzRFBYcHp5a0U4NWo2MXpXdCtnRDhQTG9BanIrWTN4ZDB3UGkyQTl0ZnhPTm1CVnU3Zko0d1NEMCtGQXp3Qmk5bU9KSjN1azd1cnhXWUk5KytCcERINDMrS3RMTmk5LzZGakZocmtYc1hKU080ZEVYZ296V0lDNlF3d1dXMkJSZGZiMG5YVzY0SWpEd3FZU05Gd1dHVkM0SmVPdFBoN1EyWGl2OTBVcFZSNE1zbkRjLS0zWXZMbzlJSC9lTTkwb0g4b29uSldBPT0%3D--9735633a5d31987a3f54ee21e268fb596065be3e; path=/; HttpOnly
X-Request-Id: 6f2392e9-9010-489f-8e08-28aacb03ab3b
X-Runtime: 0.035767

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/7

Headers

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
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: HRZ1QGGkppL0J3f/nnLaDyP+Htf9ZY8Al9GMkjZLwdZ8DHx3Jbp7MpPrR4hJrycV2jzBuwMzDo0E7YeeZnGVLA==
ETag: W/"9045ba0965571b540b991607fb889e9e"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=TmgxMG1YTWFJUngxVVVVYW5MdEliVjJmWFpOVHI0THY2cHZRR3p6aUs0M3JYKzJsVDQ4YTY2cGVEOFk5ZVBTZ29DeFhVUnRnM01ybU9IRG9EZkFid1BtK2VzbmcrSTR6RG5IamlQdzZWZktxNVhUdmNQYmFXMGRUMjk2YVhWK3JSejE2aUVDTHRyeVMydFZmWDVOZlRlSkV0UW1JMitTRko5RHhrUk4xN2JFS1ZOVjh6TzI0VkxkRWxmWmY5R2R2LS1KcTVXVHZtOTY2T0F1SU4wQS93cmNRPT0%3D--6683b548f714297ff32ec21c65045b56a755904c; path=/; HttpOnly
X-Request-Id: 4e928cef-ed4e-4262-80dc-3fede544979c
X-Runtime: 0.064746
Content-Length: 5080

Body

{
  "program": {
    "id": 7,
    "visibility": "listed",
    "enrollment_open": true,
    "enrollment_open_from": null,
    "enrollment_open_to": null,
    "enrollment_cap": null,
    "description": "description_6",
    "enrollment_fee": "0.0",
    "created_at": "2023/05/17 15:09:37 +0000",
    "credits": 9.0,
    "measurement": "credit",
    "updated_at": "2023/05/17 15:09:37 +0000",
    "short_description": "teaser_6",
    "listing_path": "program-path-6",
    "listing_image": null,
    "currency": "USD",
    "catalog": {
      "id": 10,
      "name": "Domain Account 11"
    },
    "type": "Program",
    "title": "Program 6",
    "list_order": null,
    "waitlist": false,
    "waitlist_cap": null,
    "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-path-6",
    "start_date": "2023/05/10 15:09:37 +0000",
    "end_date": null,
    "canvas_section_id": null,
    "sequential": true,
    "requirements": [
      {
        "id": 8,
        "visibility": "listed",
        "enrollment_open": true,
        "enrollment_open_from": null,
        "enrollment_open_to": null,
        "enrollment_cap": null,
        "description": "description_7",
        "enrollment_fee": "0.0",
        "created_at": "2023/05/17 15:09:37 +0000",
        "credits": 3.0,
        "measurement": "credit",
        "updated_at": "2023/05/17 15:09:37 +0000",
        "short_description": "teaser_7",
        "listing_path": "program-path-7",
        "listing_image": null,
        "currency": "USD",
        "catalog": {
          "id": 10,
          "name": "Domain Account 11"
        },
        "type": "Program",
        "title": "Program 7",
        "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-7",
        "start_date": "2023/05/10 15:09:37 +0000",
        "end_date": null,
        "canvas_section_id": null,
        "sequential": true,
        "requirements": [
          {
            "id": 10,
            "visibility": "listed",
            "enrollment_open": true,
            "enrollment_open_from": null,
            "enrollment_open_to": null,
            "enrollment_cap": null,
            "description": "description_9",
            "enrollment_fee": "0.0",
            "created_at": "2023/05/17 15:09:37 +0000",
            "credits": 3.0,
            "measurement": "credit",
            "updated_at": "2023/05/17 15:09:37 +0000",
            "short_description": "teaser_9",
            "listing_path": "course-path-9",
            "listing_image": null,
            "currency": "USD",
            "catalog": {
              "id": 10,
              "name": "Domain Account 11"
            },
            "type": "Course",
            "title": "Course 9",
            "list_order": null,
            "waitlist": false,
            "waitlist_cap": null,
            "sku": "sku_5",
            "show_free_banner": true,
            "image_alt_text": null,
            "allowed_payment_types": [
              "standard"
            ],
            "tag_names": [

            ],
            "listing_url": "http://www.my-catalog.edu/courses/course-path-9",
            "start_date": "2023/05/10 15:09:37 +0000",
            "end_date": "2023/05/24 15:09:37 +0000",
            "canvas_section_id": null,
            "canvas_course": {
              "id": 5
            }
          }
        ]
      },
      {
        "id": 9,
        "visibility": "listed",
        "enrollment_open": true,
        "enrollment_open_from": null,
        "enrollment_open_to": null,
        "enrollment_cap": null,
        "description": "description_8",
        "enrollment_fee": "0.0",
        "created_at": "2023/05/17 15:09:37 +0000",
        "credits": 6.0,
        "measurement": "credit",
        "updated_at": "2023/05/17 15:09:37 +0000",
        "short_description": "teaser_8",
        "listing_path": "program-path-8",
        "listing_image": null,
        "currency": "USD",
        "catalog": {
          "id": 10,
          "name": "Domain Account 11"
        },
        "type": "Program",
        "title": "Program 8",
        "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-8",
        "start_date": "2023/05/10 15:09:37 +0000",
        "end_date": null,
        "canvas_section_id": null,
        "sequential": true,
        "requirements": [
          {
            "id": 11,
            "visibility": "listed",
            "enrollment_open": true,
            "enrollment_open_from": null,
            "enrollment_open_to": null,
            "enrollment_cap": null,
            "description": "description_10",
            "enrollment_fee": "0.0",
            "created_at": "2023/05/17 15:09:37 +0000",
            "credits": 3.0,
            "measurement": "credit",
            "updated_at": "2023/05/17 15:09:37 +0000",
            "short_description": "teaser_10",
            "listing_path": "course-path-10",
            "listing_image": null,
            "currency": "USD",
            "catalog": {
              "id": 10,
              "name": "Domain Account 11"
            },
            "type": "Course",
            "title": "Course 10",
            "list_order": null,
            "waitlist": false,
            "waitlist_cap": null,
            "sku": "sku_6",
            "show_free_banner": true,
            "image_alt_text": null,
            "allowed_payment_types": [
              "standard"
            ],
            "tag_names": [

            ],
            "listing_url": "http://www.my-catalog.edu/courses/course-path-10",
            "start_date": "2023/05/10 15:09:37 +0000",
            "end_date": "2023/05/24 15:09:37 +0000",
            "canvas_section_id": null,
            "canvas_course": {
              "id": 6
            }
          },
          {
            "id": 12,
            "visibility": "listed",
            "enrollment_open": true,
            "enrollment_open_from": null,
            "enrollment_open_to": null,
            "enrollment_cap": null,
            "description": "description_11",
            "enrollment_fee": "0.0",
            "created_at": "2023/05/17 15:09:37 +0000",
            "credits": 3.0,
            "measurement": "credit",
            "updated_at": "2023/05/17 15:09:37 +0000",
            "short_description": "teaser_11",
            "listing_path": "course-path-11",
            "listing_image": null,
            "currency": "USD",
            "catalog": {
              "id": 10,
              "name": "Domain Account 11"
            },
            "type": "Course",
            "title": "Course 11",
            "list_order": null,
            "waitlist": false,
            "waitlist_cap": null,
            "sku": "sku_7",
            "show_free_banner": true,
            "image_alt_text": null,
            "allowed_payment_types": [
              "standard"
            ],
            "tag_names": [

            ],
            "listing_url": "http://www.my-catalog.edu/courses/course-path-11",
            "start_date": "2023/05/10 15:09:37 +0000",
            "end_date": "2023/05/24 15:09:37 +0000",
            "canvas_section_id": null,
            "canvas_course": {
              "id": 7
            }
          }
        ]
      }
    ]
  }
}

Listing programs

Endpoint

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

Request

Route

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

Headers

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: tsQYqUQD1nj/vDBfZDynv2Tkjzbfgaf9RYCe+Kif2lJYXnfm2dN3XD8D7AywG1xfni9Mg8HAXfqbKUmbv9GO9g==
ETag: W/"ab7989e207a8422c82308386b20130c5"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=WGRzblRJZ2VuMWJ1U2grYk9oejBCNHJEVzNqOGM2cFJqL1JyL3h5WU00QTE3aTRQWkFpM2I1Tk03MkdLVG1RZGlBY2Y0aFJXd1E2bCt2VFYrSTJLUXI1cmlSdmg4RmtkVkRqVTBlYzdOSlNYc0QyT3BDZzIvbzBVWFZXSnRLcEh2VWVBUGduNk54NFRRUzRZUnpISzdEb0R5ZW1CU29mRHZlTm02VDlQOVdkOGpvVnFLVlRlbStCblZ1bjJhT0MvLS0vc3RTNDlwcUJTVFdOZGNwYWVWb0VBPT0%3D--e8c9f3d3d2e610b670c399b877ee27ab83b7b667; path=/; HttpOnly
X-Request-Id: 42f7c552-bf25-4ad7-a5cb-139f82e83397
X-Runtime: 0.085227
Content-Length: 9343

Body

{
  "programs": [
    {
      "id": 13,
      "visibility": "listed",
      "enrollment_open": true,
      "enrollment_open_from": null,
      "enrollment_open_to": null,
      "enrollment_cap": null,
      "description": "description_12",
      "enrollment_fee": "0.0",
      "created_at": "2023/05/17 15:09:37 +0000",
      "credits": 9.0,
      "measurement": "credit",
      "updated_at": "2023/05/17 15:09:37 +0000",
      "short_description": "teaser_12",
      "listing_path": "program-path-12",
      "listing_image": null,
      "currency": "USD",
      "catalog": {
        "id": 11,
        "name": "Domain Account 12"
      },
      "type": "Program",
      "title": "Program 12",
      "list_order": null,
      "waitlist": false,
      "waitlist_cap": null,
      "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-path-12",
      "start_date": "2023/05/10 15:09:37 +0000",
      "end_date": null,
      "canvas_section_id": null,
      "sequential": true,
      "requirements": [
        {
          "id": 14,
          "visibility": "listed",
          "enrollment_open": true,
          "enrollment_open_from": null,
          "enrollment_open_to": null,
          "enrollment_cap": null,
          "description": "description_13",
          "enrollment_fee": "0.0",
          "created_at": "2023/05/17 15:09:37 +0000",
          "credits": 3.0,
          "measurement": "credit",
          "updated_at": "2023/05/17 15:09:37 +0000",
          "short_description": "teaser_13",
          "listing_path": "program-path-13",
          "listing_image": null,
          "currency": "USD",
          "catalog": {
            "id": 11,
            "name": "Domain Account 12"
          },
          "type": "Program",
          "title": "Program 13",
          "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-13",
          "start_date": "2023/05/10 15:09:37 +0000",
          "end_date": null,
          "canvas_section_id": null,
          "sequential": true,
          "requirements": [
            {
              "id": 16,
              "visibility": "listed",
              "enrollment_open": true,
              "enrollment_open_from": null,
              "enrollment_open_to": null,
              "enrollment_cap": null,
              "description": "description_15",
              "enrollment_fee": "0.0",
              "created_at": "2023/05/17 15:09:37 +0000",
              "credits": 3.0,
              "measurement": "credit",
              "updated_at": "2023/05/17 15:09:37 +0000",
              "short_description": "teaser_15",
              "listing_path": "course-path-15",
              "listing_image": null,
              "currency": "USD",
              "catalog": {
                "id": 11,
                "name": "Domain Account 12"
              },
              "type": "Course",
              "title": "Course 15",
              "list_order": null,
              "waitlist": false,
              "waitlist_cap": null,
              "sku": "sku_8",
              "show_free_banner": true,
              "image_alt_text": null,
              "allowed_payment_types": [
                "standard"
              ],
              "tag_names": [

              ],
              "listing_url": "http://www.my-catalog.edu/courses/course-path-15",
              "start_date": "2023/05/10 15:09:37 +0000",
              "end_date": "2023/05/24 15:09:37 +0000",
              "canvas_section_id": null,
              "canvas_course": {
                "id": 8
              }
            }
          ]
        },
        {
          "id": 15,
          "visibility": "listed",
          "enrollment_open": true,
          "enrollment_open_from": null,
          "enrollment_open_to": null,
          "enrollment_cap": null,
          "description": "description_14",
          "enrollment_fee": "0.0",
          "created_at": "2023/05/17 15:09:37 +0000",
          "credits": 6.0,
          "measurement": "credit",
          "updated_at": "2023/05/17 15:09:37 +0000",
          "short_description": "teaser_14",
          "listing_path": "program-path-14",
          "listing_image": null,
          "currency": "USD",
          "catalog": {
            "id": 11,
            "name": "Domain Account 12"
          },
          "type": "Program",
          "title": "Program 14",
          "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-14",
          "start_date": "2023/05/10 15:09:37 +0000",
          "end_date": null,
          "canvas_section_id": null,
          "sequential": true,
          "requirements": [
            {
              "id": 17,
              "visibility": "listed",
              "enrollment_open": true,
              "enrollment_open_from": null,
              "enrollment_open_to": null,
              "enrollment_cap": null,
              "description": "description_16",
              "enrollment_fee": "0.0",
              "created_at": "2023/05/17 15:09:37 +0000",
              "credits": 3.0,
              "measurement": "credit",
              "updated_at": "2023/05/17 15:09:37 +0000",
              "short_description": "teaser_16",
              "listing_path": "course-path-16",
              "listing_image": null,
              "currency": "USD",
              "catalog": {
                "id": 11,
                "name": "Domain Account 12"
              },
              "type": "Course",
              "title": "Course 16",
              "list_order": null,
              "waitlist": false,
              "waitlist_cap": null,
              "sku": "sku_9",
              "show_free_banner": true,
              "image_alt_text": null,
              "allowed_payment_types": [
                "standard"
              ],
              "tag_names": [

              ],
              "listing_url": "http://www.my-catalog.edu/courses/course-path-16",
              "start_date": "2023/05/10 15:09:37 +0000",
              "end_date": "2023/05/24 15:09:37 +0000",
              "canvas_section_id": null,
              "canvas_course": {
                "id": 9
              }
            },
            {
              "id": 18,
              "visibility": "listed",
              "enrollment_open": true,
              "enrollment_open_from": null,
              "enrollment_open_to": null,
              "enrollment_cap": null,
              "description": "description_17",
              "enrollment_fee": "0.0",
              "created_at": "2023/05/17 15:09:37 +0000",
              "credits": 3.0,
              "measurement": "credit",
              "updated_at": "2023/05/17 15:09:37 +0000",
              "short_description": "teaser_17",
              "listing_path": "course-path-17",
              "listing_image": null,
              "currency": "USD",
              "catalog": {
                "id": 11,
                "name": "Domain Account 12"
              },
              "type": "Course",
              "title": "Course 17",
              "list_order": null,
              "waitlist": false,
              "waitlist_cap": null,
              "sku": "sku_10",
              "show_free_banner": true,
              "image_alt_text": null,
              "allowed_payment_types": [
                "standard"
              ],
              "tag_names": [

              ],
              "listing_url": "http://www.my-catalog.edu/courses/course-path-17",
              "start_date": "2023/05/10 15:09:37 +0000",
              "end_date": "2023/05/24 15:09:37 +0000",
              "canvas_section_id": null,
              "canvas_course": {
                "id": 10
              }
            }
          ]
        }
      ]
    },
    {
      "id": 14,
      "visibility": "listed",
      "enrollment_open": true,
      "enrollment_open_from": null,
      "enrollment_open_to": null,
      "enrollment_cap": null,
      "description": "description_13",
      "enrollment_fee": "0.0",
      "created_at": "2023/05/17 15:09:37 +0000",
      "credits": 3.0,
      "measurement": "credit",
      "updated_at": "2023/05/17 15:09:37 +0000",
      "short_description": "teaser_13",
      "listing_path": "program-path-13",
      "listing_image": null,
      "currency": "USD",
      "catalog": {
        "id": 11,
        "name": "Domain Account 12"
      },
      "type": "Program",
      "title": "Program 13",
      "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-13",
      "start_date": "2023/05/10 15:09:37 +0000",
      "end_date": null,
      "canvas_section_id": null,
      "sequential": true,
      "requirements": [
        {
          "id": 16,
          "visibility": "listed",
          "enrollment_open": true,
          "enrollment_open_from": null,
          "enrollment_open_to": null,
          "enrollment_cap": null,
          "description": "description_15",
          "enrollment_fee": "0.0",
          "created_at": "2023/05/17 15:09:37 +0000",
          "credits": 3.0,
          "measurement": "credit",
          "updated_at": "2023/05/17 15:09:37 +0000",
          "short_description": "teaser_15",
          "listing_path": "course-path-15",
          "listing_image": null,
          "currency": "USD",
          "catalog": {
            "id": 11,
            "name": "Domain Account 12"
          },
          "type": "Course",
          "title": "Course 15",
          "list_order": null,
          "waitlist": false,
          "waitlist_cap": null,
          "sku": "sku_8",
          "show_free_banner": true,
          "image_alt_text": null,
          "allowed_payment_types": [
            "standard"
          ],
          "tag_names": [

          ],
          "listing_url": "http://www.my-catalog.edu/courses/course-path-15",
          "start_date": "2023/05/10 15:09:37 +0000",
          "end_date": "2023/05/24 15:09:37 +0000",
          "canvas_section_id": null,
          "canvas_course": {
            "id": 8
          }
        }
      ]
    },
    {
      "id": 15,
      "visibility": "listed",
      "enrollment_open": true,
      "enrollment_open_from": null,
      "enrollment_open_to": null,
      "enrollment_cap": null,
      "description": "description_14",
      "enrollment_fee": "0.0",
      "created_at": "2023/05/17 15:09:37 +0000",
      "credits": 6.0,
      "measurement": "credit",
      "updated_at": "2023/05/17 15:09:37 +0000",
      "short_description": "teaser_14",
      "listing_path": "program-path-14",
      "listing_image": null,
      "currency": "USD",
      "catalog": {
        "id": 11,
        "name": "Domain Account 12"
      },
      "type": "Program",
      "title": "Program 14",
      "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-14",
      "start_date": "2023/05/10 15:09:37 +0000",
      "end_date": null,
      "canvas_section_id": null,
      "sequential": true,
      "requirements": [
        {
          "id": 17,
          "visibility": "listed",
          "enrollment_open": true,
          "enrollment_open_from": null,
          "enrollment_open_to": null,
          "enrollment_cap": null,
          "description": "description_16",
          "enrollment_fee": "0.0",
          "created_at": "2023/05/17 15:09:37 +0000",
          "credits": 3.0,
          "measurement": "credit",
          "updated_at": "2023/05/17 15:09:37 +0000",
          "short_description": "teaser_16",
          "listing_path": "course-path-16",
          "listing_image": null,
          "currency": "USD",
          "catalog": {
            "id": 11,
            "name": "Domain Account 12"
          },
          "type": "Course",
          "title": "Course 16",
          "list_order": null,
          "waitlist": false,
          "waitlist_cap": null,
          "sku": "sku_9",
          "show_free_banner": true,
          "image_alt_text": null,
          "allowed_payment_types": [
            "standard"
          ],
          "tag_names": [

          ],
          "listing_url": "http://www.my-catalog.edu/courses/course-path-16",
          "start_date": "2023/05/10 15:09:37 +0000",
          "end_date": "2023/05/24 15:09:37 +0000",
          "canvas_section_id": null,
          "canvas_course": {
            "id": 9
          }
        },
        {
          "id": 18,
          "visibility": "listed",
          "enrollment_open": true,
          "enrollment_open_from": null,
          "enrollment_open_to": null,
          "enrollment_cap": null,
          "description": "description_17",
          "enrollment_fee": "0.0",
          "created_at": "2023/05/17 15:09:37 +0000",
          "credits": 3.0,
          "measurement": "credit",
          "updated_at": "2023/05/17 15:09:37 +0000",
          "short_description": "teaser_17",
          "listing_path": "course-path-17",
          "listing_image": null,
          "currency": "USD",
          "catalog": {
            "id": 11,
            "name": "Domain Account 12"
          },
          "type": "Course",
          "title": "Course 17",
          "list_order": null,
          "waitlist": false,
          "waitlist_cap": null,
          "sku": "sku_10",
          "show_free_banner": true,
          "image_alt_text": null,
          "allowed_payment_types": [
            "standard"
          ],
          "tag_names": [

          ],
          "listing_url": "http://www.my-catalog.edu/courses/course-path-17",
          "start_date": "2023/05/10 15:09:37 +0000",
          "end_date": "2023/05/24 15:09:37 +0000",
          "canvas_section_id": null,
          "canvas_course": {
            "id": 10
          }
        }
      ]
    }
  ]
}

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[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/6

Headers

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: H7xOvmbO/mdBf/qiBcYHmHsXfON28l/gaui0ylBRwZcreEm0h32eVt/x0oNKsrpgtMx9S3oytcwL1VCp/afciA==
Cache-Control: no-cache
Set-Cookie: _gallery_session=bEtxOWlGeEx3eVNhdE5hM05Dbyt5cFRkMXd2SWR6Yjk4aVFqNzM3VTRrNzJaSEFBeENKdEk2NElaK2dTeG5YVlNrM3lwclFUZWlPVjB1OU8rS1JmQXNLL1NTOXUrQWlSYmh3ZnQzdVhrZlRKS3FjSHlxdjJjV3ZGQTl3SWM3OEVMckpwcjMreGY2UXFXWnVVTEhqSmR2ekF0VWlSaHdTdXFUYmZYTjFzbDEwdUE3TVV0SEZMWFVlUi9BajRwYXdZLS05NU9mN3B6OVZaTkZPMUdHUm11aW13PT0%3D--b89bd2dbcc838b04cfa129ca0cf3970fa79ee820; path=/; HttpOnly
X-Request-Id: 5ae3f7ad-ad16-46ca-9b8e-7d3981c92487
X-Runtime: 0.059659

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

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: nYWBslay2YwQzf6nE4zQs/5OYi8VgKjdTiRpI+1H1csGe0DH4rtmeeFwc1woqkRKP3V3i+DdOPLHhbKaXdVixA==
ETag: W/"c21e09eee123b29646be8e866665c185"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=TytHQXZHVTg3S3Ayd1lyZWw0enRybkZqb0l6SFc3YjFPODFnMXNyUnZlY3dEelBNTDY5Tmg5YU8vVjN1cFNZUFhMVEdnVDJXdEpkTmh0WThialg2TUY3OHJzYzdrb2dhQjB2eEt2eGUzUlJaMzhHNXBvRWRsd0t2UWFkQ3BYSmpYVFM1T0d3TEVKc1c5bkRxWnNQcFR4eHRoeHViRHllcldnNXE4cWt2M0JrV1VxTU56b21mYng2SlNsNkhwczVCLS1zV3BKRTdoZm1PUVRVY2hYUXoweTNRPT0%3D--0d39f213194a95d339ecf2ea9e2bb94c983c5ca3; path=/; HttpOnly
X-Request-Id: 6c876a62-585d-44eb-ad8f-a6290e47d6db
X-Runtime: 0.050902
Content-Length: 206

Body

{
  "progress": {
    "id": 2,
    "account_id": 34,
    "canvas_user_id": null,
    "completion_percent": null,
    "workflow_state": "queued",
    "payload": {
    },
    "created_at": "2023/05/17 15:09:40 +0000",
    "updated_at": "2023/05/17 15:09:40 +0000"
  }
}

User registrations

Getting a specific user registration

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

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: IPtueDFcikSAzjg0KqF6vQFRrTULDrzT4VA7aFH0rdpRmvQaoTQSVeyteYwWhM44on4APOek/C6Hs/P1nMdiuw==
ETag: W/"57b3cb75a1086da09f9b23400aadafe5"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=WGp3M3FobjN0dTZsc2hkYW10RHljQ2w2bWpNa0xkejdPaENkUlZUczNUeHh1c0pLRmtZTkZlT0kwT2o0c2Zac05QbmZqZDAxcjZ1WEJKQWZTQlE4cXRiT2xxZFlya0JwT013ZTJnUGtURGl2TW9odVZLVXF0TWNSZUpEQ1ZvNFJpN0lzV3p1QlFLYkxXUXphc2xYV0oxcDJOS0VWUUpsYnRMTzFZd2doell4SW5XMkNRTEl3QXdkUE5aQW5PeFJ5LS15TXVnZkdzUy9tTkdsTXkrNzNkSmxRPT0%3D--43abd61da93d79a213c37c4ef7425a326c3cee1a; path=/; HttpOnly
X-Request-Id: 57942132-96d5-40d0-b1a5-2eceb6fa346f
X-Runtime: 0.060957
Content-Length: 293

Body

{
  "user_registration": {
    "canvas_user_id": 2,
    "catalog": {
      "id": 20,
      "name": "Domain Account 21"
    },
    "name": "User 2",
    "email": "user2@example.com",
    "custom_fields": {
      "favorite_color": "#BADA55",
      "code_of_conduct": "1",
      "age": "19"
    },
    "created_at": "2023/05/17 15:09:38 +0000",
    "updated_at": "2023/05/17 15:09:38 +0000"
  }
}

Listing user registrations

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

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: f9eNSJguAAz9yLJAcyxaIKn3B5XkYtUnRG0Q8P9dq3YlZQJ+xpxmnR8TVU5QJ1H60EqF8AV2Km56oDh84qo3Bw==
ETag: W/"af51207a8e15b1408f18fb06caf6059c"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=MlI0TE1WU3lWTHFRSmFMcXNtcDdWbmhRTC9KZk5rWFIzckRSOUl0cXIwQnhncy9RMWtqYm5VR3BOWHV5U1JzSXlJaVVLdXYvVkVybVZ5V1BlRVgrZnZsbjhDbkFqSHcwa2RpVERNcFgzRHE5SzVPQktpM0l1cjVLMXkvKyttSzJqa29IS25rQ1docmhsSGRwQnAzSU9EeGw5bFhzU3U2WWlqc1NVK2RGdDRVQXB3emtLSDgyKzBHOU5GUUNNM2UvLS03RllrVTBZYks3Q3IrcHRnSThxZ2ZnPT0%3D--af0b7f18c9e22bfc0cad942f23880a8904079563; path=/; HttpOnly
X-Request-Id: 3fc1d6bd-e6ce-4bc3-b827-e6debe922008
X-Runtime: 0.064978
Content-Length: 296

Body

{
  "user_registrations": [
    {
      "canvas_user_id": 1,
      "catalog": {
        "id": 19,
        "name": "Domain Account 20"
      },
      "name": "User 1",
      "email": "user1@example.com",
      "custom_fields": {
        "favorite_color": "#BADA55",
        "code_of_conduct": "1",
        "age": "19"
      },
      "created_at": "2023/05/17 15:09:38 +0000",
      "updated_at": "2023/05/17 15:09:38 +0000"
    }
  ]
}

Registering a user

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

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

Body

{
  "user_registration": {
    "name": "Barack Obama",
    "email": "barack@obama.com",
    "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: 1zA07y0nb9msfzG/o1lNbE004tJpEBpgKf4IujuHA38HA7U9Ok5JYurogOaZeqBf+z2XOps+IcerGK5YI29RTA==
ETag: W/"faeca1d5be914fba5868dab4bb2ed419"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=dmlCbWJIcDJlRTdFVTk5eElaeitkckV4N054N0djKzh1UTRGS3o5SGVwN3N6UFU3amI0eXI0Q09oS0hjMUd1VTFiSFAyTVlvSEU5T2pYZkJrdHZsZG9qdTMzZGtrMU9iWlRnQzVhTE0xdDI0dHA5d2JZcVM3TGhxYy93Yk5aN0tkM1JLcTVCSmgzdWh1WlFNelJQa0o2THVsV0haek1aTVNFejRpeXJoejBpVVpxZ1Z3Y1FCL1dGamxsa3VqSk5vLS1UTXE3WGQzc1oxdzlvdlRlN1Zrbi9RPT0%3D--9835b212173eb35af3d9c801636dc53f6df8b45e; path=/; HttpOnly
X-Request-Id: 40797a1c-8949-48de-b5eb-b09d15b32298
X-Runtime: 0.297115
Content-Length: 242

Body

{
  "user_registration": {
    "canvas_user_id": 1234,
    "catalog": {
      "id": 21,
      "name": "Domain Account 22"
    },
    "name": "Barack Obama",
    "email": "barack@obama.com",
    "custom_fields": {
    },
    "created_at": "2023/05/17 15:09:39 +0000",
    "updated_at": "2023/05/17 15:09:39 +0000"
  }
}

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

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

Body

listing_id=27

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: sYDzSoI6KlUSyyJStrZ7RVnVL1rqzdGZsiankkR1Qrh5jIF3kRqHjd2zOw6Ta2jhoHjbPb5gG7XWHpy+AyR9Ew==
Cache-Control: no-cache
Set-Cookie: _gallery_session=aGRLVHI4aWhsa08xR2gyODIvL3JvcDR4MEJsbXNrR2drcm9WYzA5TCtYUGhEVndkWmxLamRROWlTL056NXZCNTJVZzc0VTJBQUpZMlZLQmZoMkdyVzJ5RlJxbWlJTU5EUklsbk9rSStXN2RBbURyVXBlOXVpemI2ZW84TkVJY01lMDNXMmtIYU1pUlBmMmVBRGt5akdlbm9iY3FqRTFLNVlPbUovWVFrWThyek93akVBQWFzV0YzWGVuY3Q5bnlWLS04OFlDTTRoNU8vVVFNQUIzRkc3NUxnPT0%3D--6e9ddf8d572b6188fc92e41c416faf036a5c2fa9; path=/; HttpOnly
X-Request-Id: 7332151f-43a7-452c-8db7-8a48ddbfcee4
X-Runtime: 0.043738

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/3

Headers

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: 8LDLJ3t1TqxbhXYZQkNaE8NYlIzz7F1V/3xSjM/pG+x0/nCSyEGDcojY19Md7/p+0uB26NNTEwFIYF3bjpJpQA==
ETag: W/"967060680c3c384a8f9abff2d531eb6a"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=MGNURnloOEdKUHBjVHdqUHk4YW9uV0FKYkdSUmxLdEtKa210TzlEM3NIL3VxTVM1RDNleFhCZlQwazhLeDQwem42VmpVZjUxNm5YUkxra2VhNk0xcUc4NGN5ZUM1WXJKaHllT1J6VE1GOGpUbE12MGFQSU1kYW4xS2V4eloraDZlVTlselduQmNCVVB4UWJQQ2xyVkpCVExnVHIwaDdiWjBnMHROSzljL045SFVacEUxQmlNK08veWwxekVWa0JrLS04dWp0RHQwN1lKUUhJZ1V4aGcza1Z3PT0%3D--b5f6425f262f5e22103f320976dd1256dcc373fd; path=/; HttpOnly
X-Request-Id: 05fef1cf-6df5-4289-8dda-5537f8175734
X-Runtime: 0.044515
Content-Length: 255

Body

{
  "applicant": {
    "id": 3,
    "user": {
      "id": 3,
      "name": "Applicant",
      "email": "plz@letmein.com"
    },
    "listing": {
      "id": 29,
      "title": "Course 27"
    },
    "notified_of_opening_at": null,
    "status": "waitlist",
    "created_at": "2023/05/17 15:09:38 +0000",
    "updated_at": "2023/05/17 15:09:38 +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

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: thWjZ5JeKsJY0Ch809wnoqSH5I0jh/uuuHjHyzLLREkj2syXMukdgzazPe5GZloz6mDuwtawf+jHwdFFGM2xMQ==
ETag: W/"b4c52020526a4ec69efe259ac8d2ca60"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _gallery_session=R1hxY1BuT1hzRVloamtuV3pvMTU4end4VUdoWm9Mbk44UnJkRmZKZGVyUVhzc04yWFVuQ0VmQ2cyaGNLWUE1R25TVHZWSk12ZUQ0NE1WeXNwZkJEMVdpa3ZNdlVud1B0YjRXeTVIbHlVdUd3MVpRV0dEaGl6M1Q1VFVQN0Z5RXlXQ3R4NnU0RWJIcEQ2TUthMWdYTTJyV3Z1aDhtNktpT085bkQrWnVIZ252NWptTmNCVHg5d0lEY0E5VXEyNVVWLS1TWXpXUlA4U2VBYjFvSkFtYW8wVTR3PT0%3D--cd8c742007e12bb3752b9918d150186342a1454a; path=/; HttpOnly
X-Request-Id: 136d3b5b-561e-4af0-8a1c-c507c7aed3b1
X-Runtime: 0.050158
Content-Length: 258

Body

{
  "applicants": [
    {
      "id": 2,
      "user": {
        "id": 2,
        "name": "Applicant",
        "email": "plz@letmein.com"
      },
      "listing": {
        "id": 28,
        "title": "Course 26"
      },
      "notified_of_opening_at": null,
      "status": "waitlist",
      "created_at": "2023/05/17 15:09:38 +0000",
      "updated_at": "2023/05/17 15:09:38 +0000"
    }
  ]
}