Skip to main content
Sign-up & auth·HTTP 401·API, CLI

API token expired

API_TOKEN_EXPIRED

This API token is past its expiration date.

What this means​

Tokens carry an explicit TTL set at creation. This token's TTL has elapsed.

How to fix it​

Create a new token under Settings → API Tokens, or run csph login to mint a fresh CLI session.

How it appears in the response​

ComputeSphere returns errors as RFC 7807 Problem Details. The type field is the docs URL for this page — switch on code in your client.

{
"type": "https://docs.computesphere.com/errors/API_TOKEN_EXPIRED",
"title": "API token expired",
"status": 401,
"code": "API_TOKEN_EXPIRED",
"detail": "This API token is past its expiration date.",
"instance": "/v2/…",
"request_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"trace_id": null
}

The Content-Type header is application/problem+json. On field-level validation errors a non-empty errors[] array also appears, each entry carrying its own docs_url for the offending field.