Add API Key certificate [EXPERIMENTAL]
This operation binds a client certificate to the API Key. The certificate must be trusted by one of the Agent's Trust Anchors, either because a Trust Anchor issued it, or through the intermediate certificates sent with the request. A certificate that is itself a Trust Anchor is accepted as well. The response contains the certificateKey of the certificate, which identifies it when you archive it.
An API Key can have at most two active certificates. The limit exists so that a certificate can be rotated without downtime: add the new certificate, test it, then archive the old one. If two certificates are already active, archive one before adding another. A certificate that was archived can be added again.
Adding a certificate does not enable mTLS. To do that, update the API Key with mtlsEnabled. If mTLS is already enabled, the certificate can be used once the change has propagated. Changes to certificates, Trust Anchors and mTLS settings take a short time to take effect, so allow for a delay before you rely on them.
Requires apiKeys:Update permission.
Request
- Base URLhttps://eu-west-1.api.silverflow.com/v1
- Auth
- HTTP basic
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Uniquely identifies an API Key
Uniquely identifies an API Key.
Request body
Example request
{
"certificate": "-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----\n",
"intermediates": [
"-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----\n"
],
"description": "Production client certificate, rotated 2026-06-01"
}Response
The added certificate
Example response
{
"certificateKey": "crt-602nkAxGfhDN8yQBibpx",
"fingerprint": "LYHqA-dGPaCqZfnoqB6EQ9-Agm8IjZy9LcTj376z8n4=",
"trustAnchorFingerprint": "LYHqA-dGPaCqZfnoqB6EQ9-Agm8IjZy9LcTj376z8n4="
}Changes
No recorded changes to this operation across all 1 revision of this API.