Leads
People who called, chatted or filled in a form. Reading needs leads:read, creating needs leads:write (plus outbound:write to request an AI callback).
Endpoints
Your leads, newest first.
Query parameters
phone_numberstringOptionalLeads with this phone number, in any common US format.
Up to 32 characters
emailstring (email)OptionalUp to 255 characters
sincestring (date-time)OptionalLeads created at or after this time (ISO 8601).
untilstring (date-time)OptionalLeads created before this time (ISO 8601).
per_pageintegerOptionalHow many items per page, 1 to 100.
Minimum 1 · Maximum 100
cursorstring | nullOptionalThe
meta.next_cursor(ormeta.prev_cursor) of the previous page.Up to 1024 characters
Returns
Paginated set of LeadResource
dataarray of objectsRequiredlinksobjectRequiredmetaobjectRequired
Responses
- 200Paginated set of
LeadResource - 401The API key is missing, invalid, expired or revoked.
- 403The key does not have the
leads:readscope. - 422Validation error
- 429Too many requests for this key. Wait for the
Retry-Afterseconds.
curl https://vocenya.com/api/public/v1/leads \
-H "Authorization: Bearer $VOCENYA_API_KEY"{
"data": [
{
"id": 1,
"livemode": true,
"name": "Maria Rivera",
"phone_number": "+15125550123",
"email": "[email protected]",
"reason": "string",
"urgency": "high",
"details": {},
"custom_fields": {},
"source": "api",
"call_id": 1,
"chat_id": 1,
"outbound_call_id": 1,
"created_at": "2026-10-02T14:03:11+00:00"
}
],
"links": {
"first": "string",
"last": "string",
"prev": "string",
"next": "string"
},
"meta": {
"path": "string",
"per_page": 1,
"next_cursor": "string",
"prev_cursor": "string"
}
}Add a lead from your own system, for example a form on another site. It shows up in the portal and is pushed to your CRM like any other lead.
Send callback to have the AI call the person back straight away (speed-to-lead). The key then
also needs the outbound:write scope. It needs outbound calling switched on, an active Pro plan and an AI receptionist, and is not available
in HIPAA mode. The call still follows calling hours, Do Not Call lists and daily limits; the
queued call is returned as callback.
Request body
namestring | nullOptionalUp to 255 characters
phone_numberstring | nullOptionalA US phone number in any common format. Needed for a callback.
Up to 32 characters
emailstring (email) | nullOptionalUp to 255 characters
reasonstringRequiredWhy they got in touch.
Up to 2000 characters
urgencystring | nullOptionalUp to 50 characters
detailsarray of strings | nullOptionalAny extra fields you want to keep with the lead (up to 50 keys).
Up to 50 items
callbackobjectOptionalAsk the AI to call the person back now (speed-to-lead). Only send this when the person agreed to an AI call:
consent_textmust be the exact wording they agreed to. Needs theoutbound:writescope as well asleads:write.
Returns
The lead, and the AI callback when one was requested.
dataobjectRequiredcallbackobject | nullRequired
Responses
- 201The lead, and the AI callback when one was requested.
- 401The API key is missing, invalid, expired or revoked.
- 403A
callbackwas sent but the key does not have theoutbound:writescope (missing_scope). - 422Validation failed, or a callback was requested but cannot be made (
speed_to_lead_unavailable,invalid_number). - 429Too many requests for this key. Wait for the
Retry-Afterseconds.
curl -X POST https://vocenya.com/api/public/v1/leads \
-H "Authorization: Bearer $VOCENYA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Maria Rivera",
"email": "[email protected]",
"reason": "Wants a quote for a water heater replacement",
"urgency": "high",
"callback": {
"consent_text": "I agree to receive an automated AI phone call from Rivera Plumbing about my request."
}
}'{
"data": {
"id": 1,
"livemode": true,
"name": "Maria Rivera",
"phone_number": "+15125550123",
"email": "[email protected]",
"reason": "string",
"urgency": "high",
"details": {},
"custom_fields": {},
"source": "api",
"call_id": 1,
"chat_id": 1,
"outbound_call_id": 1,
"created_at": "2026-10-02T14:03:11+00:00"
},
"callback": {
"id": 1,
"livemode": true,
"source": "speed_to_lead",
"purpose": "marketing",
"status": "queued",
"contact_name": "Maria Rivera",
"phone_number": "+15125550123",
"blocked_reason": "string",
"blocked_reason_message": "string",
"scheduled_for": "string",
"attempts": 1,
"answered_at": "2026-10-02T14:03:11+00:00",
"answered_by": "human",
"voicemail_left_at": "2026-10-02T14:03:11+00:00",
"ended_at": "2026-10-02T14:03:11+00:00",
"duration_seconds": 1,
"summary": "string",
"transcript": [
{
"role": "string",
"text": "string"
}
],
"created_at": "2026-10-02T14:03:11+00:00"
}
}Path parameters
leadintegerRequiredThe lead id.
Returns
LeadResource
dataobjectRequired
Responses
- 200
LeadResource - 401The API key is missing, invalid, expired or revoked.
- 403The key does not have the
leads:readscope. - 404No record with that id belongs to your account.
- 429Too many requests for this key. Wait for the
Retry-Afterseconds.
curl https://vocenya.com/api/public/v1/leads/311 \
-H "Authorization: Bearer $VOCENYA_API_KEY"{
"data": {
"id": 1,
"livemode": true,
"name": "Maria Rivera",
"phone_number": "+15125550123",
"email": "[email protected]",
"reason": "string",
"urgency": "high",
"details": {},
"custom_fields": {},
"source": "api",
"call_id": 1,
"chat_id": 1,
"outbound_call_id": 1,
"created_at": "2026-10-02T14:03:11+00:00"
}
}