Response Structure
Every successful response includes a top-leveldata field containing either a single resource object or an array of resource objects. Each resource object comprises:
type: Identifies the resource category (e.g.,files,tasks)id: Unique identifier for the resourceattributes: Object containing the resource’s core datarelationships(optional): Defines connections to other resourceslinks(optional): Provides related URLsmeta(optional): Contains supplementary information
Example
Error Handling
The API uses standard HTTP status codes to indicate request outcomes:2xx: Success4xx: Client-side errors (e.g., missing parameters, failed actions)5xx: Server-side errors (rare)
4xx errors, the response includes a JSON:API-compliant errors array. Each error object provides detailed information through fields like detail, status, and title: