Check out our upcoming events and meetups! View events →
Accept the Terms of Service for the Number Reputation product. Must be called before using Number Reputation endpoints.
Returns 400 with error code 10015 if the user has already agreed to the current ToS version.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
await client.termsOfService.numberReputation.agree();{
"errors": [
{
"code": "10015",
"title": "Bad Request",
"detail": "User has already agreed to Terms of Service version v1.0.0",
"meta": {
"url": "<string>"
},
"source": {
"pointer": "/body/organization_type"
}
}
]
}Documentation Index
Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Terms of Service accepted successfully
Was this page helpful?
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
await client.termsOfService.numberReputation.agree();{
"errors": [
{
"code": "10015",
"title": "Bad Request",
"detail": "User has already agreed to Terms of Service version v1.0.0",
"meta": {
"url": "<string>"
},
"source": {
"pointer": "/body/organization_type"
}
}
]
}