cURL
curl --request PATCH \ --url https://app.journeybee.io/api/v1/leads/{leadId} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "company_name": "<string>", "email": "<string>", "phone_number": "<string>", "first_name": "<string>", "last_name": "<string>", "status": "<string>", "assignedUsers": [ {} ], "tags": [ {} ], "customFields": [ { "customFieldId": 123, "type": "<string>", "value": {} } ] }'
{ "id": 789, "uuid": "lead-uuid-789", "updated_at": "2024-01-15T14:30:00Z" }
Update lead information, status, assignments, and custom fields
curl -X PATCH "https://app.journeybee.io/api/v1/leads/{leadId}" \ -H "Authorization: Bearer your-api-key-uuid" \ -H "Content-Type: application/json" \ -d '{"status": "contacted", "tags": [1, 2, 3]}'
new
contacted
qualified
converted
lost
Show Custom Field Object
text
textarea
number
date
boolean
select
multi_select
curl -X PATCH "https://app.journeybee.io/api/v1/leads/789" \ -H "Authorization: Bearer jb_api_1234567890abcdef" \ -H "Content-Type: application/json" \ -d '{ "status": "qualified", "company_name": "TechCorp Solutions Inc", "phone_number": "+1-555-123-4567", "assignedUsers": [123, 456], "tags": [10, 11, 12], "customFields": [ { "customFieldId": 5, "type": "number", "value": { "number": 150000 } }, { "customFieldId": 6, "type": "select", "value": { "select": 3 } } ] }'
{ "error": "Invalid API key or insufficient permissions" }
{ "error": "Write access required for this operation" }
{ "error": "Lead not found or not accessible" }
write_access