Skip to content

Authenticate to the API

Documentation Index

Fetch the complete documentation index at: https://docs.sourcery.ai/llms.txt

Use this file to discover all available pages before exploring further.

Create an API key and make your first request. You authenticate with a bearer token, and every endpoint needs a Team-plan account.

  1. Create a key

    Go to API Keys and create a key.

  2. Store it now

    The dashboard shows the key once, at creation. Copy it into your secret store right away. You can’t retrieve it later. If you lose it, create a new one.

  3. Make a request

    Pass the key in the Authorization header as a bearer token:

    Terminal window
    curl https://api.sourcery.ai/api/v1/security-issues \
    -H "Authorization: Bearer $SOURCERY_API_KEY"