Create an API key
Creates an API key for the authenticated account. Restrict access by listing permitted IP addresses in permitted_ips.
Request body
Example request
{
"label": "My API key",
"active": true,
"restricted": true,
"permitted_ips": [
"192.168.1.1",
"10.0.0.1"
],
"scopes_enabled": true,
"numbers": {
"allow": "read"
},
"trunks": {
"allow": "read"
},
"calls": {
"allow": "read"
},
"messages": {
"allow": "read"
},
"recordings": {
"allow": "read"
},
"campaigns": {
"allow": "read"
},
"two_fa": {
"allow": "read"
},
"validator": {
"allow": "read"
},
"webhooks": {
"allow": "read"
},
"embeddable": {
"allow": "read"
},
"billing": {
"allow": "read"
},
"account": {
"allow": "read"
},
"subaccounts": {
"allow": "read"
}
}Response
Returns the created API key.
Example response
{
"id": 123,
"label": "Production API Key",
"value": "abc123def456ghi789jkl012mno345pqr678stu901vwx234yz",
"active": true,
"restricted": true,
"permitted_ips": [
"192.168.1.1",
"10.0.0.1"
],
"scopes_enabled": true,
"last_used_at": "2026-04-20T15:42:11Z",
"numbers": {
"allow": "read"
},
"trunks": {
"allow": "read"
},
"calls": {
"allow": "read"
},
"messages": {
"allow": "read"
},
"recordings": {
"allow": "read"
},
"campaigns": {
"allow": "read"
},
"two_fa": {
"allow": "read"
},
"validator": {
"allow": "read"
},
"webhooks": {
"allow": "read"
},
"embeddable": {
"allow": "read"
},
"billing": {
"allow": "read"
},
"account": {
"allow": "read"
},
"subaccounts": {
"allow": "read"
},
"created_at": "2024-01-15T10:30:00Z"
}Changes
Changed in 4 of the 50 revisions of this API.4346
- ▲
removed the required property
is_activefrom the response with the200statusresponse-required-property-removed
- ▲
removed the required property
is_restrictionfrom the response with the200statusresponse-required-property-removed
- ▲
removed the required property
is_scopes_enabledfrom the response with the200statusresponse-required-property-removed
- ●
removed the request property
is_activerequest-property-removed
- ●
removed the request property
is_restrictionrequest-property-removed
- ●
removed the request property
is_scopes_enabledrequest-property-removed
- ○
added the new optional request property
activenew-optional-request-property
- ○
added the new optional request property
restrictednew-optional-request-property
- ○
added the new optional request property
scopes_enablednew-optional-request-property
- ○
added the required property
activeto the response with the200statusresponse-required-property-added
- ○
added the required property
restrictedto the response with the200statusresponse-required-property-added
- ○
added the required property
scopes_enabledto the response with the200statusresponse-required-property-added
This revision also has 42 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
the request property
labelbecame requiredrequest-property-became-required
- ○
added the new optional request property
accountnew-optional-request-property
- ○
added the new optional request property
billingnew-optional-request-property
- ○
added the new optional request property
callsnew-optional-request-property
- ○
added the new optional request property
campaignsnew-optional-request-property
- ○
added the new optional request property
embeddablenew-optional-request-property
- ○
added the new optional request property
is_scopes_enablednew-optional-request-property
- ○
added the new optional request property
messagesnew-optional-request-property
- ○
added the new optional request property
numbersnew-optional-request-property
- ○
added the new optional request property
recordingsnew-optional-request-property
- ○
added the new optional request property
subaccountsnew-optional-request-property
- ○
added the new optional request property
trunksnew-optional-request-property
- ○
added the new optional request property
two_fanew-optional-request-property
- ○
added the new optional request property
validatornew-optional-request-property
- ○
added the new optional request property
webhooksnew-optional-request-property
- ○
added the non-success response with the status
400response-non-success-status-added
- ○
added the non-success response with the status
401response-non-success-status-added
- ○
the response property
created_atbecame required for the status200response-property-became-required
- ○
the response property
idbecame required for the status200response-property-became-required
- ○
the response property
is_activebecame required for the status200response-property-became-required
- ○
the response property
is_restrictionbecame required for the status200response-property-became-required
- ○
the response property
labelbecame required for the status200response-property-became-required
- ○
the response property
permitted_ipsbecame required for the status200response-property-became-required
- ○
the response property
valuebecame required for the status200response-property-became-required
- ○
added the required property
accountto the response with the200statusresponse-required-property-added
- ○
added the required property
billingto the response with the200statusresponse-required-property-added
- ○
added the required property
callsto the response with the200statusresponse-required-property-added
- ○
added the required property
campaignsto the response with the200statusresponse-required-property-added
- ○
added the required property
embeddableto the response with the200statusresponse-required-property-added
- ○
added the required property
is_scopes_enabledto the response with the200statusresponse-required-property-added
- ○
added the required property
last_used_atto the response with the200statusresponse-required-property-added
- ○
added the required property
messagesto the response with the200statusresponse-required-property-added
- ○
added the required property
numbersto the response with the200statusresponse-required-property-added
- ○
added the required property
recordingsto the response with the200statusresponse-required-property-added
- ○
added the required property
subaccountsto the response with the200statusresponse-required-property-added
- ○
added the required property
trunksto the response with the200statusresponse-required-property-added
- ○
added the required property
two_fato the response with the200statusresponse-required-property-added
- ○
added the required property
validatorto the response with the200statusresponse-required-property-added
- ○
added the required property
webhooksto the response with the200statusresponse-required-property-added
- ▲
- ○
api operation id
api_keys_createwas addedapi-operation-id-added
This revision also has 163 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
endpoint added
endpoint-added
- ○