myCRMSIM

myCRMSIM API 1.0

Get Started
​
No token

Get conversation state

GET

/api/v1/ext/conversations/{contact_id}/state

Read, starred, archived, AI paused and DND for one contact's conversation.

Auth: Bearer access_token
Scope: conversations.read

thread is the key the conversation lives under: the contact's phone number, or the email of an email-only iMessage contact. unread_count counts inbound messages since last_read_at; is_unread is the manual "mark as unread" flag; is_read is false when either applies — the same three the inbox shows. is_ai_paused is the contact's AI toggle (also on *Get contact* / *Update contact*), and dnd the same object as *Get DND*.

Parameters

NameInTypeRequiredDescription
contact_id
path
number
yes
The contact id.

Responses

StatusWhen
200
OK
401
Missing or invalid token
403
Missing scope
404
Contact does not exist or is not owned by the installer (same response for both)
Request
curl -X GET "https://backend.mysmsgateway.app/api/v1/ext/conversations/{contact_id}/state" \
  -H "Authorization: Bearer <ACCESS_TOKEN>"
Responses
OK
{
  "success": true,
  "data": {
    "contact_id": 1234,
    "workspace_id": 7,
    "thread": "+61412345678",
    "unread_count": 1,
    "is_read": false,
    "is_unread": false,
    "is_starred": true,
    "is_archived": false,
    "last_read_at": "2026-10-27T08:00:00.000Z",
    "archived_at": null,
    "is_ai_paused": false,
    "dnd": {
      "outbound": {
        "all": false,
        "channels": []
      },
      "inbound": {
        "all": false,
        "channels": []
      }
    }
  }
}
Try It!
This endpoint needs a bearer token. Open Settings (top right) and paste your access_token.
Path parameters

The contact id.

Request URL
GEThttps://backend.mysmsgateway.app/api/v1/ext/conversations/%7Bcontact_id%7D/state
Previous

« List conversation messages

Next

Update conversation state »