import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const response = await client.oauth.grants({ allowed: true, consent_token: 'consent_token' });
console.log(response.redirect_uri);{
"redirect_uri": "<string>"
}Create an OAuth authorization grant
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const response = await client.oauth.grants({ allowed: true, consent_token: 'consent_token' });
console.log(response.redirect_uri);{
"redirect_uri": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Grant created successfully
Redirect URI with authorization code or error
Was this page helpful?