apigetcontacts JSON request body list or single
POST /api/getcontacts returns contacts with merged contact meta.
Fields
keyYour API key.
idFetch one contact by id. When provided, pagination is not used.
code, email, manager, leadFilter the contact list by these fields.
searchSearches name, code, phone, email, address, and person.
page, stepstep defaults to 20 and is capped at 100.
orderby, orderAllowed order fields: id, name, code, phone, email, created_at, updated_at. Order is ASC or DESC.
Examples
{
"key": "YOUR_API_KEY",
"search": "example",
"page": 1,
"step": 20,
"orderby": "created_at",
"order": "DESC"
}
{
"key": "YOUR_API_KEY",
"id": 123
}
Response shape
{
"status": "ok",
"data": [
{
"id": 123,
"name": "Example UAB",
"code": "123456789",
"contact_meta": [
{ "field": "vat", "value": "LT123456789" }
],
"meta": {
"vat": "LT123456789"
},
"vat": "LT123456789"
}
],
"page": 1,
"pages": 1,
"count": 1
}
Use
/api/createcontact to create contacts and /api/editcontact to edit by id. Both support the same core fields and contact meta behavior.