Skip to main content
GET
/
terms_of_service
/
agreements
/
{agreement_id}
JavaScript
import Telnyx from 'telnyx';

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

const agreement = await client.termsOfService.agreements.retrieve(
  '550e8400-e29b-41d4-a716-446655440000',
);

console.log(agreement.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.

Path Parameters

agreement_id
string<uuid>
required

Unique identifier of the agreement.

Example:

"550e8400-e29b-41d4-a716-446655440000"

Response

Agreement.

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.