Skip to main content
POST
TypeScript

Headers

Idempotency-Key
string

A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.

Body

application/json
signedCert
string
required

Signed client certificate PEM, issued for the CSR from GET /v1/webhooks_settings/mtls_csr. The private key it belongs to is derived from the certificate itself.

Example:

"-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----"

name
string

A label for this mTLS configuration, to tell several certificates apart. Letters, digits and spaces only.

Maximum string length: 255
Pattern: ^[a-zA-Z0-9 ]*$
Example:

"Production gateway 2026"

Response

The stored mTLS configuration

A signed client certificate stored for the workspace, and the id a webhook references to use it. Several webhooks may share one configuration, so replacing the certificate here switches all of them at once.

id
string<uuid>
required

The unique identifier of the mTLS configuration, to be set on a webhook.

Example:

"44fcead0-7053-4831-a53a-df7fb90d440f"

signedCert
string
required

The signed client certificate PEM.

Example:

"-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----"

expiresAt
integer<int64>
required

When the certificate itself expires, in milliseconds since the epoch.

Example:

1726108200000

createdAt
integer<int64>
required

When the certificate was uploaded, in milliseconds since the epoch.

Example:

1694572200000

updatedAt
integer<int64>
required

When this configuration was last changed, in milliseconds since the epoch. Differs from createdAt once the certificate has been replaced or the configuration renamed.

Example:

1726108200000

name
string

The label given to this mTLS configuration.

Example:

"Production gateway 2026"