API keys

Delete key

Delete a key; it stops authenticating at once. Session only.

DELETE/v1/api-keys/{id}Session

Authorization

The browser session cookie gpu_router_session only. Bearer keys are not accepted here.

Path parameters

idstringrequired

Responses

204

The key is deleted: it stops authenticating at once and no longer appears in the list. Deleting it again is 404.

401application/json

UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.

UNAUTHENTICATED
403application/json

CSRF_ORIGIN_MISMATCH: the Origin header does not match the public URL.

CSRF_ORIGIN_MISMATCH
404application/json

API_KEY_NOT_FOUND: no key with this id belongs to the signed-in user.

API_KEY_NOT_FOUND
429application/json

RATE_LIMITED (retryable): the signed-in user made more than GPU_ROUTER_RATE_PER_MINUTE mutating requests in the last minute. Nothing was changed.

RATE_LIMITED
500application/json

Unexpected failure: INTERNAL_ERROR.

INTERNAL_ERROR
502application/json

AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).

AUTH_PROVIDER_REJECTED
503application/json

AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).

AUTH_NOT_CONFIGUREDAUTH_PROVIDER_UNAVAILABLE