Skip to main content

API key

Your API key authenticates requests to the Uthana API. Keep it private and rotate it if you suspect it has been compromised.

Get your API key

  1. Create an account at uthana.com.
  2. Choose an API-enabled plan on the pricing page.
  3. Open your account settings at uthana.com/app/account.
  4. Generate a new API key.
  5. (Optional) paste it into the API key field (in the top-right corner of the page) to use it with the Uthana API docs (desktop version only).

Use your API key

The official Python and JavaScript/TypeScript clients handle authentication for you. Pass your key when constructing the client. For other languages, use HTTP Basic auth with your API key as the username and an empty password.

API_KEY="{{apiKey}}"

curl "https://uthana.com/graphql" \
  -u $API_KEY: \
  -H "Content-Type: application/json" \
  -d '{"query": "{ __typename }"}'

Custom domain

If you use a non-default API host, pass the domain option:

# Replace uthana.com with your custom domain in all request URLs
curl "https://custom.uthana.example/graphql" \
  -u $API_KEY: \
  -H "Content-Type: application/json" \
  -d '{"query": "{ __typename }"}'

Security tips

  • Treat your API key like a password.
  • Store it in a secret manager or environment variable, not in source code.
  • Rotate the key if it appears in logs or shared code.