curl https://api.playto.so/v1/customers/e5f6a7b8-c9d0-1234-efab-345678901234/ \
-H "X-API-KEY: sk_live_your_api_key_here"
{
"id": "e5f6a7b8-c9d0-1234-efab-345678901234",
"name": "Jane Smith",
"email": "jane@acme.com",
"phone": "+1 555 000 1234",
"created_at": "2024-05-01T10:00:00Z"
}
{
"error": {
"type": "not_found_error",
"code": "resource_not_found",
"message": "Customer not found."
}
}
Customers
Retrieve Customer
Fetch details for a single customer by their ID.
GET
/
customers
/
{id}
/
curl https://api.playto.so/v1/customers/e5f6a7b8-c9d0-1234-efab-345678901234/ \
-H "X-API-KEY: sk_live_your_api_key_here"
{
"id": "e5f6a7b8-c9d0-1234-efab-345678901234",
"name": "Jane Smith",
"email": "jane@acme.com",
"phone": "+1 555 000 1234",
"created_at": "2024-05-01T10:00:00Z"
}
{
"error": {
"type": "not_found_error",
"code": "resource_not_found",
"message": "Customer not found."
}
}
Authentication
RequiresX-API-KEY header.
Path Parameters
Response
curl https://api.playto.so/v1/customers/e5f6a7b8-c9d0-1234-efab-345678901234/ \
-H "X-API-KEY: sk_live_your_api_key_here"
{
"id": "e5f6a7b8-c9d0-1234-efab-345678901234",
"name": "Jane Smith",
"email": "jane@acme.com",
"phone": "+1 555 000 1234",
"created_at": "2024-05-01T10:00:00Z"
}
{
"error": {
"type": "not_found_error",
"code": "resource_not_found",
"message": "Customer not found."
}
}
