API reference
Rotate key
POST/v1/keys/rotateSwap your key for a new one. The old key stops working at once.
A JSON object.
keystringYour new key. It is in this response and nowhere else: we keep only a hash, so store it now.
key_prefixstringThe first characters of the new key, for identification.
planone offreeprobusinessThe new key's plan: the same as the old key's.
previous_key_prefixstringThe first characters of the key that just stopped working.
- Send the key you want to replace in
x-api-key, with no body. Use it when a key may have leaked, or to retire one on a schedule. - The old key stops working as soon as this succeeds, so update everything that uses it. If the response is lost on the way, the old key is already gone: sign in to your account on trackpin.co to reset the key again.
- The new key keeps the old key's plan, its subscription and today's usage.
- At most 5 rotations a day, counted across a key and the keys it was rotated into.
- Not metered. It shares the
/v1/usageper-minute ceiling of 60 calls a minute. - Keys issued through RapidAPI are managed in your RapidAPI dashboard and can't be rotated here.
- 401
missing api keyNo key sent.
- 401
invalid api keyUnknown or revoked key.
- 403
keys issued through RapidAPI are managed in your RapidAPI dashboardA RapidAPI key.
- 405
method not allowedNot a POST. The
Allowheader lists the methods it answers: POST and OPTIONS. - 409
this key was just rotated or revokedAnother rotation of the same key won the race. Use the key that one returned.
- 429
a key can be rotated at most 5 times a dayThe daily rotation limit is used up.
- 429
rate limit exceededMore than 60 calls a minute; wait
Retry-Afterseconds. The body addslimit,window_sandretry_after_s. - 500
internal errorSomething failed on our side. Check with
/v1/usagewhich key works before retrying. - 503
key rotation is unavailable right nowRotation is switched off or can't reach its database. Your key is unchanged.
- 503
temporarily unavailableOur database can't be reached right now. Retry after the number of seconds in the
Retry-Afterheader.
Rotating from this page would replace your key in the browser, so there's no console here. Reset a key from the usage page, which shows the new key once, or from your account if you bought it by card.
Early access.