Create an API key
Open Settings → API keys and create a key. The full key is shown once, at creation, and starts with pk_live_. Copy it into your secret store at that moment – Pepys will not display it again.
Each key belongs to a single Pepys account, and every request made with it is billed to that account's credit balance.
Send it as a bearer token
Pass the key in the Authorization header of every request. All endpoints are relative to https://pepys.co/api/v1.
curl https://pepys.co/api/v1/transcriptions \
-H "Authorization: Bearer pk_live_your_key"What usage draws on
Transcription is metered in credits: 1 credit = 1 minute, and credits never expire. Each accepted job debits the account's balance, so the same balance you top up in the app covers the API.
For unattended jobs, turn on auto-reload so a long-running integration does not pause at a zero balance. A request made with an empty balance fails with 402 – see errors and limits.
Connecting an AI agent instead
If the caller is an MCP client rather than your own code, you do not need a key at all: the hosted MCP connector authenticates with OAuth. A key is only needed for the local pepys-mcp server or direct REST calls.