Skip to content
The Chat Archive

API reference

Public, read-only access to approved conversations, models, topics and dataset releases, plus authenticated contribution endpoints. All read endpoints are rate limited per IP. Unpublished content is never returned. Contributions are never auto-published: they enter moderation (or are stored as private drafts).

Read endpoints are anonymous and rate-limited per IP. Write endpoints need a signed-in session (same-origin) or a personal API token (Authorization: Bearer oc_…) with the submit scope.

get/api/conversations

List or search approved conversations

qqueryKeyword query (prompt and response text)
modequerykeyword | semantic
providerqueryProvider slug
modelqueryModel slug
tagqueryTopic slug
languagequeryISO 639-1 code
sourcequeryuser_contributed | external_dataset
datasetqueryExternal dataset slug
minTurnsqueryMinimum user turns
maxTurnsqueryMaximum user turns
minScorequeryMinimum community score
fromqueryPublished on/after (YYYY-MM-DD)
toqueryPublished on/before (YYYY-MM-DD)
correctionsqueryOnly conversations where the user corrected the model
evaluatedqueryOnly with verified evaluations
sortqueryrecent | top | longest | relevance
cursorqueryOpaque cursor from next_cursor
limitquery1–50

post/api/conversations

Submit a conversation for moderation(auth required)

get/api/search

Alias of GET /api/conversations

get/api/conversations/{id}

Get one approved conversation (public export schema)

idpathStable conversation id (ULID)

delete/api/conversations/{id}

Remove your own conversation (adds it to the suppression registry)(auth required)

idpathStable conversation id (ULID)

get/api/conversations/{id}/download

Download one conversation as JSON

idpathStable conversation id (ULID)

post/api/contributions/import

Import an export file or one conversation as PRIVATE DRAFTS(auth required)

Accepts {filename, content} (ChatGPT export, Claude export, OpenAI-style messages JSON/JSONL, The Chat Archive records) or {conversation}. Drafts are never public until individually reviewed and consented in the web UI or via POST /api/drafts/{id}.

get/api/models

Providers and models with conversation counts

get/api/topics

Topics with conversation counts

get/api/datasets

Published releases and the external dataset catalog

get/api/datasets/{version}

Release manifest (partitions, files, checksums, methodology)

versionpath

get/api/datasets/{version}/files/{path}

Download a release file (JSONL.gz / Parquet / manifest / SHA256SUMS)

versionpath
pathpath

get/api/users/{username}

Public contributor profile

usernamepath

post/api/reports

Report a conversation (privacy, inaccurate metadata, harmful content, takedown)

No sign-in required, so data subjects can request removal.