Errors
lead_note_not_found
Note not found.
| HTTP status | Type | Code |
|---|---|---|
| 404 | not_found_error | lead_note_not_found |
What it means
No note with this id exists on the lead, or it was deleted. List the lead's notes with GET /leads/{leadId}/notes.
How to handle it
Check the ID in the path. It may be wrong, deleted, or belong to another workspace; the API answers 404 rather than revealing other workspaces’ data.
Example response
{
"detail": "Note not found.",
"error": {
"type": "not_found_error",
"code": "lead_note_not_found",
"message": "Note not found.",
"param": null,
"docUrl": "https://docs.callmitra.ai/errors/lead_note_not_found",
"requestId": "req_3f9c2a7d1b8e4c6a9f0e2d4b6a8c0e1f"
}
}Branch on error.code; it never changes once published. The message text can change. See Errors for the envelope.
Returned by
DELETE /api/v1/leads/{lead_id}/notes/{note_id}— Delete a notePOST /api/v1/leads/{lead_id}/notes/{note_id}/pin— Pin a noteDELETE /api/v1/leads/{lead_id}/notes/{note_id}/pin— Unpin a notePATCH /api/v1/leads/{lead_id}/notes/{note_id}— Edit a note