TODO: Resource-level docs
Create a new enrollment Access Token for the Entity
Path parameters
-
The unique SID identifier of the Service.
Minimum length is
34, maximum length is34. Format should match the following pattern:^VA[0-9a-fA-F]{32}$.
Body
-
The friendly name of the factor that is going to be created with this access token
-
The Type of this Factor. Eg.
pushValue is
push. -
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.
-
How long, in seconds, the access token is valid. Can be an integer between 60 and 300. Default is 60.
POST
/v2/Services/{ServiceSid}/AccessTokens
curl \
--request POST 'https://verify.twilio.com/v2/Services/{ServiceSid}/AccessTokens' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'FactorFriendlyName=string&FactorType=push&Identity=string&Ttl=42'
Response examples (201)
{
"account_sid": "string",
"date_created": "2026-05-04T09:42:00Z",
"entity_identity": "string",
"factor_friendly_name": "string",
"factor_type": "push",
"service_sid": "string",
"sid": "string",
"token": "string",
"ttl": 42,
"url": "https://example.com"
}