Skip to main content
https://.thoughtindustries.com

Content

Returns a paginated list of content items matching the specified types and optional filters

Returns a paginated list of content items matching the specified types and optional filters.

GEThttps://example.thoughtindustries.com/incoming/v2/content

Example request

curl "https://example.thoughtindustries.com/incoming/v2/content" \
  -H 'Authorization: Bearer YOUR_API_KEY'

Parameters

NameTypeRequiredLocationDescription
typesContentSearchType[]YesqueryOne or more content types to include in the search results.
cursorstringNoqueryOpaque cursor string for fetching the next page of results.
perPageintegerNoqueryNumber of content items to return per page.
sortstringNoqueryField name to sort results by.
querystringNoqueryFull-text search string to filter content items by title or description.

Example response

{
  "pageInfo": {
    "total": 0,
    "cursor": "string",
    "hasMore": true
  },
  "contentItems": [
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "createdAt": "2024-01-01T00:00:00.000Z",
      "updatedAt": "2024-01-01T00:00:00.000Z",
      "hasChildren": true,
      "courseStartDate": "2024-01-01T00:00:00.000Z",
      "courseEndDate": "2024-01-01T00:00:00.000Z",
      "enrollmentStartDate": "2024-01-01T00:00:00.000Z",
      "enrollmentEndDate": "2024-01-01T00:00:00.000Z",
      "kind": "courseGroup",
      "language": "string",
      "contentTypeLabel": "string",
      "asset": "string",
      "assetAltText": "string",
      "title": "string",
      "slug": "example-slug",
      "description": "string",
      "metaTitle": "string",
      "metaDescription": "string",
      "sku": "string",
      "customFields": {},
      "authorsAndInstructors": [
        "string"
      ],
      "seatsLimit": 0,
      "enrollmentCount": 0,
      "status": "draft",
      "source": "string",
      "freeWithRegistration": true,
      "priceInCents": 0,
      "suggestedRetailPriceInCents": 0,
      "waitlistingEnabled": true,
      "waitlistingTriggered": true,
      "waitlistCount": 0,
      "url": "https://example.com/path",
      "tags": [
        {
          "id": "00000000-0000-0000-0000-000000000000",
          "label": "string"
        }
      ],
      "prices": [
        {
          "currencyCode": "string",
          "unitAmount": 0,
          "suggestedRetailUnitAmount": 0,
          "instructorAccessUnitAmount": 0,
          "annualUnitAmount": 0,
          "bulkPurchasingEnabled": true,
          "bulkPurchaseTiers": {
            "seatTiers": [
              {
                "seats": 0,
                "unitAmount": 0
              }
            ],
            "seatPackages": [
              {
                "seats": 0
              }
            ],
            "lastTierPriceUnitAmount": 0
          },
          "seatTiers": [
            {
              "seats": 0,
              "unitAmount": 0
            }
          ],
          "seatPackages": [
            {
              "seats": 0
            }
          ],
          "locale": "string",
          "isDefault": true
        }
      ]
    }
  ]
}

Response fields

FieldTypeDescription
pageInfoCursorPageInfoPagination metadata for the current result set.
pageInfo.totalintegerTotal number of content items matching the query.
pageInfo.cursorstringOpaque cursor to pass in the next request to retrieve the following page.
pageInfo.hasMorebooleanIndicates whether additional pages of results are available.
contentItemsContent[]Array of content items matching the search criteria.
contentItems.iduuidUnique identifier of the content item.
contentItems.createdAtISO 8601 timestampDate and time the content item was created.
contentItems.updatedAtISO 8601 timestampDate and time the content item was last modified.
contentItems.hasChildrenbooleanIndicates whether the content item contains child content items.
contentItems.courseStartDateISO 8601 timestampDate and time the course officially begins.
contentItems.courseEndDateISO 8601 timestampDate and time the course officially ends.
contentItems.enrollmentStartDateISO 8601 timestampDate and time enrollment opens for the content item.
contentItems.enrollmentEndDateISO 8601 timestampDate and time enrollment closes for the content item.
contentItems.kindContentKindContent type category, such as courseGroup or another supported kind.
contentItems.languagestringBCP 47 language code indicating the content item's primary language.
contentItems.contentTypeLabelstringHuman-readable label for the content item's type, shown in the UI.
contentItems.assetstringURL or identifier of the content item's primary thumbnail or cover image asset.
contentItems.assetAltTextstringAccessible alt text for the content item's primary image asset.
contentItems.titlestringDisplay title of the content item.
contentItems.slugstringURL-friendly identifier for the content item.
contentItems.descriptionstringFull text description of the content item.
contentItems.metaTitlestringSEO meta title for the content item's page.
contentItems.metaDescriptionstringSEO meta description for the content item's page.
contentItems.skustringStock-keeping unit identifier used for catalog or integration purposes.
contentItems.customFieldsobjectKey-value map of custom metadata fields defined for the content item.
contentItems.authorsAndInstructorsstring[]Combined list of author and instructor names associated with the content item.
contentItems.seatsLimitintegerMaximum number of enrollments allowed for the content item.
contentItems.enrollmentCountintegerTotal number of active enrollments for the content item.
contentItems.statusStatusPublication status of the content item, such as draft or published.
contentItems.sourcestringOrigin or integration source identifier for the content item.
contentItems.freeWithRegistrationbooleanIndicates whether the content item is available at no cost upon registration.
contentItems.priceInCentsintegerList price of the content item in cents (e.g., 1000 = $10.00).
contentItems.suggestedRetailPriceInCentsintegerSuggested retail price of the content item in cents.
contentItems.waitlistingEnabledbooleanIndicates whether waitlisting is enabled for the content item.
contentItems.waitlistingTriggeredbooleanIndicates whether the waitlist has been activated due to the enrollment limit being reached.
contentItems.waitlistCountintegerNumber of learners currently on the waitlist for the content item.
contentItems.urlstringAbsolute URL to the content item's detail page.
contentItems.tagsTag[]Array of tags associated with the content item for categorization and filtering.
contentItems.tags.iduuidUnique identifier of the tag.
contentItems.tags.labelstringDisplay name of the tag.
contentItems.pricesItemPrice[]Array of pricing objects available for the content item, including currency and tier details.
contentItems.prices.currencyCodestringISO currency code for this price.
contentItems.prices.unitAmountintegerUnit price amount.
contentItems.prices.suggestedRetailUnitAmountintegerSuggested retail unit price amount.
contentItems.prices.instructorAccessUnitAmountintegerUnit price amount for instructor access.
contentItems.prices.annualUnitAmountintegerAnnual unit price amount.
contentItems.prices.bulkPurchasingEnabledbooleanIndicates whether bulk seat purchasing is enabled for this price.
contentItems.prices.bulkPurchaseTiersobjectBulk purchase tier configuration for this price.
contentItems.prices.seatTiersobject[]Seat-based pricing tiers.
contentItems.prices.seatPackagesobject[]Seat package pricing options.
contentItems.prices.localestringLocale this price applies to.
contentItems.prices.isDefaultbooleanIndicates whether this is the default price for the content item.