Get a webhook URL Beta
This endpoint is in beta. Its request and response may change.
Gets the connection's webhook URL, whether a signing secret is set, the secret's last four characters, and whether a secret rotation is in progress. The secret itself is never returned.
Authorization
Authorization: Bearer $TOKEN, an access token from the client credentials grant. See Authentication.
Path parameters
connection_idstringrequiredID of the connection, in this environment. Up to 64 characters.
scalekit_client.actions.triggers.get_ingress_endpoint
Read the webhook URL a provider sends a connection's events to.
scalekit_client.actions.triggers.get_ingress_endpoint( connection_id: str,) -> TriggerIngressEndpointParameters
connection_idstrrequiredThe connection (
conn_...).Returns TriggerIngressEndpoint: The URL and the state of its signing secret (never the secret itself).
From scalekit-sdk-python 2.23.0.
Response 200
connection_idstringID of the connection this webhook URL belongs to.
idstringUnique identifier of the connection's webhook endpoint.
masked_signing_secretstringThe stored secret with all but its last four characters replaced, or every character replaced for a secret of 8 characters or fewer. Empty when none is configured. Enough to compare against the secret the provider's app configuration shows, and never enough to sign with.
previous_signing_secret_expires_atstringWhen the previous secret stops being accepted even if the rotation is never confirmed: 24 hours after the rotation started. Absent when no rotation is in progress.
rotation_in_progressbooleanWhether the previous signing secret is still accepted alongside the current one. True from the moment a different secret replaces a stored one until the rotation is confirmed, or until previous_signing_secret_expires_at passes.
signing_secret_configuredbooleanWhether a signing secret is stored. While false, every event sent to the URL is answered with 503 so the provider retries it, and the provider's own URL verification fails.
signing_secret_rotation_idstringIdentifies the latest signing-secret rotation; it increases by one each time a rotation starts. Zero when none has ever started. Pass this value to Confirm a signing secret rotation to confirm this specific rotation. A value naming a rotation that a newer one has since replaced is refused rather than confirming the wrong rotation.
urlstringThe URL to paste into the provider's app configuration as the event destination. It is built on your environment's domain, using its custom domain when one is set, and ends in a random token unique to this connection, so treat it as confidential. Returned whether or not a signing secret has been set. The URL accepts request bodies up to 1 MB and answers a larger one with 413. Until a signing secret is set it answers events with 503, so the provider retries them; an event that fails signature verification is answered with 400.
Errors
Every error has the same body: code, message and details. See Errors and rate limits.
400Invalid request - connection_id is not a valid connection ID404Not found - no webhook URL has been created for this connection yet (error_code TRIGGER_INGRESS_ENDPOINT_NOT_CREATED; call Create a webhook URL), 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)500Internal error - the webhook URL or its signing-secret state could not be read; retry the request