Skip to main content
Creatora’s GraphQL endpoint is https://api.creatora.io/graphql. The Playground is available for exploring the API, and the SDL contains the current GraphQL schema. These examples use direct HTTP requests.

Get your JWT

Sign in as an Administrator and open Admin Panel → Platform → API → Developer. Copy the JWT shown there and keep it private. Send it with the Bearer scheme. Administrator requests also need the access-mode header:
Without X-CREATORA-ACCESS-MODE: administrator, requests use Student mode even when the JWT belongs to an Administrator.

1. Identify your account and Platform

Replace <JWT> with your JWT:
The response’s me.id identifies the authenticated account; platform.id identifies its Platform. Check for errors as well as data before using the result.

2. Create a private Course

This request creates a real Course on your Platform. Use a test Platform or a Course you intend to keep. Set the base Offer price in your Platform’s currency; 0.0 makes the base Offer free.
Keep the returned createCourse.id. The mutation creates a Private Course and its automatic base Offer. It does not publish the Course. The createCourse mutation reference lists the supported arguments and return fields.

3. Read the Course back

Replace <COURSE_ID> with the id returned by createCourse:
Check that the returned ID and name match the Course you created and that its status is private. If createCourse times out or returns an ambiguous result, check the Courses list in the Admin Panel before calling it again. A second call can create a duplicate. Course names are not unique, so if you cannot tell whether the first Course was created, investigate before retrying. For the relationship among Courses, Students, Offers and Orders, continue with Core concepts. For headers, errors and pagination, see API conventions.