> ## Documentation Index
> Fetch the complete documentation index at: https://docs.prophia.com/llms.txt
> Use this file to discover all available pages before exploring further.

# API v1 (deprecated)

> [!WARNING]
>
> API v1 is deprecated. It still works, but it won't get new features. Build new integrations on [API v2](https://docs.prophia.com/api-reference/v2/introduction.md), and plan to move existing ones.

## Base URL

```
https://api.prophia.com/rest/v1
```

## Authentication

Send your API key in the `X-API-Key` header. See [Authentication](https://docs.prophia.com/developers/authentication.md) for key types.

```bash theme={null}
curl https://api.prophia.com/rest/v1/accounts \
  -H "X-API-Key: <your-api-key>"
```

v1 also accepts the key as an `api_key` query parameter. Avoid it, because URLs end up in logs.

## Looking up records

* **Path IDs** take the Prophia ID or your own custom ID. A custom ID is looked up in the account your API key belongs to.
* **The account endpoints** take an optional `account_id`, which can be the Prophia ID or the account's API name. Leave it out to use your key's account.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.