Documentation Index
Fetch the complete documentation index at: https://docs.telemetron.ai/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Creates or updates customer records in Telemetron.
Behavior:
- Without
telemetronCustomerId: Creates new customer (409 error if email exists)
- With
telemetronCustomerId: Updates existing customer
Authentication
Your organization’s API key
Request Body
Customer’s email address (used as unique identifier)
Customer’s full name (defaults to email prefix if not provided)
Existing customer ID for updates. If provided, the endpoint will update the customer with this ID.
Response
Indicates if the operation was successful
The unique identifier for the customer
Description of the operation result
Examples
Create Customer
curl -X POST https://admin.telemetron.ai/api/ext-v1/customer/createOrUpdateCustomer \
-H "x-api-key: your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"name": "John Doe",
"email": "john.doe@example.com",
"phone": "+1234567890",
"address": "123 Main St, City, State 12345"
}'
Update Customer
curl -X POST https://admin.telemetron.ai/api/ext-v1/customer/createOrUpdateCustomer \
-H "x-api-key: your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"telemetronCustomerId": "customer-uuid-123",
"name": "John Doe Updated",
"email": "john.doe@example.com",
"phone": "+1234567890"
}'
Response
{
"success": true,
"telemetronCustomerId": "cust_a1b2c3d4e5f6",
"message": "Customer created successfully"
}
curl -X POST https://admin.telemetron.ai/api/ext-v1/customer/createOrUpdateCustomer \
-H "x-api-key: your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"name": "John Doe",
"email": "john.doe@example.com",
"phone": "+1234567890",
"address": "123 Main St, City, State 12345"
}'
{
"success": true,
"telemetronCustomerId": "cust_a1b2c3d4e5f6",
"message": "Customer created successfully"
}
Status Codes
| Code | Description |
|---|
| 200 | Customer created or updated successfully |
| 400 | Invalid request (missing required fields, invalid JSON payload, or invalid format) |
| 401 | Invalid or missing API key |
| 404 | Customer not found (when updating with telemetronCustomerId) |
| 409 | Customer already exists with the provided email |
| 500 | Internal server error |