import Telnyx from 'telnyx';const client = new Telnyx({ apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted});// Automatically fetches more pages as needed.for await (const oauthGrant of client.oauthGrants.list()) { console.log(oauthGrant.id);}
Retrieve a paginated list of OAuth grants for the authenticated user
GET
/
oauth
/
grants
JavaScript
Copy
Ask AI
import Telnyx from 'telnyx';const client = new Telnyx({ apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted});// Automatically fetches more pages as needed.for await (const oauthGrant of client.oauthGrants.list()) { console.log(oauthGrant.id);}