AI agents: fetch the documentation index at llms.txt. Markdown versions are available by appending .md to any page URL, including this page's markdown.
Authenticate API Requests
Send authenticated requests to the Done Bear API with a JWT or API key.
Authenticate requests to the Done Bear API with a bearer token or API key.
Send a bearer header
Every API request uses the same header shape:
curl https://api.donebear.com/graphql \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
--data '{"query":"query { viewer { id email } }"}'Use a CLI-created API key for automation
Create a key from the CLI:
donebear