Skip to content

AI Email Marketing

Conversations

Unibox threads: every message with one person, ours and theirs. Mailbox permissions apply as on screen: a key sees and answers only what its creator may. Replies (above) are the single inbound emails.

List conversations

GET/api/v1/conversations

Conversations, most recent reply first, with the Unibox filters.

Any API key, read-only included.

Parameters

NameTypeDescription
view query string A Unibox tab: all, unread, mine, waiting_us, waiting_them, due_today, gone_quiet, interested, meetings, follow_up, closed, archived. Default all (everything not closed).
status query string Lead status: new, interested, neutral, not_interested, meeting, follow_up, not_now, not_a_fit, won, lost.
state query string Where it stands: waiting_on_us, waiting_on_them, scheduled, closed.
tag query string Only conversations with this tag.
campaign_id query uuid Only this campaign.
mailbox_id query uuid Only this mailbox.
assignee_id query uuid Only conversations assigned to this member.
unread query boolean Only unread conversations.
q query string Search names, subjects, campaigns, mailboxes and message text, or a whole email address.
per_page query integer Up to 100. Default 25.

Errors

  • 401Missing or invalid key
  • 422Invalid input, or not ready; the body has message and an errors object, one entry per field
  • 429More than 120 requests a minute
Request
curl https://app.zicreach.com/api/v1/conversations \
  -H "Authorization: Bearer zk_your_key"
Response200
{
    "data": [
        {
            "id": "9d1c6a2e-4b7f-4e0a-9a51-2f8c3b6d7e10",
            "contact": "Jane Doe",
            "email": "jane@example.com",
            "subject": "Re: Quick question, Jane",
            "state": "waiting_on_us",
            "lead_status": "interested",
            "is_read": false,
            "tags": [
                "hot"
            ],
            "mailbox": {
                "id": "9d1c6a2f-8a3e-41c7-b2d4-6e5f0a9c1b22",
                "email": "sara@acme.io"
            },
            "campaign": {
                "id": "9d1c6a2f-8a3e-41c7-b2d4-6e5f0a9c1b22",
                "name": "Q4 founders"
            },
            "assignee": null,
            "archived": false,
            "their_last_message_at": "2026-09-24T10:31:00Z",
            "our_last_message_at": "2026-09-22T09:14:00Z"
        }
    ],
    "meta": {
        "current_page": 1,
        "last_page": 1,
        "total": 1
    }
}

Get a conversation

GET/api/v1/conversations/{id}

One conversation with every message in it, oldest first. sent_by on our messages is person, reply_agent (the AI Reply Agent sent it) or reply_agent_draft (a person sent its draft). Reading it here does not mark it read.

Any API key, read-only included.

Parameters

NameTypeDescription
idrequired path uuid Conversation id.

Errors

  • 401Missing or invalid key
  • 404Not found in this workspace
  • 422Invalid input, or not ready; the body has message and an errors object, one entry per field
  • 429More than 120 requests a minute
Request
curl https://app.zicreach.com/api/v1/conversations/9d1c6a2e-4b7f-4e0a-9a51-2f8c3b6d7e10 \
  -H "Authorization: Bearer zk_your_key"
Response200
{
    "data": {
        "id": "9d1c6a2e-4b7f-4e0a-9a51-2f8c3b6d7e10",
        "contact": "Jane Doe",
        "email": "jane@example.com",
        "subject": "Re: Quick question, Jane",
        "state": "waiting_on_us",
        "lead_status": "interested",
        "is_read": false,
        "tags": [
            "hot"
        ],
        "mailbox": {
            "id": "9d1c6a2f-8a3e-41c7-b2d4-6e5f0a9c1b22",
            "email": "sara@acme.io"
        },
        "campaign": {
            "id": "9d1c6a2f-8a3e-41c7-b2d4-6e5f0a9c1b22",
            "name": "Q4 founders"
        },
        "assignee": null,
        "archived": false,
        "their_last_message_at": "2026-09-24T10:31:00Z",
        "our_last_message_at": "2026-09-22T09:14:00Z",
        "can_reply": true,
        "messages": [
            {
                "id": "9d1c6a2e-4b7f-4e0a-9a51-2f8c3b6d7e10",
                "direction": "outbound",
                "from": "sara@acme.io",
                "to": "jane@example.com",
                "subject": "Quick question, Jane",
                "body": "Hi Jane, ...",
                "reply_type": null,
                "sent_by": "person",
                "reply_agent": null,
                "is_read": true,
                "received_at": "2026-09-22T09:14:00Z"
            },
            {
                "id": "9d1c6a2f-8a3e-41c7-b2d4-6e5f0a9c1b22",
                "direction": "inbound",
                "from": "jane@example.com",
                "to": "sara@acme.io",
                "subject": "Re: Quick question, Jane",
                "body": "This looks interesting. Can we talk on Thursday?",
                "reply_type": "interested",
                "sent_by": null,
                "reply_agent": null,
                "is_read": false,
                "received_at": "2026-09-24T10:31:00Z"
            }
        ]
    }
}

Reply in a conversation

POST/api/v1/conversations/{id}/reply

Sends a real email from the mailbox the person was contacted from, in the same thread, as the Unibox reply box does. Refused for suppressed addresses and paused mailboxes (422), and when the key may not send from that mailbox (403). The same send_token sends only once (409 the second time).

Needs a read and write API key.

Parameters

NameTypeDescription
idrequired path uuid Conversation id.

Body

NameTypeDescription
bodyrequired string The reply, plain text, up to 20000 characters.
send_token uuid Any UUID you choose, so a retried call never sends twice.

Errors

  • 401Missing or invalid key
  • 403Read-only key used for a change, or a key made by someone who is no longer an owner or admin
  • 404Not found in this workspace
  • 422Invalid input, or not ready; the body has message and an errors object, one entry per field
  • 429More than 120 requests a minute
Request
curl -X POST https://app.zicreach.com/api/v1/conversations/9d1c6a2e-4b7f-4e0a-9a51-2f8c3b6d7e10/reply \
  -H "Authorization: Bearer zk_your_key" \
  -H "Content-Type: application/json" \
  -d '{"body":"example","send_token":"example"}'
Response201
{
    "message": "Sent from sara@acme.io.",
    "data": {
        "conversation_id": "9d1c6a2e-4b7f-4e0a-9a51-2f8c3b6d7e10",
        "sent": true
    }
}