Skip to main content
POST
Count Threads

Body

application/json

Payload for counting threads.

metadata
Metadata · object

Thread metadata to filter on.

exclude_metadata
Exclude Metadata · object

Exclude threads whose metadata contains this object, or any object in this list. Uses the same matching as metadata; threads missing the keys are not excluded.

created_after
string<date-time>

Only include threads created at or after this time (ISO 8601). Timestamps without a timezone are treated as UTC.

created_before
string<date-time>

Only include threads created before this time (ISO 8601). Timestamps without a timezone are treated as UTC.

state_updated_after
string<date-time>

Only include threads whose state last changed at or after this time (ISO 8601). Timestamps without a timezone are treated as UTC.

state_updated_before
string<date-time>

Only include threads whose state last changed before this time (ISO 8601). Timestamps without a timezone are treated as UTC.

values
Values · object

State values to filter on.

status
enum<string>

Thread status to filter on.

Available options:
idle,
busy,
interrupted,
error

Response

Success

The response is of type integer.