User ID (usr_...) whose threads should be listed.
Request body.
Optionalskip_welcome_message?: booleanWhen true, suppresses the automatic welcome message that is otherwise sent into the thread on creation. Defaults to false.
Attributes for the new thread. See ThreadCreateParams for the full set of accepted fields.
The newly created thread object.
List threads for a user
Returns all threads visible to the specified user. The authenticated caller must
have access to the target user's account; a 403 is returned otherwise.
Pass one or more agent IDs to narrow results to threads where at least one of
the listed agents is also a member — useful for displaying every thread a user
shares with a particular agent. Pass one or more filter objects to narrow
results by thread metadata key/value pairs. Both narrowings may be combined in
a single request.
Results are returned as a flat array; no cursor-based pagination is applied.
User ID (usr_...) whose threads should be listed.
Optionalparams: { agent?: string[]; filter?: { key: string; type: string; value: string }[] }Query parameters.
Optionalagent?: string[]Array of agent user IDs (usr_...). When provided, only threads where at least one of the listed agents is also a member are returned. Omit or pass an empty array to return all threads regardless of agent membership.
Optionalfilter?: { key: string; type: string; value: string }[]Array of metadata filter objects. Each filter matches threads whose metadata map contains the specified key/value pair. All filters must match (logical AND). Omit to return threads regardless of metadata.
Successful response
Create a thread for a user Creates a new thread owned by the specified user. The authenticated caller must have access to the target user's account; a 403 is returned otherwise. An automatic welcome message is sent into the thread upon creation unless
skip_welcome_messageis set totrue. The thread is immediately visible to the owning user and any members added at creation time.