Skip to main content
GET
/
leads
cURL
curl --request GET \
  --url https://api.attent.app/v1/leads \
  --header 'x-api-key: <api-key>'
{
  "leads": [
    {
      "id": "room_abc",
      "firstName": "John",
      "lastName": "Doe",
      "phone": "+15555555555",
      "email": "john.doe@example.com",
      "customerProfile": "My Customer Profile",
      "createdAt": "2026-05-01T12:00:00.000Z",
      "updatedAt": "2026-05-14T15:30:00.000Z",
      "lastActivityAt": "2026-05-14T15:30:00.000Z",
      "additionalInfo": {
        "key1": "value1"
      },
      "hasReplied": true,
      "isHot": true,
      "isQualified": false,
      "isUnsubscribed": false,
      "isAiOn": true,
      "tags": [
        {
          "id": "tag1",
          "name": "Tag 1",
          "condition": "Condition 1"
        }
      ],
      "summary": "Summary of the conversation.",
      "externalLeadId": "00Q5g00000ABCDEAA1",
      "deleted": false,
      "deletedAt": null
    }
  ],
  "nextToken": "eyJzZWFyY2hBZnRlciI6WyIyMDI2LTA1LTE0VDE1OjMwOjAwLjAwMFoiLCJyb29tX2FiYyJdfQ=="
}

Documentation Index

Fetch the complete documentation index at: https://docs.apten.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-api-key
string
header
required

Query Parameters

updatedSince
string<date-time>

ISO 8601 timestamp. Returns leads whose updatedAt is greater than or equal to this value.

createdSince
string<date-time>

ISO 8601 timestamp. Returns leads whose createdAt is greater than or equal to this value.

limit
integer
default:100

Maximum number of leads to return per page. Defaults to 100, max 1000.

Required range: 1 <= x <= 1000
nextToken
string

Opaque cursor returned by a prior response. Pass it back to fetch the next page.

Response

A page of leads ordered by the chosen timestamp ascending.

leads
object[]
nextToken
string | null

Cursor for the next page. null if there are no more results.