Skip to main content
PATCH
Pause or resume many Xquik API keys in 1 request
Stop a runaway agent’s keys in 1 request, then resume them later. Xquik pauses or resumes each listed key that belongs to your account. It skips revoked, expired & unknown keys. It also skips other accounts’ keys, so a retry is safe.
Free. This endpoint does not consume credits.

Headers

Your signed-in dashboard session cookie, __Host-xquik_session. API keys and OAuth tokens get 403 session_required.
string
required
Must be https://dashboard.xquik.com, sent with Sec-Fetch-Site set to same-origin. The dashboard sends both.
string
required
Must be application/json.

Body

string[]
required
IDs of the keys to pause or resume, from 1 to 100. Get them from List API keys.
boolean
required
true pauses each key, so its calls get 403 api_key_paused. false resumes it. Its next call goes through. Pausing a paused key keeps its first pausedAt.

Response

200 OK

array
Your listed keys in their new state, newest first. Each has the fields of List API keys. A paused key has pausedAt. Unknown IDs never appear. Revoked keys, expired keys & other accounts’ keys never appear either.

400 Invalid input

ids was missing, empty, longer than 100, or held a value that is not a numeric ID. paused was missing or not true or false. Xquik changes nothing.

401 Unauthenticated

Missing, expired, or invalid dashboard session cookie.

429 Rate limited

Too many requests. Wait for the Retry-After header before retrying.
Pausing keeps each key & its settings. To stop a key for good, use Revoke API keys instead.Related. Update API Key · List API Keys · Revoke API Keys