Skip to main content

Authorization and API keys

Each project has API keys used to perform privileged operations, for example deleting an identity. To create an API key head over to the Ory Console API key page.

tip

You can use API keys to call APIs from the command line or through scripts. Ory API keys are always prefixed with ory_apikey_ (or ory_pat_), which makes it easy to identify them when analyzing code.

Passing the API key is done via the Authorization header:

GET /admin/identities HTTP/1.1
Host: {project.slug}.projects.oryapis.com
Accept: application/json
Authorization: Bearer {api-key}