Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Understanding and handling API errors
{ "error": "error_code", "message": "Human readable message", "details": {} }
try { const response = await fetch('/api/v1/leads'); if (!response.ok) { const error = await response.json(); console.error(error.message); } } catch (error) { console.error('Network error:', error); }