Skip to content

Create lead

POST
/api/v1/leads/
curl --request POST \
--url https://app.ayna.com/api/v1/leads/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "email": "[email protected]", "phone": "example", "company": "example", "website_url": "example", "source": "network", "source_detail": "example", "channel": "in_person", "notes": "example", "preferred_date": "2026-04-15", "preferred_timing_flexible": false, "service_address": "example", "next_action_at": "2026-04-15T12:00:00Z", "requested_service_id": "example" }'

Create a new lead. Leads always start in the “new” status.

Media typeapplication/json
LeadCreateRequest
object
name
required
Name
string
>= 1 characters <= 200 characters
email
Any of:
string format: email
phone
Any of:
string
<= 30 characters
company
Any of:
string
<= 200 characters
website_url
Any of:
string
source
Source

Network, search, referral, inbound, event

string
default: network
source_detail
Any of:
string
<= 200 characters
channel
Channel

In_person, call, text, email, dm

string
default: in_person
notes
Any of:
string
preferred_date
Any of:
string format: date
preferred_timing_flexible
Preferred Timing Flexible
boolean
service_address
Any of:
string
next_action_at
Any of:
string format: date-time
requested_service_id
Any of:
string

Created

Media typeapplication/json
Response
object
key
additional properties
any

Example generated

{}