Coming soon

Webhook notifications for image events (coming soon)

With webhook notifications, your server will hear about an image as soon as it is ready, without polling. Customer-facing webhooks are not available yet; they are on our roadmap.

This feature is on our roadmap and not available yet. The description below is the planned behaviour.

Planned events

  • asset.ready: variants are generated and the image is ready
  • asset.failed: processing failed
  • asset.deleted: the asset was deleted
  • HMAC-signed payloads so you can verify a request came from Nooknear
  • Automatic retries for failed deliveries

Today: poll for status

For now, check the status field with GET /v1/media/:assetId after upload. When it is ready, variants is populated; failed means processing did not succeed. Wait a few seconds between checks, since polling too often can hit the rate limit (429).

curl https://api.nooknear.com/v1/media/a1b2c3 \
  -H "X-API-Key: $NOOKNEAR_KEY"
# "status": "pending" | "processing" | "ready" | "failed" | "deleted"

Planned payload example

The payload below is a draft; field names may change before launch.

// PLANNED: not sent yet
{
  "event": "asset.ready",
  "assetId": "a1b2c3",
  "resourceType": "product",
  "resourceId": "sku-42"
}

Frequently asked questions

Can I use webhooks today?

No. Customer-facing webhooks are a planned feature. Today you poll GET /v1/media/:assetId for status.

How will I know a notification is really from Nooknear?

Payloads are planned to be HMAC-signed, so you can verify the signature with your own secret.

What if my server is down?

Failed deliveries are planned to be retried at intervals. Details will be documented at launch.

Related features