API keys
An API key is a bearer token that lets a system call the Pingdex API at https://api.pingdex.io or connect to the MCP server. You manage keys under Settings, API keys.
Each key is a personal access token. It acts as your user, in your account, and is limited to the scopes you give it. See API authentication for how to send it with requests.
Create a key
Section titled “Create a key”- Open Settings, then API keys, and confirm your password if asked.
- Choose Create API key.
- Enter a name that tells you where the key is used, for example
Website form ingest. The name can be up to 255 characters. - Select at least one scope.
- Create the key, then copy the token straight away.
Scopes
Section titled “Scopes”A key needs one or more scopes. A key without a scope is not allowed.
| Scope | Allows |
|---|---|
leads:ingest |
Submit leads. |
leads:read |
List and read leads and their attempts. |
providers:manage |
Create, read and update providers. |
campaigns:manage |
Create, read and update campaigns. |
leads:ingest does not allow reading leads. A system that submits leads and checks their outcomes needs both leads:ingest and leads:read, either on one key or on two.
Give each key the fewest scopes it needs. A form on a public site, for example, needs only leads:ingest. A key with providers:manage can change where your leads are sent, so keep it away from anything that does not need it.
Use the key
Section titled “Use the key”Send the token as a bearer token in the Authorization header.
curl https://api.pingdex.io/api/v1/leads \ --header "Authorization: Bearer $PINGDEX_API_KEY" \ --header "Accept: application/json"The same token works as the bearer token for the MCP server, with the scopes its tools need. The server URL is on the MCP settings page. See Connect a client.
Lifetime
Section titled “Lifetime”Each key shows its creation and expiry dates in the list. Keys last about one year by default. When a key expires, requests that use it fail with 401, and it no longer appears in the list. Create a replacement before the old key expires, switch your system over, then revoke the old key.
Revoke a key
Section titled “Revoke a key”Choose the bin icon next to the key and confirm. Requests that use the key stop working immediately. Revoking cannot be undone. There is no way to edit a key’s scopes, so to change them, create a new key and revoke the old one.
Good practice
Section titled “Good practice”- Use a separate key for each system, so you can revoke one without disturbing the others.
- Rotate keys on a schedule, for example every six months.
- Revoke a key straight away if you think it has been exposed.