Skip to main content
POST
/
webhook-subscriptions
Create webhook subscription
curl --request POST \
  --url https://api.pictify.io/webhook-subscriptions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "event": "render.completed",
  "targetUrl": "<string>",
  "platform": "custom",
  "filters": {
    "templateId": "<string>",
    "bindingId": "<string>"
  }
}
'
{
  "subscription": {
    "uid": "<string>",
    "event": "render.completed",
    "targetUrl": "<string>",
    "platform": "zapier",
    "status": "active",
    "filters": {
      "templateId": "<string>",
      "bindingId": "<string>"
    },
    "deliveryCount": 123,
    "failureCount": 123,
    "lastDeliveryAt": "2023-11-07T05:31:56Z",
    "createdAt": "2023-11-07T05:31:56Z",
    "secret": "<string>"
  }
}

Authorizations

Authorization
string
header
required

API key obtained from the Pictify dashboard

Body

application/json
event
enum<string>
required
Available options:
render.completed,
render.failed,
binding.updated,
binding.failed
targetUrl
string<uri>
required
platform
enum<string>
default:custom
Available options:
zapier,
make,
n8n,
pipedream,
custom
filters
object

Response

201 - application/json

Subscription created

subscription
object