Skip to main content
POST
/
legacy
/
reporting
/
usage_reports
/
number_lookup
JavaScript
import Telnyx from 'telnyx';

const client = new Telnyx({
  apiKey: 'My API Key',
});

await client.legacy.reporting.usageReports.numberLookup.create();

Authorizations

Authorization
string
header
required

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

Body

*/*

Telco data usage request data

startDate
string<date>

Start date for the usage report

Example:

"2025-02-10"

endDate
string<date>

End date for the usage report

Example:

"2025-02-10"

aggregationType
enum<string>

Type of aggregation for the report

Available options:
ALL,
BY_ORGANIZATION_MEMBER
Example:

"ALL"

managedAccounts
string[]

List of managed accounts to include in the report

Example:
[
"f47ac10b-58cc-4372-a567-0e02b2c3d479",
"6ba7b810-9dad-11d1-80b4-00c04fd430c8"
]

Response

Successfully submitted telco data usage report