Skip to content

API Response

Most API endpoints return responses in a standardized JSON format, no matter what Accept header is passed in the API request. This ensures consistency across the entire API and makes it easier to handle responses in your application.

codeintegerRequired

Response code

messagestringRequired

Response message

dataobject | array

Response data

paginationobject

Pagination information

page_sizeintegerRequired

Page size

pageintegerRequired

Current page

total_itemsinteger

Total items

When an API request is successful:

  • HTTP Status Code: Usually 200 OK, can be 201 Created for endpoints that create resources
  • code: Always 0 for successful responses
  • message: Always OK for successful responses
  • data: Contains the actual response data, structure varies by endpoint

When an API request fails:

  • HTTP Status Code: Varies based on error type (4xx or 5xx)
  • code: Non-zero error code (see response codes table below)
  • message: Human-readable error description
CodeDescription
0Success
1Internal error
2Route not found
4Authentication method not allowed
5Resource not found
6One of our backend services is unavailable
11Too many requests
1000Invalid parameters
1001Invalid JSON body payload
1002Invalid upload payload
2000Unauthenticated
2001Invalid auth header
2002Invalid token format
2100Invalid OAuth code
2101Invalid OAuth state
2200Unauthorized
2201Unauthorized, missing required token scope
2202Unauthorized, missing required organization member scope
3000User not found
3200Notification not found
3201Notification already read
3500Organization not found
3501Organization slug already used
3502Organization exceeds limit
3600Organization member not found
3601Organization member already exists
4000Token not found
5000Project not found
5001Project already used
5002Unacceptable project slug
5003Project locked
5100Project keyword not found
5101Project keyword already exists
5102Project keyword exceeds limit
5200Project channel not found
5201Project channel already exists
5202Project channel exceeds limit
5300Project version not found
5301Project version already exists
5400Invalid project dependency