Errors

Interpret gospace API error responses.

gospace returns structured error objects with an HTTP status code and machine-readable code.

{
  "success": false,
  "error": {
    "code": "validation_failed",
    "message": "payload.horizon must be an ISO 8601 duration",
    "details": [
      {
        "path": "payload.horizon",
        "message": "Expected ISO 8601 duration"
      }
    ],
    "request_id": "req_01J0X0M7KNG7KQZ4XQY4J6V6P4"
  }
}

Common codes

CodeDescription
unauthorisedMissing or invalid credentials. Refresh your token or verify scopes.
forbiddenAuthenticated but lacking permission for the workspace or resource.
validation_failedRequest body or query string did not satisfy schema validation. Details array explains the failure.
resource_not_foundThe resource does not exist or is outside the workspace scope.
rate_limitedRequests exceeded the plan’s quota. Respect Retry-After.
internal_errorUnexpected server error. Retry with backoff and contact support if persistent.

Include the request_id when contacting support@gospace.ai.