curl --request POST \
--url https://api.example.com/v1/contacts/:id/notes \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"content": "<string>"
}
'{
"data": {
"id": "<string>",
"title": "<string>",
"content": "<string>",
"created_date": "<string>"
}
}Create a note attached to a specific contact
curl --request POST \
--url https://api.example.com/v1/contacts/:id/notes \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"content": "<string>"
}
'{
"data": {
"id": "<string>",
"title": "<string>",
"content": "<string>",
"created_date": "<string>"
}
}Authorization: Bearer wbk_your_api_key_here
Content-Type: application/json
curl -X POST https://data.leadlex.com/functions/v1/api-gateway/v1/contacts/123e4567-e89b-12d3-a456-426614174000/notes \
-H "Authorization: Bearer wbk_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{ "title": "Meeting notes", "content": "Discussed partnership opportunities" }'
{
"data": {
"id": "note-001",
"title": "Meeting notes",
"content": "Discussed partnership opportunities",
"created_date": "2026-03-06T10:00:00Z"
}
}
| Status | Code | Description |
|---|---|---|
| 400 | validation_error | Missing title |
| 404 | not_found | Contact not found |
| 403 | insufficient_permissions | Missing contacts:write permission |