# Subscribe to an event Subscribe to your desired event. Endpoint: POST /webhooks/subscriptions Version: 1.0.0 Security: api_key, tenant_id ## Request fields (application/json): - `workspace_id` (string) Example: "4e1b58da-06de-4173-a276-15609442c470" - `event_type` (string) Example: "project.published" - `target_url` (string) Example: "https://yourapp.com/webhook" ## Response 201 fields (application/json): - `id` (string) Example: "subscription_123" - `x_hook_secret` (string) Example: "x_hook_secret_value" ## Response 400 fields (application/json): - `status` (integer) Example: 400 - `detail` (string) Example: "Request cannot be processed. Check the response details." ## Response 401 fields (application/json): - `status` (integer) Example: 400 - `detail` (string) Example: "Request cannot be processed. Check the response details." ## Response 403 fields (application/json): - `status` (integer) Example: 400 - `detail` (string) Example: "Request cannot be processed. Check the response details."