curl --request GET \ --url https://api.attent.app/v1/leads/{leadId}/messages \ --header 'x-api-key: <api-key>'
Copy
{ "messages": [ { "content": { "text": "Hello, how can I help you?" }, "createdAt": "2024-05-17T21:09:13Z", "owner": "user" }, { "content": { "text": "I would like to schedule a meeting." }, "createdAt": "2024-05-17T21:09:13Z", "owner": "lead" } ]}
Leads
Get messages
Fetches messages sent to and received from a lead
GET
/
leads
/
{leadId}
/
messages
cURL
Copy
curl --request GET \ --url https://api.attent.app/v1/leads/{leadId}/messages \ --header 'x-api-key: <api-key>'
Copy
{ "messages": [ { "content": { "text": "Hello, how can I help you?" }, "createdAt": "2024-05-17T21:09:13Z", "owner": "user" }, { "content": { "text": "I would like to schedule a meeting." }, "createdAt": "2024-05-17T21:09:13Z", "owner": "lead" } ]}