Create or replace the webhook configuration
POST
/settings/webhooks/
const url = 'https://api.semantico.ai/api/v1/settings/webhooks/';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"url":"https://example.com","hmac_secret":"example","actions":["product_generated"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.semantico.ai/api/v1/settings/webhooks/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "url": "https://example.com", "hmac_secret": "example", "actions": [ "product_generated" ] }'Upsert — a POST always replaces the single existing configuration for the workspace.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
url
required
Destination for webhook deliveries.
string format: uri
hmac_secret
Optional shared secret. When set, deliveries are HMAC-signed.
string
actions
Events to deliver. Defaults to all if omitted.
Array<string>
Responses
Section titled “Responses”Saved
Media typeapplication/json
object
url
required
Destination for webhook deliveries.
string format: uri
hmac_secret
Optional shared secret. When set, deliveries are HMAC-signed.
string
actions
Events to deliver. Defaults to all if omitted.
Array<string>
Example
{ "actions": [ "product_generated" ]}Field-level validation error.
Media typeapplication/json
object
key
additional properties
Array<string>
Example
{ "barcode": [ "A product with this barcode already exists." ]}