The Duro GraphQL API uses Bearer token and API key (via x-api-key header) authentication. All API requests must include an authorization token in the header.
x-api-key
To get started with the Duro API, you'll need to:
Create a Duro account at durohub.comarrow-up-right
Navigate to your account settings
Generate an API token from the Developer section
Your URL to get an API key is: https://durohub.com/org/@<your org slug>/libs/<your library slug>/settings/api-keys
https://durohub.com/org/@<your org slug>/libs/<your library slug>/settings/api-keys
Include your API token in all requests using the x-api-key header:
Never share your API tokens
Rotate tokens regularly
Use different tokens for development and production
Store tokens securely in environment variables
Never commit API tokens to version control or expose them in client-side code.
Learn how to make your first API call in the Hello World guide.
Last updated 6 months ago
Was this helpful?
x-api-key: YOUR_API_TOKEN