# Authentication

Source: https://pdfparse.net/docs/authentication

Authenticate all protected REST API requests with a bearer API key.



## Header

Send your API key using the `Authorization` header:

```http
Authorization: Bearer <api_key>
```

## Request Example

```bash
curl -X GET "https://api.pdfparse.net/v1/tables" \
  -H "Authorization: Bearer ${PDFPARSE_API_KEY}" \
  -H "Content-Type: application/json"
```

## Principal Types

* Project-scoped user keys can access the active project's tables, rows, documents, and jobs.
* Agent keys are scope-checked and may be route-restricted.

## Error Signals

* `401` for missing/invalid keys.
* `403` for insufficient scope/permission.

