PaydayAPI
Get started

Authentication

Every call carries an API key in a header.

Every endpoint except the OpenAPI spec needs a key. Send it one of two ways:

curl -H "Authorization: Bearer pd_YOUR_KEY" https://payday.direct/api/v1/stats
curl -H "X-API-Key: pd_YOUR_KEY" https://payday.direct/api/v1/stats

Keeping a key safe

  • Call the API from your server or bot. Anything a browser loads, its user can read.
  • Payday keeps only a SHA-256 fingerprint of each key, so nobody at Payday can read it back. It is shown to you once.
  • Revoke a key the moment it may have leaked, from API keys when signed in, or from anywhere by sending the key itself:
curl -X DELETE -H "Authorization: Bearer pd_YOUR_KEY" https://payday.direct/api/v1/keys/self

A revoked key stops working everywhere within 15 seconds.

Two kinds of key

Read keyLaunch key
Sign-inNoneSigned in with X
Reads dataYesYes
Launches coinsNoYes, when made with launching switched on
How many3 new a day per address5 active, 10 new a day per account
Shared allowanceAll keys from one address share 1,200 requests a minute600 a minute each
ExpiresAfter 90 days unusedNo
Listed on API keysNo, keep it safeYes, with usage and Revoke

Launching cannot be switched on later. Make a new key instead.