Get a chat record

⚠️
Preview — this feature is being built; the design below is the spec.
GET https://app.syntic.ai/v1/compliance/chats/{chat_id}

Return one chat with every message in order, including tool calls and the ids of attached files.

For how this fits into a full workflow, see Compliance API.

Headers

HeaderRequiredValue
AuthorizationYesBearer <admin key>: an Admin API key (sk_admin_...) that carries the compliance:read scope (plus compliance:write for deletions and holds). Enterprise plans only. See Compliance API.
syntic-betaYes, while in previewcompliance-2026-12-01. Without it the call fails with 400 beta_required. See Versioning.

Path parameters

ParameterTypeDescription
chat_idstringStarts with chat_.

Response

200 OK, Content-Type: application/json

{
  "id": "chat_01JCV7V9X1Z3B5D7F9H1",
  "type": "chat_record",
  "user_id": "user_01J9Y0A2C4E6G8J0L2N4",
  "title": "Q3 supplier contract review",
  "product": "chat",
  "model": "Amara S1.2",
  "message_count": 14,
  "file_count": 2,
  "project_id": null,
  "created_at": "2026-10-14T09:00:00Z",
  "updated_at": "2026-10-14T09:42:00Z",
  "deleted_by_user_at": null,
  "messages": [
    {
      "role": "user",
      "created_at": "2026-10-14T09:00:00Z",
      "content": [
        {
          "type": "text",
          "text": "Summarise the termination clauses in the attached contract."
        },
        {
          "type": "file",
          "file_id": "cfile_01JCV8W0Y2A4C6E8G0J2"
        }
      ]
    },
    {
      "role": "assistant",
      "created_at": "2026-10-14T09:00:20Z",
      "content": [
        {
          "type": "text",
          "text": "There are three termination clauses: 11.2 (for convenience, 90 days' notice)…"
        }
      ]
    }
  ]
}
FieldTypeDescription
productstringchat (web and desktop) or mobile.
deleted_by_user_atstring or nullSet if the person deleted the chat. Records stay available here for the organization’s retention period unless a legal hold keeps them longer.
messagesarrayMessages with role, created_at and content blocks.

Examples

curl -sS "https://app.syntic.ai/v1/compliance/chats/chat_01JCV7V9X1Z3B5D7F9H1" \
  -H "Authorization: Bearer $SYNTIC_ADMIN_KEY" \
  -H "syntic-beta: compliance-2026-12-01"

Errors

Errors use the error envelope and carry a request_id. Codes specific to this operation:

StatustypecodeWhen
400invalid_request_errorbeta_requiredThe syntic-beta header is missing.
404not_found_errorchat_not_foundNo chat record with this id.
401authentication_errorinvalid_api_keyThe admin key is missing, unknown, revoked or expired.
403permission_erroradmin_key_requiredAn inference key was used.
403permission_errorscope_missingThe admin key lacks the compliance:read (or, for writes, compliance:write) scope.
429rate_limit_errorrate_limitedToo many requests; wait for Retry-After. See Rate-limit headers.
Was this page helpful?