API Sandbox
Coggno API · Sandbox

API Sandbox

The sandbox is an isolated copy of Coggno with a minimal data set. Use it to build and test your API integration without touching live data.

Separate environment

  • Isolated database
  • Sign in with your Coggno login

The same API

  • Test API key
  • Sandbox endpoint

Nothing real happens

  • No real users
  • No outgoing emails
  • Marketplace test mode
  • Training simulation
Course uploads are disabled in the sandbox.

Open the sandbox

  1. In Coggno, open Settings → API Keys.
  2. Click Test in Sandbox.
  3. You land on sandbox-app.coggno.com, already signed in with your Coggno login.
Settings → API Keys in Coggno with the Test in Sandbox button

Create a test API key

  1. In the sandbox, open Settings → API Keys.
  2. Click Add API key. The new key starts with test_.
  3. Copy it and store it like a password. Click a key in the list to show it again.

Test keys work only in the sandbox, and live keys work only in production. Keys are valid for three years.

Sandbox Settings → API Keys with a test key and the Add API key button
An orange “You are testing in sandbox” banner shows on every sandbox page, so you always know which environment you are in.

Your sandbox account

Every sandbox account comes ready to test with. Your own admin login works as usual, and the account allows up to 1,000 users, so you can create as many test learners as you need.

3QlickTrain courses
25Licenses per course
1Sandbox test group
5Test learners in the group
Sandbox test group with Test Learner 1 to 5
Groups → Sandbox test group

Log in as a test learner

Test learners have no password. Open a learner in Users and click Log in as to see that learner’s dashboard and launch courses. Back to admin in the banner returns you to the admin side.

A test learner’s page with the Log in as button

Course simulator

The sandbox doesn’t play real course content. Opening a launch link shows the course simulator instead.

  • Progress climbs from 0% to 100% in 10% steps, one minute in total.
  • Each step updates the license’s progress and score, just like a real course run.
  • At 100%, the course is completed, a certificate is issued and your license.completed webhook fires.
  • The API returns the simulated score, so you can test reading it.
The course simulator at 60% progress

Certificates

Completing a course issues its certificate exactly as in production: a PDF generated from the course’s certificate design, with the learner’s name, date and serial number. Use it to test the API certificate methods.

Every sandbox certificate carries a diagonal SANDBOX watermark, so it can never pass for a real one.

A certificate of completion with a diagonal SANDBOX watermark

Make API requests

Call the sandbox exactly as you would call production. For example, GET /users with your test key returns your account owner and the five test learners.

  • Base URL: https://sandbox-app.coggno.com/api/v2
  • Authentication: HTTP Basic, with your test_ key as the username and an empty password

See the API Reference for every endpoint.

Terminal: curl -u test_XXX: https://sandbox-app.coggno.com/api/v2/users and the JSON list of users

Return to the live site

Click Exit Sandbox in the sandbox banner or in the account menu. The live site opens on Settings → API Keys, and you stay signed in.

The Exit Sandbox link in the sandbox banner and the Exit Sandbox button in the account menu

Sandbox vs. production

SandboxProduction
Course contentOne-minute simulatorThe real course
Courses3 QlickTrain courses, 25 licenses eachPurchased and authored courses
Course authoringCourse uploads are disabledSupported
EmailsNo outgoing emailsSent to learners and admins
PaymentsMarketplace test modeReal charges
Test learnersOpened with launch_url or Log in asLearners sign in themselves
DataMay be reset when the sandbox is refreshedPermanent