For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
DiscordPlatform
DocumentationIntegrationsAPI referenceSDKsChangelog
DocumentationIntegrationsAPI referenceSDKsChangelog
  • API Reference
      • POSTList thread
  • Reference
    • Filters API Reference
LogoLogo
DiscordPlatform
API ReferenceThreads

List thread

POST
https://api.respan.ai/api/log_threads/
POST
/api/log_threads/
$curl -X POST https://api.respan.ai/api/log_threads/ \
> -H "Authorization: Bearer sk_live_xxxxx" \
> -H "Content-Type: application/json" \
> -d '{}'
1{
2 "count": 42,
3 "next": "https://api.respan.ai/api/log_threads/?page=2&page_size=100",
4 "previous": "https://api.respan.ai/api/log_threads/?page=1&page_size=100",
5 "results": [
6 {
7 "thread_identifier": "thread_9f8b7c6d5e4a3b2c1d0e",
8 "environment": "production",
9 "log_count": 128
10 }
11 ]
12}
Retrieve threads matching the specified filters with pagination.
Was this page helpful?
Previous

List customers

Next
Built with

Headers

AuthorizationstringRequired

Bearer token. Use Bearer YOUR_API_KEY.

Query parameters

pageintegerOptionalDefaults to 1
The page number to retrieve.
page_sizeintegerOptionalDefaults to 100
The number of items per page. Maximum is 1000.
environmentstringOptional
This is controlled by the API key. A prod API key creates prod threads, test key creates test threads.

Request

This endpoint expects an object.
filtersobjectOptional

Filter criteria. See Filters API Reference.

operatorenumOptionalDefaults to AND
Logical operator to combine filters.
Allowed values:

Response

Paginated list of threads.
countinteger
Total matching threads.
nextstring or null
Next page URL.
previousstring or null
Previous page URL.
resultslist of objects

Errors

401
Unauthorized Error