List contacts
Search contacts (customers and vendors) by name, email or company.
GET https://cotlet.dev/api/v1/odoo/contacts
read
Returns contacts with their ID, name, email, phone and company. Use contact_id from each item for create_draft_invoice and create_sales_order. An empty result means no contact matches, which is the cue to call create_contact.
Parameters
| Name | Type | Description |
|---|---|---|
| query string | string | Text to match against name or email. |
| is_company boolean | boolean | true: only companies; false: only people. |
| limit integer | integer | 1 to 100. Default: 50. |
| offset integer | integer | Number of records to skip, for the next page. Default: 0. |
Request
curl https://cotlet.dev/api/v1/odoo/contacts \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("odoo", "list_contacts") const result = await cotlet.call('odoo', 'list_contacts'); cotlet call odoo list_contacts Example response
{
"items": [
{
"contact_id": 931,
"name": "Northwind Studio",
"email": "billing@northwind.example",
"phone": "+49 30 555 0142",
"is_company": true
}
],
"total": 1
}