Skip to content

Success responses

Standard 2xx response envelopes.

PropertyTypeRequiredDescription
statusnumberYes
messagestringYes
{
"status": 200,
"message": "Success"
}

A 200 response with data

PropertyTypeRequiredDescription
statusnumberYes
dataunknownYesResponse data.
messagestringYes
{
"status": 200,
"data": null,
"message": "Success"
}

A 201 response with data of an unspecified shape. For a typed variant, see `CreatedT`.

PropertyTypeRequiredDescription
statusnumberYes
dataunknownYesResponse data.
messagestringYes
{
"status": 201,
"data": null,
"message": "Success"
}

A 200 response with a paginated list of items

PropertyTypeRequiredDescription
statusnumberYes
itemsunknown[]YesItems from the current page.
paginationInfoPaginatedResultsInfoYesDetails about the paginated results.
messagestringYes
{
"status": 200,
"items": [],
"paginationInfo": {
"page": 1,
"pageSize": 20,
"totalItems": 100,
"totalPages": 5
},
"message": "Success"
}

A paginated list of items with a filter

PropertyTypeRequiredDescription
statusnumberYes
itemsunknown[]YesItems from the current page.
paginationInfoPaginatedResultsInfoYesDetails about the paginated results.
messagestringYes
sortInfoSortedResultsInfoYesThe sort order of the items.
filterInfoobjectYesThe filters applied to the response items.
{
"status": 200,
"items": [],
"paginationInfo": {
"page": 1,
"pageSize": 20,
"totalItems": 100,
"totalPages": 5
},
"message": "Success",
"sortInfo": {
"sortBy": "lastModifiedAt",
"customSortBy": "customField",
"sortOrder": "asc",
"errors": [
"string"
]
},
"filterInfo": {
"filters": null,
"errors": [
"string"
]
}
}

A paginated list of items with a sort order

PropertyTypeRequiredDescription
statusnumberYes
itemsunknown[]YesItems from the current page.
paginationInfoPaginatedResultsInfoYesDetails about the paginated results.
messagestringYes
sortInfoSortedResultsInfoYesThe sort order of the items.
{
"status": 200,
"items": [],
"paginationInfo": {
"page": 1,
"pageSize": 20,
"totalItems": 100,
"totalPages": 5
},
"message": "Success",
"sortInfo": {
"sortBy": "lastModifiedAt",
"customSortBy": "customField",
"sortOrder": "asc",
"errors": [
"string"
]
}
}