WellMarked Docs
API referenceKeys

Rotate the API key you're calling with (old key invalidated immediately)

Replace the key used to authenticate this request with a fresh one that inherits its name, scopes and policy.

POST
/keys/rotate

Replace the key used to authenticate this request with a fresh one that inherits its name, scopes and policy.

The old key is revoked immediately, so the call that rotates a key is the last call that key can make. Capture the new value from this response before issuing another request — it is shown once and stored hashed.

Use this for routine rotation or after a suspected leak. To retire a different key, use DELETE /keys/{key_id}. Unmetered.

Authorization

BearerAuth
AuthorizationBearer <token>

Your API key, sent as Authorization: Bearer wm_.... Keys are wm_ followed by 40 hex characters. Create one with POST /register (free, no auth) or POST /keys.

In: header

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://api.wellmarked.io/keys/rotate" \  -H "Authorization: Bearer wm_your_api_key_here"
{  "api_key": "string",  "rotated_at": "2019-08-24T14:15:22Z"}