curl --request GET \
--url https://api.qovery.com/organization/{organizationId}/webhook/{webhookId} \
--header 'Authorization: Bearer <token>'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"kind": "STANDARD",
"target_url": "<string>",
"target_secret_set": true,
"description": "<string>",
"enabled": true,
"events": [
"DEPLOYMENT_STARTED"
],
"project_names_filter": [
"<string>"
],
"environment_types_filter": [
"PRODUCTION"
]
}Get an Organization webhook
curl --request GET \
--url https://api.qovery.com/organization/{organizationId}/webhook/{webhookId} \
--header 'Authorization: Bearer <token>'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"kind": "STANDARD",
"target_url": "<string>",
"target_secret_set": true,
"description": "<string>",
"enabled": true,
"events": [
"DEPLOYMENT_STARTED"
],
"project_names_filter": [
"<string>"
],
"environment_types_filter": [
"PRODUCTION"
]
}JWT tokens should be used with OIDC account (human to machine). JWT tokens used by the Qovery console to communicate with the API have a TTL. Curl Example ' curl https://console.qovery.com/organization -H "Authorization: Bearer $qovery_token" '
Organization ID
Webhook ID
Get organization webhook
Define the type of the webhook. SLACK is a special webhook type to push notifications directly to slack. The target_url must be a Slack compatible endpoint.
STANDARD, SLACK "STANDARD"
Set the public HTTP or HTTPS endpoint that will receive the specified events.
The target URL must starts with http:// or https://
Turn on or off your endpoint.
Events to subscribe to and send to the target_url.
DEPLOYMENT_STARTED send an event when a deployment is started and going to be executedDEPLOYMENT_CANCELLED send an event when a deployment is cancelledDEPLOYMENT_FAILURE send an event when a deployment failedDEPLOYMENT_SUCCESSFUL send an event when a deployment is successfulDEPLOYMENT_STARTED, DEPLOYMENT_CANCELLED, DEPLOYMENT_FAILURE, DEPLOYMENT_SUCCESSFUL Specify the project names you want to filter to.
This webhook will be triggered only if the event is coming from the specified Project IDs.
Notes: 1. Wildcard is accepted E.g. product*. 2. Name is case insensitive.
Specify the environment modes you want to filter to. This webhook will be triggered only if the event is coming from an environment with the specified mode.
DEVELOPMENT, PREVIEW, PRODUCTION, STAGING Was this page helpful?