# Create a new enrollment Access Token for the Entity **POST /v2/Services/{ServiceSid}/AccessTokens** Create a new enrollment Access Token for the Entity ## Servers - https://verify.twilio.com: https://verify.twilio.com () ## Authentication methods - Account sid auth token ## Parameters ### Path parameters - **ServiceSid** (string) The unique SID identifier of the Service. ### Body: application/x-www-form-urlencoded (object) - **Identity** (string) 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** (string) The Type of the Factor. Currently only `push` is supported. - **FactorFriendlyName** (string) The friendly name of the factor that is going to be created with this access token - **Ttl** (integer) How long, in seconds, the access token is valid. Can be an integer between 60 and 300. Default is 60. ## Responses ### 200 OK #### Headers - **Access-Control-Allow-Origin** (string) Specify the origin(s) allowed to access the resource - **Access-Control-Allow-Methods** (string) Specify the HTTP methods allowed when accessing the resource - **Access-Control-Allow-Headers** (string) Specify the headers allowed when accessing the resource - **Access-Control-Allow-Credentials** (boolean) Indicates whether the browser should include credentials - **Access-Control-Expose-Headers** (string) Headers exposed to the client #### Body: application/json (object) - **sid** (string | null) A 34 character string that uniquely identifies this Access Token. - **account_sid** (string | null) The unique SID identifier of the Account. - **service_sid** (string | null) The unique SID identifier of the Verify Service. - **entity_identity** (string | null) The unique external identifier for the Entity of the Service. - **factor_type** (string) The Type of the Factor. Currently only `push` is supported. - **factor_friendly_name** (string | null) A human readable description of this factor, up to 64 characters. For a push factor, this can be the device's name. - **token** (string | null) The access token generated for enrollment, this is an encrypted json web token. - **url** (string(uri) | null) The URL of this resource. - **ttl** (integer) How long, in seconds, the access token is valid. Max: 5 minutes - **date_created** (string(date-time) | null) The date that this access token was created, given in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. ### 201 Created #### Headers - **Access-Control-Allow-Origin** (string) Specify the origin(s) allowed to access the resource - **Access-Control-Allow-Methods** (string) Specify the HTTP methods allowed when accessing the resource - **Access-Control-Allow-Headers** (string) Specify the headers allowed when accessing the resource - **Access-Control-Allow-Credentials** (boolean) Indicates whether the browser should include credentials - **Access-Control-Expose-Headers** (string) Headers exposed to the client #### Body: application/json (object) - **sid** (string | null) A 34 character string that uniquely identifies this Access Token. - **account_sid** (string | null) The unique SID identifier of the Account. - **service_sid** (string | null) The unique SID identifier of the Verify Service. - **entity_identity** (string | null) The unique external identifier for the Entity of the Service. - **factor_type** (string) The Type of the Factor. Currently only `push` is supported. - **factor_friendly_name** (string | null) A human readable description of this factor, up to 64 characters. For a push factor, this can be the device's name. - **token** (string | null) The access token generated for enrollment, this is an encrypted json web token. - **url** (string(uri) | null) The URL of this resource. - **ttl** (integer) How long, in seconds, the access token is valid. Max: 5 minutes - **date_created** (string(date-time) | null) The date that this access token was created, given in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. [Powered by Bump.sh](https://bump.sh)