Set a signing secret Beta
This endpoint is in beta. Its request and response may change.
Saves the secret the app signs its webhook events with, copied from your app's settings at the provider, so Scalekit can verify each event. Until a secret is set, the webhook URL doesn't accept events. If a secret is already set, a new one starts a rotation: both are accepted until you confirm the rotation, or for at most 24 hours. Read the secret from your server's secrets, never from code. For an app that sends no signature of its own, generate a secret instead.
Authorization
Authorization: Bearer $TOKEN, an access token from the client credentials grant. See Authentication.
Path parameters
connection_idstringrequiredBody
signing_secretstringrequiredscalekit_client.actions.triggers.set_signing_secret
Store the signing secret the provider signs its events with. The first call stores it. A call with a different secret starts a rotation: both secrets are accepted until confirm_signing_secret_rotation or for 24 hours. Not retried on UNAVAILABLE, because a retry could advance the rotation.
scalekit_client.actions.triggers.set_signing_secret( connection_id: str, signing_secret: str,) -> TriggerIngressEndpointParameters
connection_idstrrequiredconn_...).signing_secretstrrequiredReturns TriggerIngressEndpoint: The endpoint, with masked_signing_secret and rotation state.
From scalekit-sdk-python 2.23.0.
Response 200
connection_idstringidstringmasked_signing_secretstringprevious_signing_secret_expires_atstringrotation_in_progressbooleansigning_secret_configuredbooleansigning_secret_rotation_idstringurlstringErrors
Every error has the same body: code, message and details. See Errors and rate limits.
400Invalid request, nothing written - connection_id is not a valid connection ID; signing_secret is shorter than 8 characters once leading and trailing whitespace is removed, or longer than 4096 characters; the connection's provider sends no signature of its own, so its secret is generated by Scalekit rather than set (error_code TRIGGER_SIGNING_SECRET_GENERATED_ONLY; call Generate a signing secret instead); or the provider's webhook trigger definitions are temporarily unavailable (error_code TRIGGER_INGRESS_DEFINITIONS_UNAVAILABLE)404Not found - no webhook URL has been created for this connection yet (error_code TRIGGER_INGRESS_ENDPOINT_NOT_CREATED; call Create a webhook URL first), the connection does not exist in this environment (error_code RESOURCE_NOT_FOUND), or Triggers isn't turned on for your environment (error_code RESOURCE_NOT_FOUND)409Conflict - a rotation is already in progress. Confirm it with Confirm a signing secret rotation, or wait for the previous secret's expiry, before setting another secret500Internal error - the signing secret could not be stored; retry the request