customization

Custom States List Post

POST
Lists custom states.

Request

This endpoint expects an object.
cursor
stringOptional
The cursor to resume iteration from, otherwise if not provided, then iteration starts from the beginning.
is_final
booleanOptional
Whether only final states should be filtered.
limit
integerOptional
The maximum number of items.
name
list of stringsOptional
The list of state names.
ordinal
list of integersOptional
The list of state ordinals.
sort_by
list of stringsOptional
The list of fields to sort the items by and how to sort them.

Response

This endpoint returns an object
result
list of objects
The custom states.
cursor
stringOptional
The cursor to resume iteration from, otherwise if not provided, then iteration starts from the beginning.
POST
1curl -X POST https://api.devrev.ai/states.custom.list \
2 -H "Authorization: <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{}'
200Successful
1{
2 "result": [
3 {
4 "id": "id",
5 "created_date": "2023-01-01T12:00:00Z",
6 "display_id": "display_id",
7 "modified_date": "2023-01-01T12:00:00Z"
8 }
9 ],
10 "cursor": "cursor"
11}