Skip to main content
Returns all CTA form submissions collected across every video in the specified domain, sorted from newest to oldest.
This endpoint aggregates leads from all videos in the domain. To retrieve leads for a single video, use GET /v1/videos/:id/leads.

Endpoint

GET /v1/domains/:domain_id/leads

Authentication

Authorization
string
required
Bearer token. Pass your API key: Authorization: Bearer <api_key>

Path parameters

domain_id
number
required
The numeric ID of the domain. Retrieve domain IDs from GET /v1/domains.

Response

data
object
required

Error responses

StatusCondition
400 Bad Requestdomain_id is not a valid number.
404 Not FoundDomain does not exist or does not belong to your account.

Example

curl --request GET \
  --url https://api.demomatic.tech/v1/domains/45/leads \
  --header "Authorization: Bearer YOUR_API_KEY"

Response

200
{
  "data": {
    "leads": [
      {
        "id": 101,
        "video_id": 7,
        "response_data": {
          "name": "Bob Jones",
          "email": "bob@example.com",
          "company": "Widgets Inc"
        },
        "submitted_at": "2024-01-20T14:22:00.000Z",
        "internal_name": "Feature Demo - Jan 2024"
      }
    ]
  }
}