/api/v1/object/data/{objectSlug}/lookupList records as slug and name pairs, for pickers.
List records as slug and name pairs, for pickers.
Returns one page of the object's records with only slug and name,
sorted by name. search matches the record name anywhere in the text and
ignores case. Only records the credential can see are returned.
Query parameters:
search— text to find in the record name. At most 100 characters.page— page number, from 1. Default1.limit— records per page. Default25. A value from101to200returns 100 records.
Scope: read.<object slug>, for example read.contacts.
Errors:
400— no active object has that slug.403— the credential lacksread.<object slug>.422— a query parameter is invalid, for examplelimitis above200.
Response 200:
{
"status": 200,
"message": "Records retrieved successfully",
"data": [
{ "slug": "9f2c4b7a1e03", "name": "Sara Ali" },
{ "slug": "4d7b1e9a2c65", "name": "Sarah Morgan" }
],
"pagination": {
"total": 2,
"page": 1,
"limit": 25,
"totalPages": 1,
"nextPage": null,
"prevPage": null
}
}
Send request
Use the documented inputs to call this endpoint directly.
Parameters
Values are applied to the request and the example on the right.
Responses
Successful response
{
"message": "string",
"data": [
"string"
],
"pagination": "string"
}Bad request
{
"status": 1,
"message": "string",
"code": "string",
"data": {}
}The HTTP status code of the response.
What went wrong. Several validation messages are joined with ", ".
A stable, machine-readable reason. Only some errors set it.
Extra detail about the error. Only some errors set it.
Unauthorized
{
"status": 1,
"message": "string",
"code": "string",
"data": {}
}The HTTP status code of the response.
What went wrong. Several validation messages are joined with ", ".
A stable, machine-readable reason. Only some errors set it.
Extra detail about the error. Only some errors set it.
Internal server error
{
"status": 1,
"message": "string",
"code": "string",
"data": {}
}The HTTP status code of the response.
What went wrong. Several validation messages are joined with ", ".
A stable, machine-readable reason. Only some errors set it.
Extra detail about the error. Only some errors set it.
Powered by heyo-docs