List workplaces
Changed onReturns a list of workplaces.
get/workplaces
Request
- Base URLhttps://sandbox.checkhq.com
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
companystring
Return workplaces for this company ID.
limitinteger
Number of workplaces returned per page. The maximum value is 500.
idstring[]
Filter the list to the specified IDs. For more details, check out the Bulk Get Requests guide.
metadataobject
Return only results whose metadata contains every given key and value, for example metadata[external_id]=123. Pass keys using bracket notation. Multiple keys are combined with AND. Brackets must be URL-encoded in request URLs (metadata%5Bkey%5D=value).
Response
200
Example response
{
"next": "https://sandbox.checkhq.com/workplaces?cursor=cD0lNUIlMjIyMDI1LTA5LTI0KzEyJTNBNTclM0E1Ny43NDE2MzglMkIwMCUzQTAwJTIyJTJDKyUyMjQyMzQxNjclMjIlNUQ%3D",
"results": [
{
"id": "wrk_Cjy24FaEY59iyC7MM6Yg",
"name": "Office",
"address": {
"line1": "36 E 30th St",
"city": "New York",
"state": "NY",
"postal_code": "10016",
"country": "US"
},
"company": "com_GlAxMQVO1ZJ0BNbO6pss",
"active": true
}
]
}Changes
- info
added the new optional
queryrequest parameterid - info
added the new optional
queryrequest parametermetadata
- info