Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.natecosmic.com/llms.txt

Use this file to discover all available pages before exploring further.

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.
export COSMIC_ACCESS_TOKEN="YOUR_ACCESS_TOKEN"
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.
curl -sS -X GET "https://api.natecosmic.com/v1/me" \
  -H "Authorization: Bearer $COSMIC_ACCESS_TOKEN" \
  -H "Accept: application/json"
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