v52

latestOpenAPI 3.1.0raw.githubusercontent.com2026-07-311,1941,9384.1 MB
Credentials

Create a credential

Create a credential.

post/telephony_credentials

Request body

connection_idstring required

Identifies the Credential Connection this credential is associated with.

expires_atstring

ISO-8601 formatted date indicating when the credential will expire.

namestring
tagstring

Tags a credential. A single tag can hold at maximum 1000 credentials.

Example request

{
  "connection_id": "1234567890",
  "name": "My-new-credential"
}

Response

Successful response with details about a credential

Example response

{
  "data": {
    "created_at": "2020-06-18T21:32:38",
    "expired": false,
    "expires_at": "2042-06-18T21:32:38",
    "id": "c215ade3-0d39-418e-94be-c5f780760199",
    "name": "2020-06-18 21:32:38.917732Z",
    "record_type": "credential",
    "resource_id": "connection:804252963366242252",
    "sip_password": "a92dbcfb60184a8cb330b0acb2f7617b",
    "sip_username": "gencrednCvHU5IYpSBPPsXI2iQsDX",
    "updated_at": "2020-06-18T21:32:38.000Z",
    "user_id": "user-id"
  }
}