Skip to main content
Every request carries your API key. Keys are issued on the console’s account page and belong to your account: they inherit its plan.

Get a key

1

Open your account page

Sign in to the console and click the account icon at the right of the top bar to reach console.periphery.exposed/account. API access needs the Plus plan; on Free the API section is locked and links to the pricing page. The page also shows when the key was last used; that date is updated at most once an hour.
2

Generate the key

Click Generate API key. The key is shown once, on that page only. Copy it into your secret store now; Periphery keeps only a hash and cannot show it again.

Send the key

Either header works. When both are present, Authorization is used. Send it over HTTPS only.

Plain HTTP is refused

http://api.periphery.exposed is not redirected to HTTPS: it answers 403 https_required, so a client sending its key in clear text finds out. If a key was ever sent over plain HTTP, rotate it.

Rotate a key

Click Rotate key on the account page, then Rotate now to confirm. A new key is issued and shown once, and the previous one stops working at once: there is no overlap period. Update every client right after rotating; until you do, they get 401 api_key_invalid.

Errors

A 401 carries a WWW-Authenticate header: Bearer realm="api.periphery.exposed" when the key is missing, with error="invalid_token" added when it is unknown. See Limits and errors for every code.

Keep it secret

A key gives whoever holds it your plan’s access, including email addresses and masked credential values. Do not commit it, put it in a URL, or share it between people; the terms forbid sharing keys. If a key leaks, rotate it.