Skip to main content
POST
/
terms_of_service
/
number_reputation
/
agree
JavaScript
import Telnyx from 'telnyx';

const client = new Telnyx({
  apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});

const response = await client.termsOfService.numberReputation.agree();

console.log(response.data);
{
  "data": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "terms_version": "v1.0.0",
    "version": "v1.0.0",
    "product_type": "branded_calling",
    "agreed_at": "2025-07-10T10:30:00Z",
    "created_at": "2025-07-10T10:30:00Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

Agreement recorded.

data
object
required

A recorded user agreement to a product's Terms of Service. The user_id is intentionally NOT echoed back on this public surface — the caller already knows their own identity.