Skip to main content
GET
/
api
/
v1
/
leads
/
{leadId}
/
message-drafts
Error
A valid request URL is required to generate request examples
{
  "ok": "<unknown>",
  "meta": {
    "requestId": "<string>",
    "serverTime": "2023-11-07T05:31:56Z"
  },
  "data": {
    "items": [
      {
        "id": "<string>",
        "dbId": 123,
        "leadId": "<string>",
        "contactId": "<string>",
        "contactName": "<string>",
        "contactCompany": "<string>",
        "contactTitle": "<string>",
        "contactLinkedInUrl": "<string>",
        "intent": "<string>",
        "callToAction": "<string>",
        "tone": "<string>",
        "length": "<string>",
        "prompt": "<string>",
        "message": "<string>",
        "aiModel": "<string>",
        "tokenUsage": {
          "prompt": 123,
          "completion": 123,
          "total": 123
        },
        "isSent": true,
        "sentAt": "2023-11-07T05:31:56Z",
        "createdByUserId": "<string>",
        "createdAt": "2023-11-07T05:31:56Z",
        "updatedAt": "2023-11-07T05:31:56Z"
      }
    ],
    "page": {
      "pageSize": 250,
      "nextCursor": "<string>",
      "totalCount": 1
    }
  }
}

Path Parameters

leadId
string
required
Minimum string length: 1

Query Parameters

contactId
string
required
Minimum string length: 1
cursor
string | null

Opaque pagination cursor

pageSize
integer
default:50
Required range: 1 <= x <= 500

Response

OK

ok
any
required
meta
object
required
data
object
required