Create Outbound Webhook
Create a target. The signing secret is returned only in this response.
HTTPBearerAuthorizationBearer <token>application/json- body
name*Name1 <= length <= 100url*Urlheaders?|Custom request headers. Write-only.
secret?|Optional whsec_ signing secret; Svix generates one if omitted.
filters?|nullSuccessful Response
application/json- response
id*Idname*Nameurl*Urlstatus*OutboundWebhookStatus"active""paused""disabled_after_failures"filters*A target's filter, ANDed; an empty list means all. store_ids and
milestones apply to product.ordered only; a milestone is the N-th order
of a product counted over all stores. Stored as the JSON string
metadata["rules"] (format: go/cmd/webhooks/testdata/rules.json) and
evaluated by the Go webhooks worker.
created_at*Created Atdate-timeupdated_at*Updated Atdate-timesecret*SecretSigning secret; shown only in this response.
curl -X POST 'https://app.copyhero.app/api/v1/webhooks/outbound' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "url": "string"}'{ "id": "string", "name": "string", "url": "string", "status": "active", "filters": { "event_types": [ "workflow.completed" ], "store_ids": [ 1 ], "milestones": [ 1 ] }, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "secret": "string"}Create Outbound Webhook For Agent POST
Create a webhook target. Returns no signing secret; refuses `secret` (422). A secret never passes through the agent: to verify signatures, the user rotates the secret in CopyHero Settings > Webhooks, which shows the new one once.
Delete Outbound Webhook DELETE
Next Page