Query Records
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/crm/objects/{type_key}/records/query \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"filter": {},
"sort": [
{}
],
"page": 1,
"page_size": 50
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/crm/objects/{type_key}/records/query"
payload = {
"filter": {},
"sort": [{}],
"page": 1,
"page_size": 50
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({filter: {}, sort: [{}], page: 1, page_size: 50})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/crm/objects/{type_key}/records/query', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));CRM objects
Query Records
Filter and sort the records of an object type on any of its attributes. To fetch what changed since a
date, filter on updated_at with $gte.
POST
/
api
/
v1
/
crm
/
objects
/
{type_key}
/
records
/
query
Query Records
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/crm/objects/{type_key}/records/query \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"filter": {},
"sort": [
{}
],
"page": 1,
"page_size": 50
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/crm/objects/{type_key}/records/query"
payload = {
"filter": {},
"sort": [{}],
"page": 1,
"page_size": 50
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({filter: {}, sort: [{}], page: 1, page_size: 50})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/crm/objects/{type_key}/records/query', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Body
application/json
Response
200
OK
