Get a customer
curl --request GET \
--url https://api.operator.xyz/customers/{customer_id} \
--header 'Authorization: Bearer <token>' \
--header 'Operator-Version: <operator-version>'import requests
url = "https://api.operator.xyz/customers/{customer_id}"
headers = {
"Operator-Version": "<operator-version>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'Operator-Version': '<operator-version>', Authorization: 'Bearer <token>'}
};
fetch('https://api.operator.xyz/customers/{customer_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"organization_id": "<string>",
"phone_no": "<string>",
"email": null,
"name": null,
"external_id": null,
"zendesk_user_id": null,
"salesforce_lead_id": null,
"salesforce_contact_id": null,
"preferred_language": null,
"extra": null
}{
"code": "<string>",
"message": "<string>",
"data": "<unknown>"
}Customers
Get a customer
GET
/
customers
/
{customer_id}
Get a customer
curl --request GET \
--url https://api.operator.xyz/customers/{customer_id} \
--header 'Authorization: Bearer <token>' \
--header 'Operator-Version: <operator-version>'import requests
url = "https://api.operator.xyz/customers/{customer_id}"
headers = {
"Operator-Version": "<operator-version>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'Operator-Version': '<operator-version>', Authorization: 'Bearer <token>'}
};
fetch('https://api.operator.xyz/customers/{customer_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"organization_id": "<string>",
"phone_no": "<string>",
"email": null,
"name": null,
"external_id": null,
"zendesk_user_id": null,
"salesforce_lead_id": null,
"salesforce_contact_id": null,
"preferred_language": null,
"extra": null
}{
"code": "<string>",
"message": "<string>",
"data": "<unknown>"
}Authorizations
Response
Successful response.

