Errors
Error code api_key_rotated (HTTP 401)
What Synq's `api_key_rotated` error code means, when the API answers HTTP 401 Unauthorized with it, and how to fix it.
This API key was rotated, and its overlap has ended: the key that replaced it works.
What to do
Use the key the rotation made, which the detail names by its id and prefix; it was shown once to whoever rotated this one. The old key cannot be used again.
| Field | Value |
|---|---|
code | api_key_rotated |
status | 401 Unauthorized |
title | API key rotated |
Synq's APIs answer errors with a problem document (RFC 9457, application/problem+json). Its type is the address of this page, and its code is api_key_rotated. Branch on code, never on title or detail: a code never changes once it ships, while the words may.
{
"type": "…/errors/api_key_rotated",
"title": "API key rotated",
"status": 401,
"code": "api_key_rotated"
}See every error code. Still stuck? Support says where to write, what to send and where Synq's status page is.