> ## 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.

# Get Customer by ID

> Retrieve customer by ID

## Overview

Retrieves customer information by their Telemetron customer ID. Response includes assigned devices.

## Authentication

**x-api-key** `string` *required*

Your organization's API key

## Path Parameters

**telemetronCustomerId** `string` *required*

The unique customer identifier

## Response

**id** `string`

The unique customer identifier (telemetronCustomerId)

**organizationId** `string`

The organization ID this customer belongs to

**name** `string`

Customer's full name

**email** `string`

Customer's email address

**phone** `string`

Customer's phone number (if provided)

**address** `string`

Customer's address (if provided)

**devices** `array`

Array of device identifiers assigned to this customer

**orders** `array`

Array of order identifiers associated with this customer

**metadata** `object`

Additional customer metadata

**createdAt** `string`

ISO 8601 timestamp of when the customer was created

## Examples

### Request

```bash cURL theme={null}
curl -X GET https://admin.telemetron.ai/api/ext-v1/customer/getCustomer/cust_a1b2c3d4e5f6 \
  -H "x-api-key: your_api_key_here"
```

```javascript JavaScript theme={null}
const customerId = 'cust_a1b2c3d4e5f6';
const response = await fetch(
  `https://admin.telemetron.ai/api/ext-v1/customer/getCustomer/${customerId}`,
  {
    method: 'GET',
    headers: {
      'x-api-key': 'your_api_key_here'
    }
  }
);

const customer = await response.json();
```

```python Python theme={null}
import requests

customer_id = 'cust_a1b2c3d4e5f6'
response = requests.get(
    f'https://admin.telemetron.ai/api/ext-v1/customer/getCustomer/{customer_id}',
    headers={
        'x-api-key': 'your_api_key_here'
    }
)

customer = response.json()
```

### Response

```json Success theme={null}
{
  "id": "cust_a1b2c3d4e5f6",
  "organizationId": "org_123456",
  "name": "John Doe",
  "email": "john.doe@example.com",
  "phone": "+1234567890",
  "address": "123 Main St, City, State 12345",
  "devices": ["device_001", "device_002"],
  "orders": ["order_001", "order_002"],
  "metadata": {},
  "createdAt": "2025-10-01T12:00:00Z"
}
```

```json Error - Not Found theme={null}
{
  "error": "Customer not found"
}
```

```json Error - Missing ID theme={null}
{
  "error": "Customer ID is required"
}
```

```bash cURL theme={null}
curl -X GET https://admin.telemetron.ai/api/ext-v1/customer/getCustomer/cust_a1b2c3d4e5f6 \
  -H "x-api-key: your_api_key_here"
```

```javascript JavaScript theme={null}
const customerId = 'cust_a1b2c3d4e5f6';
const response = await fetch(
  `https://admin.telemetron.ai/api/ext-v1/customer/getCustomer/${customerId}`,
  {
    method: 'GET',
    headers: {
      'x-api-key': 'your_api_key_here'
    }
  }
);

const customer = await response.json();
```

```python Python theme={null}
import requests

customer_id = 'cust_a1b2c3d4e5f6'
response = requests.get(
    f'https://admin.telemetron.ai/api/ext-v1/customer/getCustomer/{customer_id}',
    headers={
        'x-api-key': 'your_api_key_here'
    }
)

customer = response.json()
```

```json Success theme={null}
{
  "id": "cust_a1b2c3d4e5f6",
  "organizationId": "org_123456",
  "name": "John Doe",
  "email": "john.doe@example.com",
  "phone": "+1234567890",
  "address": "123 Main St, City, State 12345",
  "devices": ["device_001", "device_002"],
  "orders": ["order_001", "order_002"],
  "metadata": {},
  "createdAt": "2025-10-01T12:00:00Z"
}
```

```json Error - Not Found theme={null}
{
  "error": "Customer not found"
}
```

```json Error - Missing ID theme={null}
{
  "error": "Customer ID is required"
}
```

## Status Codes

| Code | Description |
| - | - |
| 200 | Customer found and returned successfully |
| 400 | Invalid request (missing or invalid customer ID) |
| 401 | Invalid or missing API key |
| 404 | Customer not found or doesn't belong to your organization |
| 500 | Internal server error |

## Notes

* Returns only customers in your organization
* Customer ID must be valid UUID
* Use [Query by Email](https://docs.telemetron.ai/api-reference/customer/query.md) if you don't have the ID


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.