Skip to content

TwilioVoiceTokenOptions

Defined in: lib/token/twilio-token.interface.ts:59

Options for a Voice token.

https://www.twilio.com/docs/voice/sdks

Property Type Description Inherited from Defined in
endpointId? string Identifies this specific device or browser tab. - lib/token/twilio-token.interface.ts:69
identity string Identity the token represents, normally a username in your system. Voice tokens accept only alphanumeric characters and underscores; this is enforced when minting a Voice token. TwilioTokenOptions.identity lib/token/twilio-token.interface.ts:34
incomingAllow? boolean Allow this identity to receive incoming calls. - lib/token/twilio-token.interface.ts:61
nbf? number Epoch seconds before which the token is not accepted. TwilioTokenOptions.nbf lib/token/twilio-token.interface.ts:44
outgoingApplicationParams? object Extra parameters passed to the TwiML Application on outgoing calls. - lib/token/twilio-token.interface.ts:65
outgoingApplicationSid? string TwiML Application SID that handles outgoing calls. Starts with AP. - lib/token/twilio-token.interface.ts:63
pushCredentialSid? string Push credential used to deliver incoming-call notifications. - lib/token/twilio-token.interface.ts:67
region? string Twilio Region for the token. Currently honoured for Voice tokens only. See https://www.twilio.com/docs/global-infrastructure/understanding-twilio-regions TwilioTokenOptions.region lib/token/twilio-token.interface.ts:51
ttl? number Lifetime in seconds. Defaults to the SDK’s 3600. Twilio caps tokens at 24 hours (86400), and recommends the shortest lifetime your application can tolerate. TwilioTokenOptions.ttl lib/token/twilio-token.interface.ts:41