Skip to main content
POST
Get all chat histories with filters

Authorizations

Authorization
string
header
required

An API key from your Devic console, sent as Authorization: Bearer <key>. An embedded front end sends a tenant-session token instead, so no API key reaches the browser, and an OAuth integration sends its access token. Missing, invalid or expired credentials get a 401. See Authentication.

Query Parameters

limit
integer<int32>
default:10

Conversations per page. Values above 100 are capped.

Required range: 1 <= x <= 100
offset
integer<int32>
default:0

Conversations to skip

Required range: x >= 0
omitContent
boolean
default:false

Send true to leave chatContent out and get only what describes each conversation.

Body

application/json

The filters to apply. {} for none.

Filters to narrow the conversations. Every field is optional and they combine with AND; send {} for no filter at all.

assistantSpecializationIdentifier
string

Only conversations of this assistant

Example:

"550e8400-e29b-41d4-a716-446655440000"

name
string

Only conversations with this title

Example:

"Solar Analysis Discussion"

archived
boolean

Archived conversations instead of the live ones

Example:

false

llm
string

Only conversations answered by this model

Example:

"gpt-4.1"

createdAfter
number

Created at or after this Unix timestamp in milliseconds

Example:

1609459200000

createdBefore
number

Created at or before this Unix timestamp in milliseconds

Example:

1640995200000

minInputTokens
number

At least this many input tokens

Example:

100

minOutputTokens
number

At least this many output tokens

Example:

50

tenantId
string

Only conversations of this tenant

Example:

"tenant_12345"

subtenantId
string

Only conversations of this end user inside the tenant. Matches the canonical metadata.subtenantId, so it works however the subtenant was originally supplied.

Example:

"user_67890"

metadata
object

Only conversations whose metadata matches these fields. Nested matching is supported.

Example:
tags
string[]

Only conversations carrying ANY of these tags

Example:

Response

A page of conversations. The status is 201 rather than 200 because the filters travel in the body of a POST; nothing is created.

A page of conversations.

histories
object[]
required

The conversations of this page, newest first

total
number
required

How many conversations match, ignoring pagination

Example:

42

offset
number
required

Offset this page was taken at

Example:

0

limit
number
required

Page size that was applied

Example:

10