v1

latestOpenAPI 3.0.02026-07-142351,1971.3 MB
Webhooks Integration

Create a custom variable

Creates an endpoint with the name <CUSTOM_VARIABLE_NAME>.

post/api/v1/integration/webhooks/configuration/custom-variables

Request body

is_secretboolean required

Make custom variable is secret or not. If the custom variable is secret, the value is not returned in the response payload.

namestring required

The name of the variable. It corresponds with <CUSTOM_VARIABLE_NAME>.

valuestring required

Value of the custom variable.

Example request

{
  "is_secret": true,
  "name": "CUSTOM_VARIABLE_NAME",
  "value": "CUSTOM_VARIABLE_VALUE"
}

Response

OK

is_secretboolean required

Make custom variable is secret or not. If the custom variable is secret, the value is not returned in the response payload.

namestring required

The name of the variable. It corresponds with <CUSTOM_VARIABLE_NAME>. It must only contains upper-case characters, integers or underscores.

valuestring

Value of the custom variable. It won't be returned if the variable is secret.

Example response

{
  "is_secret": true,
  "name": "CUSTOM_VARIABLE_NAME",
  "value": "CUSTOM_VARIABLE_VALUE"
}