Create lead
POST
/api/v1/leads/
const url = 'https://app.ayna.com/api/v1/leads/';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"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"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
LeadCreateRequest
object
name
required
Name
string
source
Source
Network, search, referral, inbound, event
string
channel
Channel
In_person, call, text, email, dm
string
preferred_timing_flexible
Preferred Timing Flexible
boolean
Responses
Section titled “Responses”Created
Media typeapplication/json
Response
object
key
additional properties
any
Example generated
{}