Skip to main content
Every request carries a credential as a bearer token in the Authorization header:
Never expose your API key in client-side code, public repositories, or share it with unauthorized users. If you believe your key has been compromised, revoke it and create a new one in the dashboard.

Which credential to use

API Keys explains how to create each one and how a personal key picks its project.

Check your credential

GET /v1/me describes the credential making the request, so it is the quickest way to confirm a key works and see what it can reach.
A personal API key answers like this:
GET /v1/projects lists the projects the credential can act on, with the id to send in X-Roark-Project-Id.

Security best practices

Secure Storage

Store API keys securely in environment variables or a secret manager

Regular Rotation

Periodically rotate your API keys to maintain security

Need an API key?

Generate API Key

Follow our guide to generate your API key and start making authenticated requests