Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Number of results per page
Required range:
1 <= x <= 100Page number
Required range:
x >= 1import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const oauthGrants = await client.oauthGrants.list();
console.log(oauthGrants.data);{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"record_type": "oauth_grant",
"client_id": "<string>",
"scopes": [
"<string>"
],
"last_used_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z"
}
],
"meta": {
"page_number": 123,
"page_size": 123,
"total_results": 123,
"total_pages": 123
}
}Retrieve a paginated list of OAuth grants for the authenticated user
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const oauthGrants = await client.oauthGrants.list();
console.log(oauthGrants.data);{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"record_type": "oauth_grant",
"client_id": "<string>",
"scopes": [
"<string>"
],
"last_used_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z"
}
],
"meta": {
"page_number": 123,
"page_size": 123,
"total_results": 123,
"total_pages": 123
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Number of results per page
1 <= x <= 100Page number
x >= 1Was this page helpful?