JSON:API
v1
stable
Retrieve a aPI specification
Retrieve one aPI specification visible to the authenticated service account.
GET
/api/json/v1/api_specs/{id}
Access and behavior
- Required scope
- api_read
- Authentication
- Bearer token
- Idempotency
- not-applicable
- Operation ID
- retrieveApiSpecification
Request headers
| Header | Presence | Description |
|---|---|---|
| Authorization | Required | Short-lived service-account bearer token. |
| Accept | Required | JSON:API response media type. |
Parameters
id
path · Required
string
No description provided.
include
query · Optional
string
Relationship paths to include in the response
fields
query · Optional
object
Limits the response fields to only those listed for each type
Success response
200
Success
- Media type
- application/vnd.api+json
- Schema
- object
Errors and retries
Keep x-request-id
from failed responses. Retry only rows marked retryable, and obey
Retry-After
when present.
| Status | Code | Recovery | Meaning |
|---|---|---|---|
| 401 | unauthorized | Do not retry unchanged | A valid bearer token is required. |
| 403 | forbidden | Do not retry unchanged | The service account lacks the required scope or object access. |
| 429 | rate_limited | Retry after guidance | The request exceeded its rate window; wait for Retry-After. |
| 404 | not_found | Do not retry unchanged | The resource was not found or is not visible to the run-as member. |