Skip to main content

Create a secret

POST 
/integration_secrets

Create a new secret with an associated identifier that can be used to securely integrate with other services.

Request

Body

required

    identifier Identifier (string)required

    The unique identifier of the secret.

    value Value (string)required

    The value of the secret.

Responses

201: Successful Response

422: Validation Error

Request samples


curl -L 'https://api.telnyx.com/v2/integration_secrets' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"identifier": "my_secret",
"value": "my_secret_value"
}'

Response samples


{
"data": {
"record_type": "integration_secret",
"id": "string",
"identifier": "string",
"created_at": "2024-07-29T15:51:28.071Z",
"updated_at": "2024-07-29T15:51:28.071Z"
}
}