Authentication

Authentication

All API requests to Parsify require authentication via an API key. API keys are scoped to your organization and can be configured with granular permissions.

Getting an API Key

  1. Log in to the Parsify Dashboard
  2. Navigate to SettingsAPI Keys
  3. Click Create API Key
  4. Select the scopes your key needs (see below)
  5. Copy the key — it will only be shown once

Using Your API Key

Include your API key in the X-API-Key header with every request:

curl https://api.parsifyhq.com/api/v1/documents/ \
  -H "X-API-Key: YOUR_API_KEY"

Scopes

API keys can be created with specific scopes to limit access. When creating a key, select only the scopes required for your use case.

ScopeDescription
documents:readRead documents
documents:writeUpload documents
jobs:readRead extraction jobs
jobs:writeCreate and resubmit extraction jobs
migrations:readRead migrations, runs, and validations
migrations:writeCreate and update migrations, runs, and validations
validations:readRead validation reports
validations:writeCreate validation reports
providers:readRead provider information

Error Responses

If authentication fails, the API returns a 401 Unauthorized response:

{
  "detail": "Authentication credentials were not provided."
}

If your API key lacks the required scope for an endpoint, you will receive a 403 Forbidden response:

{
  "detail": "You do not have permission to perform this action."
}

Best Practices

  • Least privilege — Create keys with only the scopes you need.
  • Rotate regularly — Delete and recreate keys periodically.
  • Never expose keys in client-side code — API keys should only be used in server-side applications.
  • Use separate keys for different environments (development, staging, production).