IamV1NewApiKey

Create a new Signing Key for the account making the request.

post/v1/Keys

Request

  • Base URL
    https://iam.twilio.com
  • URL
    https://iam.twilio.com/v1/Keys
  • Auth
    HTTP basic

Request body application/x-www-form-urlencoded

AccountSidstring required

The SID of the Account that created the Payments resource.

FriendlyNamestring

A descriptive string that you create to describe the resource. It can be up to 64 characters long.

KeyTypestring

The `KeyType` form parameter is used to specify the type of key you want to create.

Default Behavior: If `KeyType` is not specified, the API will generate a standard key.

Restricted Key: If `KeyType` is set to `restricted`, the API will create a new restricted key. In this case, a policy object is required to define the permissions.

Policyunknown

Response

Created

sidstring nullable

The unique string that that we created to identify the NewKey resource. You will use this as the basic-auth user when authenticating to the API.

friendly_namestring nullable

The string that you assigned to describe the resource.

date_createdstring date-time-rfc-2822 nullable

The date and time in GMT that the API Key was created specified in RFC 2822 format.

date_updatedstring date-time-rfc-2822 nullable

The date and time in GMT that the new API Key was last updated specified in RFC 2822 format.

secretstring nullable

The secret your application uses to sign Access Tokens and to authenticate to the REST API (you will use this as the basic-auth password). Note that for security reasons, this field is ONLY returned when the API Key is first created.

policyobject nullable

Collection of allow assertions.

Changes