---
title: "Record a customer activity/device telemetry event"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.hostedez.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Hosted EZ REST API

`POST /v1/telemetry/event`

## Authentication

- `sessionCookie`, apiKey, in cookie

## Code samples

### cURL

```curl
curl --request POST \
  --url https://api.hostedez.com/v1/telemetry/event \
  --header '__Secure-better-auth.session_token: <value>'
```

### TypeScript

```typescript
const url = 'https://api.hostedez.com/v1/telemetry/event';
const options = {method: 'POST', headers: {'__Secure-better-auth.session_token': '<value>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.hostedez.com/v1/telemetry/event"

headers = {"__Secure-better-auth.session_token": "<value>"}

response = requests.post(url, headers=headers)

print(response.text)
```

## Responses

### 200

Telemetry recorded

### 400

Invalid telemetry event

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string"
  }
}
```

- `recordTelemetryEvent.response.400.error` (object, required)
  - `recordTelemetryEvent.response.400.error.code` (string, required)
  - `recordTelemetryEvent.response.400.error.message` (string, required)
  - `recordTelemetryEvent.response.400.error.issues` (array<object>, optional)
    - `recordTelemetryEvent.response.400.error.issues.message` (string, required)
    - `recordTelemetryEvent.response.400.error.issues.path` (string, required)

### 401

Unauthenticated

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string"
  }
}
```

- `recordTelemetryEvent.response.401.error` (object, required)
  - `recordTelemetryEvent.response.401.error.code` (string, required)
  - `recordTelemetryEvent.response.401.error.message` (string, required)
  - `recordTelemetryEvent.response.401.error.issues` (array<object>, optional)
    - `recordTelemetryEvent.response.401.error.issues.message` (string, required)
    - `recordTelemetryEvent.response.401.error.issues.path` (string, required)

### 403

Forbidden origin

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string"
  }
}
```

- `recordTelemetryEvent.response.403.error` (object, required)
  - `recordTelemetryEvent.response.403.error.code` (string, required)
  - `recordTelemetryEvent.response.403.error.message` (string, required)
  - `recordTelemetryEvent.response.403.error.issues` (array<object>, optional)
    - `recordTelemetryEvent.response.403.error.issues.message` (string, required)
    - `recordTelemetryEvent.response.403.error.issues.path` (string, required)


Source: https://docs.hostedez.com/api/recordTelemetryEvent/index.md
