Get Client Workers

Retrive all workers for a client.

Endpoint

GET /v1/instance-integrations/:instanceIntegrationId/clients/:clientId/workers

Description

Fetches workers data of a specific Listo instance's client.

Request

Path Parameters:

ParameterTypeRequiredDescription
instanceIntegrationIdPublic IDYesThe unique identifier of the instance integration
clientIdPublic IDYesThe unique identifier of the client

Headers:

x-api-key: your-64-character-api-key-here

Example Request:

curl -X GET https://gateway.listoglobal.com/v1/instance-integrations/lggtwini_uZzrSgaCCW6mCUrtq/clients/lglsocli_uZzu8GpG1f0qGKAyY/workers \
  -H "x-api-key: your-api-key"

Response

Success (200 OK):

Returns an array of workers objects.

[
  {
    "id": "lglsowpr_uZzCmZmYXq9PoAGDC",
    "firstName": "Worker",
    "lastName": "Name",
    "fullName": "Worker Name",
    "email": "[email protected]",
    "jobTitles": ["Software developer"],
    "phone": "+19193334444",
    "location": {
      "address1": "Address line one",
      "address2": "Address line two",
      "city": "Worker's city",
      "isoCountryCode": "USA",
      "postalCode": "12345",
      "zoneCode": "CA"
    }
  }
]

Response Fields:

FieldTypeDescription
idPublic IDThe unique identifier for the worker
firstNameStringWorker's first name
lastNameStringWorker's last name
fullNameStringWorker's full name
emailStringWorker's email address
jobTitlesString[]Worker's registered job titles
phoneString | nullWorker's phone number
locationObjectLocation details of the worker
location.address1String | nullWorker's address line one
location.address2String | nullWorker's address line two
location.cityString | nullWorker's address city
location.isoCountryCodeString | nullWorker's country ISO code
location.postalCodeString | nullWorker's location postal code
location.zoneCodeString | nullWorker's state or province code

Errors:

Status CodeErrorSolution
400Bad RequestEnsure the instance integration ID and client ID are valid public ID
401UnauthorizedVerify your API key is correct
404Not FoundThe instance integration or client don't exist
500Internal Server ErrorContact Listo support