Conversations API

List all sessions in the authenticated project, newest activity first, with metadata for each.

GET/v1/conversations

Authentication

Requires a secret API key passed as a Bearer token (Authorization: Bearer carrier_sk_…).

Request body

FieldTypeDescription
limitquery, 1–100Page size. Default 20.
offsetqueryNumber of records to skip. Default 0.

Example request

bash
curl "https://api.carrieros.ai/v1/conversations?limit=20&offset=0" \
  -H "Authorization: Bearer carrier_sk_live_YOUR_KEY"

Response

FieldTypeDescription
conversations[].session_idstringThe session identifier.
conversations[].titlestringSession title.
conversations[].message_countnumberMessages in the session.
conversations[].last_activitystringISO timestamp of the latest message.
conversations[].created_atstringISO creation timestamp.
paginationobject{ total, limit, offset }.

Example response

json
{
  "success": true,
  "data": {
    "conversations": [
      {
        "session_id": "9c4f…",
        "title": "OAuth research",
        "message_count": 4,
        "last_activity": "2026-07-27T10:05:00.000Z",
        "created_at": "2026-07-27T10:00:00.000Z"
      }
    ],
    "pagination": { "total": 1, "limit": 20, "offset": 0 }
  }
}

Possible errors

CodeHTTPWhen it occurs
INVALID_API_KEY401The key is missing, malformed, revoked, or inactive.