Skip to main content
Use this quickstart to call COSMIC APIs in a few minutes with a personal access token.

1) Create a personal access token

1

Open access tokens

Sign in to natecosmic.com/developers , then open Access tokens .
2

Generate a token

Create a token and copy it.
3

Store it securely

Save it in an environment variable for local testing.
Treat access tokens as secrets. Do not commit them to source control.

2) Make your first API request

Use your token in the Authorization header as a bearer token.
If the request fails with 401, your token may be expired. Personal access tokens expire after one hour, so create a new token and retry.

Next steps

  • Fetch user certification records from GET /v1/certifications
  • Review available endpoints in API reference
  • Learn token behavior in Access tokens
  • Build a production integration with Creating apps
  • Implement full user authorization in OAuth