---
title: "Report SDK errors"
method: POST
path: "/v1/sdk/telemetry-errors"
tags: ["Telemetry"]
---

# Report SDK errors

`POST /v1/sdk/telemetry-errors`

## Request

- Base URL: `https://gateway.remote.com`
- URL: `https://gateway.remote.com/v1/sdk/telemetry-errors`
- Auth: one of:
  - OAuth 2
    - Authorization code: `/auth/oauth2/authorize`
    - Token URL: `/auth/oauth2/token`
  - OAuth 2
    - Client credentials
    - Token URL: `/auth/oauth2/token`
  - OAuth 2
    - Client credentials
    - Token URL: `/auth/oauth2/token`
  - OAuth 2
    - Client credentials
    - Token URL: `/auth/oauth2/token`
  - HTTP bearer
  - HTTP bearer

Receives error telemetry from the frontend SDK.
Errors are logged to observability backend for monitoring and debugging.

## Authentication

This endpoint accepts any one of the following token types:

- **Company-scoped access token** (`OAuth2AuthorizationCode`) — obtained through the Authorization Code flow or the Refresh Token flow, acting as the user who authorized it. See [Authentication for partners](https://developer.remote.com/docs/authentication-for-partners).
- **Company-scoped access token (assertion)** (`OAuth2CompanyManagerAssertion`) — obtained through the `urn:ietf:params:oauth:grant-type:jwt-bearer` grant for a company manager. See [OAuth Assertion](https://developer.remote.com/docs/authorization-method-oauth-assertion).
- **Client credentials access token** (`OAuth2ClientCredentials`) — obtained through the Client Credentials flow or the Refresh Token flow. See [Authentication for partners](https://developer.remote.com/docs/authentication-for-partners).
- **Employee-scoped access token** (`OAuth2Assertion`) — obtained through the `urn:ietf:params:oauth:grant-type:jwt-bearer` grant. See [OAuth Assertion](https://developer.remote.com/docs/authorization-method-oauth-assertion).
- **Customer API token** (`CustomerAPIToken`) — generated by the customer on their Integration Settings page, with the scopes they choose there. See [Authorization for customers](https://developer.remote.com/docs/authorization-for-customers).
- **Client token** (`ClientToken`) — a partner `client_token`, accepted only on the endpoints that list it. See [Authentication for partners](https://developer.remote.com/docs/authentication-for-partners).

## Request body

- SDKErrorPayload
  - `context` object, nullable: Context
  - `error` object, required
    - `category` 'RENDER_ERROR' | 'NETWORK_ERROR' | 'VALIDATION_ERROR' | 'STATE_ERROR' | 'HOOK_ERROR' | 'RUNTIME_ERROR' | 'UNKNOWN_ERROR', required: Error category
    - `component_stack` string[], nullable: Component Stack
    - `message` string, required: Error message
    - `name` string, required: Error name
    - `severity` 'critical' | 'error' | 'warning' | 'info', required: Error severity
    - `stack` string, nullable: Stack Trace
  - `metadata` object, required
    - `environment` 'production' | 'staging' | 'local' | 'partners' | 'sandbox', required: SDK runtime environment
    - `sdk_version` string, required: SDK Version
    - `timestamp` string, datetime, required: Client Timestamp
    - `url` string, uri, required: Client URL
    - `user_agent` string, required: User Agent

## Response `204`

No Content

## Other responses

- `400`: Bad Request
- `429`: Too Many Requests

---

[API](https://skmtc.dev/remote-com/apis/testing-sandbox.md) - [All operations](https://skmtc.dev/remote-com/apis/testing-sandbox/llms.txt) - [OpenAPI document](https://skmtc.dev/remote-com/apis/testing-sandbox/revisions/94f6859e2604?raw)
