VerifyV2AccessToken

Create a new enrollment Access Token for the Entity

Changed on

Create a new enrollment Access Token for the Entity

post/v2/Services/{ServiceSid}/AccessTokens

Request

  • Base URL
    https://verify.twilio.com
  • URL
    https://verify.twilio.com/v2/Services/{ServiceSid}/AccessTokens
  • Auth
    HTTP basic

Path parameters

ServiceSidstring required

The unique SID identifier of the Service.

Request body application/x-www-form-urlencoded

Identitystring required

The unique external identifier for the Entity of the Service. This identifier should be immutable, not PII, and generated by your external system, such as your user's UUID, GUID, or SID.

FactorType'push' required

The Type of the Factor. Currently only push is supported.

FactorFriendlyNamestring

The friendly name of the factor that is going to be created with this access token

Ttlinteger

How long, in seconds, the access token is valid. Can be an integer between 60 and 300. Default is 60.

Response

OK

sidstring nullable

A 34 character string that uniquely identifies this Access Token.

account_sidstring nullable

The unique SID identifier of the Account.

service_sidstring nullable

The unique SID identifier of the Verify Service.

entity_identitystring nullable

The unique external identifier for the Entity of the Service.

factor_type'push'

The Type of the Factor. Currently only push is supported.

factor_friendly_namestring nullable

A human readable description of this factor, up to 64 characters. For a push factor, this can be the device's name.

tokenstring nullable

The access token generated for enrollment, this is an encrypted json web token.

urlstring uri nullable

The URL of this resource.

ttlinteger

How long, in seconds, the access token is valid. Max: 5 minutes

date_createdstring date-time nullable

The date that this access token was created, given in ISO 8601 format.

Changes