curl --request GET \
--url https://api.getenso.ai/entities/all \
--header 'Authorization: Bearer <token>'{
"status": "success",
"message": "Success",
"data": [
{
"id": "ent_123",
"entityFor": "customer",
"legalName": "Acme Inc",
"alias": "acme",
"email": [
"billing@acme.test"
],
"phoneNumber": "+1-415-555-0100",
"Organisation": {
"id": "org_123",
"name": "Acme Org"
},
"Customer": {
"id": "cus_123",
"name": "Acme Customer"
},
"Addresses": [
{
"id": "addr_123",
"line1": "123 Market St",
"city": "San Francisco",
"State": {
"id": "st_123",
"name": "California",
"Country": {
"id": "ct_123",
"name": "United States"
}
}
}
]
}
]
}Get entities filtered by type, with optional keyword search on legal name or alias.
curl --request GET \
--url https://api.getenso.ai/entities/all \
--header 'Authorization: Bearer <token>'{
"status": "success",
"message": "Success",
"data": [
{
"id": "ent_123",
"entityFor": "customer",
"legalName": "Acme Inc",
"alias": "acme",
"email": [
"billing@acme.test"
],
"phoneNumber": "+1-415-555-0100",
"Organisation": {
"id": "org_123",
"name": "Acme Org"
},
"Customer": {
"id": "cus_123",
"name": "Acme Customer"
},
"Addresses": [
{
"id": "addr_123",
"line1": "123 Market St",
"city": "San Francisco",
"State": {
"id": "st_123",
"name": "California",
"Country": {
"id": "ct_123",
"name": "United States"
}
}
}
]
}
]
}EntityService:getEntitiesByTypeJWT bearer token obtained from POST /auth/system-login using your client credentials.
Entity type to filter by (mapped to entityFor). Possible values: customer, organisation.
"customer"
Optional keyword to match legalName or alias.
"acme"
Page number (1-indexed)
Number of results per page
x <= 100Search/filter string