Threads API — Agentuity Documentation

Threads API

Manage conversation threads for agent session state and user data

Manage conversation threads for agent session state and user data.

https://catalyst-usw.agentuity.cloud

Authentication

All requests require a Bearer token. Pass your SDK key in the Authorization header.

HeaderValue
AuthorizationBearer YOUR_SDK_KEY

You can find your SDK key in the Agentuity Console under your project settings.


List Threads

List conversation threads with optional filtering and pagination.

GET/thread
https://catalyst-usw.agentuity.cloud/thread

Parameters

query
NameTypeRequiredDescription
limitnumberNoMax results, default 10
offsetnumberNoPagination offset
sortstringNo'created' or 'updated'
directionstringNo'asc' or 'desc'
orgIdstringNoFilter by org
projectIdstringNoFilter by project
metadatastringNoJSON-serialized metadata filter

Response

Array of thread objects.

StatusDescription
200Threads returned
401Unauthorized — invalid or missing Bearer token

Response Fields

FieldTypeDescription
idstringthe thread id
created_atstringthe creation timestamp
updated_atstringthe last update timestamp
deletedbooleanwhether the thread is deleted
deleted_atstring | nullthe deletion timestamp
deleted_bystring | nullwho deleted the thread
org_idstringthe organization id
project_idstringthe project id
user_datastring | nullthe user data as JSON (optional)
metadataobject | nullunencrypted key-value metadata (optional)

Example

curl -X GET 'https://catalyst-usw.agentuity.cloud/thread?limit=10&sort=updated&direction=desc' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'

Get Thread

Get a specific thread by ID.

GET/thread/{id}
https://catalyst-usw.agentuity.cloud/thread/{id}

Parameters

path
NameTypeRequiredDescription
idstringYesThread ID

Response

Thread object.

StatusDescription
200Thread returned
401Unauthorized — invalid or missing Bearer token
404Thread not found

Example

curl -X GET 'https://catalyst-usw.agentuity.cloud/thread/thr_abc123' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'

Delete Thread

Delete a specific thread by ID.

DELETE/thread/{id}
https://catalyst-usw.agentuity.cloud/thread/{id}

Parameters

path
NameTypeRequiredDescription
idstringYesThread ID

Response

Empty response on success.

StatusDescription
204Thread deleted
401Unauthorized — invalid or missing Bearer token
404Thread not found

Example

curl -X DELETE 'https://catalyst-usw.agentuity.cloud/thread/thr_abc123' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'