REST API

The REST API covers everything the dashboard does except billing and team management. It speaks JSON over HTTPS; request bodies may also be form-encoded.

Base URL: https://apisynccloud.info/api/v1

The current version is v1. Additive changes (new fields, new endpoints, new event types) happen without a version bump and are listed in the changelog; write your client so it ignores fields it doesn’t know. Breaking changes would get a v2 and at least a year of overlap. There is also an OpenAPI 3.1 description of this page.

Authentication#

Send the API key as a bearer token. Keys starting with as_test_ see only test-mode resources, as_live_ keys only live ones. Read-only keys can be created for monitoring scripts.

$ curl https://apisynccloud.info/api/v1/endpoints \
    -H "Authorization: Bearer $APISYNC_KEY"

A missing or wrong key gets a 401:

{
  "error": {
    "code": "unauthorized",
    "message": "Missing or invalid API key"
  }
}

Errors#

Errors use the HTTP status and a JSON body with a stable code you can branch on, a message for humans that may change, and for validation errors the param involved.

{
  "error": {
    "code": "validation_failed",
    "param": "url",
    "message": "Endpoint URL resolves to a private address (10.4.0.12)"
  }
}
StatusCodeWhen
400invalid_requestThe body isn’t valid JSON or form data, or a parameter has the wrong type.
401unauthorizedNo API key, or the key is unknown or revoked.
403forbiddenThe key is valid but can’t do this: a test key on a live resource, or a read-only key on a write.
404not_foundNo such resource in this account and mode.
405method_not_allowedWrong HTTP method for this path.
409idempotency_mismatchThe Idempotency-Key was used before with a different body.
413payload_too_largeRequest body over 64 KiB.
422validation_failedParameters are well-formed but not acceptable, e.g. an endpoint URL that resolves to a private address. param says which one.
429rate_limitedToo many requests for this key. See Retry-After.
500internal_errorOur fault. Safe to retry with the same Idempotency-Key.
503unavailablePlanned maintenance or overload. Retry after a few seconds.

Pagination#

List calls return up to limit objects, newest first, and has_more. To get the next page, pass the id of the last object you got as starting_after. Cursors stay valid while the object exists, so you can page through a long list over several minutes without missing or repeating items.

{
  "object": "list",
  "data": [
    "…"
  ],
  "has_more": true
}

Idempotency#

Add an Idempotency-Key header (any string up to 255 characters; a UUID is fine) to a POST and we store the response for 24 hours. A retry with the same key and body returns the stored response with Idempotent-Replayed: true. GET, PATCH and DELETE are idempotent by nature and ignore the header.

Sources#

A source is one sender with its own ingest URL.

GET /sources#

List sources.

Query parameters

NameTypeDescription
limitinteger1–100, default 20.
starting_afterstringCursor: the id of the last item on the previous page.

Example

$ curl 'https://apisynccloud.info/api/v1/sources?limit=2' \
    -H "Authorization: Bearer $APISYNC_KEY"
{
  "object": "list",
  "data": [
    {
      "id": "src_7Hq2Lw9xVb3e",
      "object": "source",
      "name": "Shop orders",
      "provider": "shopify",
      "ingest_url": "https://apisynccloud.info/in/src_7Hq2Lw9xVb3e",
      "verification": {
        "enabled": true,
        "last_failure_at": null
      },
      "created_at": "2026-11-03T14:16:05Z"
    }
  ],
  "has_more": false
}

POST /sources#

Create a source.

Body parameters

NameTypeDescription
namerequiredstringShown in the dashboard. Up to 80 characters.
providerrequiredstringstripe, github, shopify, mollie, twilio or generic.
verify_secretstringThe provider’s signing secret. When set, requests that fail the provider’s signature check are refused at ingest.
type_pathstringGeneric only. JSON Pointer to the event type, default /type.
verify_headerstringGeneric only. Header that carries the HMAC.
verify_encodingstringGeneric only. hex (default) or base64.
ingest_url_paramsobjectTwilio only. Query parameters you added to the URL in the Twilio console.

Example

$ curl https://apisynccloud.info/api/v1/sources \
    -H "Authorization: Bearer $APISYNC_KEY" \
    -d name="Shop orders" \
    -d provider=shopify
{
  "id": "src_7Hq2Lw9xVb3e",
  "object": "source",
  "name": "Shop orders",
  "provider": "shopify",
  "ingest_url": "https://apisynccloud.info/in/src_7Hq2Lw9xVb3e",
  "verification": {
    "enabled": true,
    "last_failure_at": null
  },
  "created_at": "2026-11-03T14:16:05Z"
}

GET /sources/{id}#

Retrieve a source.

Path parameters

NameTypeDescription
idrequiredstringSource id, src_….

Example

$ curl https://apisynccloud.info/api/v1/sources/src_7Hq2Lw9xVb3e \
    -H "Authorization: Bearer $APISYNC_KEY"
{
  "id": "src_7Hq2Lw9xVb3e",
  "object": "source",
  "name": "Shop orders",
  "provider": "shopify",
  "ingest_url": "https://apisynccloud.info/in/src_7Hq2Lw9xVb3e",
  "verification": {
    "enabled": true,
    "last_failure_at": null
  },
  "created_at": "2026-11-03T14:16:05Z"
}

DELETE /sources/{id}#

Delete a source. The ingest URL stops accepting requests immediately and returns 404. Events already received are still delivered.

Path parameters

NameTypeDescription
idrequiredstringSource id.

Example

$ curl -X DELETE https://apisynccloud.info/api/v1/sources/src_7Hq2Lw9xVb3e \
    -H "Authorization: Bearer $APISYNC_KEY"
{
  "id": "src_7Hq2Lw9xVb3e",
  "object": "source",
  "deleted": true
}

Endpoints#

An endpoint is a URL on your side that receives deliveries.

GET /endpoints#

List endpoints.

Query parameters

NameTypeDescription
statusstringenabled or disabled.
limitinteger1–100, default 20.
starting_afterstringCursor.

Example

$ curl 'https://apisynccloud.info/api/v1/endpoints?status=enabled' \
    -H "Authorization: Bearer $APISYNC_KEY"
{
  "object": "list",
  "data": [
    {
      "id": "ep_4mRt8YwQ2kLs",
      "object": "endpoint",
      "url": "https://shop.example.com/hooks/apisync",
      "description": null,
      "sources": [
        "src_7Hq2Lw9xVb3e"
      ],
      "event_types": [
        "orders.*",
        "refunds.create"
      ],
      "format": "raw",
      "max_concurrency": 10,
      "headers": {},
      "status": "enabled",
      "disabled_reason": null,
      "created_at": "2026-11-03T14:18:52Z",
      "updated_at": "2026-11-03T14:18:52Z"
    }
  ],
  "has_more": false
}

POST /endpoints#

Create an endpoint. The response includes secret. It is only returned here and by rotate_secret.

Body parameters

NameTypeDescription
urlrequiredstringHTTPS URL. See URL rules.
sourcesrequiredarraySource ids this endpoint listens to.
event_typesarrayFilters with * wildcards. Default ["*"].
descriptionstringFree text, up to 200 characters.
formatstringraw (default) or envelope.
max_concurrencyinteger1 up to your plan’s maximum. Default 10.
headersobjectUp to 10 static headers added to every request.

Example

$ curl https://apisynccloud.info/api/v1/endpoints \
    -H "Authorization: Bearer $APISYNC_KEY" \
    -d url=https://shop.example.com/hooks/apisync \
    -d "sources[]=src_7Hq2Lw9xVb3e" \
    -d "event_types[]=orders.*"
{
  "id": "ep_4mRt8YwQ2kLs",
  "object": "endpoint",
  "url": "https://shop.example.com/hooks/apisync",
  "description": null,
  "sources": [
    "src_7Hq2Lw9xVb3e"
  ],
  "event_types": [
    "orders.*",
    "refunds.create"
  ],
  "format": "raw",
  "max_concurrency": 10,
  "headers": {},
  "status": "enabled",
  "disabled_reason": null,
  "created_at": "2026-11-03T14:18:52Z",
  "updated_at": "2026-11-03T14:18:52Z",
  "secret": "whsec_Zq3v8TnR1xKc6pLm0Wb4yJf2"
}

GET /endpoints/{id}#

Retrieve an endpoint.

Path parameters

NameTypeDescription
idrequiredstringEndpoint id, ep_….

Example

$ curl https://apisynccloud.info/api/v1/endpoints/ep_4mRt8YwQ2kLs \
    -H "Authorization: Bearer $APISYNC_KEY"
{
  "id": "ep_4mRt8YwQ2kLs",
  "object": "endpoint",
  "url": "https://shop.example.com/hooks/apisync",
  "description": null,
  "sources": [
    "src_7Hq2Lw9xVb3e"
  ],
  "event_types": [
    "orders.*",
    "refunds.create"
  ],
  "format": "raw",
  "max_concurrency": 10,
  "headers": {},
  "status": "enabled",
  "disabled_reason": null,
  "created_at": "2026-11-03T14:18:52Z",
  "updated_at": "2026-11-03T14:18:52Z"
}

PATCH /endpoints/{id}#

Update an endpoint. Takes the same fields as create, all optional, plus status. Arrays and headers are replaced, not merged.

Parameters

NameTypeDescription
statusstringenabled or disabled. Enabling releases deliveries held while the endpoint was disabled.
urlstringNew URL. Applies to attempts from now on.
event_typesarrayReplaces the filter list.

Example

$ curl -X PATCH https://apisynccloud.info/api/v1/endpoints/ep_4mRt8YwQ2kLs \
    -H "Authorization: Bearer $APISYNC_KEY" \
    -d "event_types[]=orders.*" \
    -d "event_types[]=refunds.*"
{
  "id": "ep_4mRt8YwQ2kLs",
  "object": "endpoint",
  "url": "https://shop.example.com/hooks/apisync",
  "description": null,
  "sources": [
    "src_7Hq2Lw9xVb3e"
  ],
  "event_types": [
    "orders.*",
    "refunds.*"
  ],
  "format": "raw",
  "max_concurrency": 10,
  "headers": {},
  "status": "enabled",
  "disabled_reason": null,
  "created_at": "2026-11-03T14:18:52Z",
  "updated_at": "2026-11-05T09:02:37Z"
}

DELETE /endpoints/{id}#

Delete an endpoint. Pending and retrying deliveries to it are cancelled.

Path parameters

NameTypeDescription
idrequiredstringEndpoint id.

Example

$ curl -X DELETE https://apisynccloud.info/api/v1/endpoints/ep_4mRt8YwQ2kLs \
    -H "Authorization: Bearer $APISYNC_KEY"
{
  "id": "ep_4mRt8YwQ2kLs",
  "object": "endpoint",
  "deleted": true
}

POST /endpoints/{id}/rotate_secret#

Rotate an endpoint secret. Returns a new secret. Until the old one expires, requests carry two signatures.

Parameters

NameTypeDescription
expire_old_inintegerSeconds the old secret stays valid. Default 86400, max 604800, 0 to drop it now.

Example

$ curl https://apisynccloud.info/api/v1/endpoints/ep_4mRt8YwQ2kLs/rotate_secret \
    -H "Authorization: Bearer $APISYNC_KEY" \
    -d expire_old_in=86400
{
  "id": "ep_4mRt8YwQ2kLs",
  "object": "endpoint_secret",
  "secret": "whsec_Lr6Tq0Ve3Nb9Xk2Hc7Wp5Ds1",
  "old_secret_expires_at": "2026-11-06T09:10:00Z"
}

POST /endpoints/{id}/test#

Send a test event. Creates an apisync.test event and delivers it to this endpoint only, ignoring the filter.

Parameters

NameTypeDescription
payloadobjectBody to send. Default {"hello":"from APISync"}.

Example

$ curl -X POST https://apisynccloud.info/api/v1/endpoints/ep_4mRt8YwQ2kLs/test \
    -H "Authorization: Bearer $APISYNC_KEY"
{
  "object": "delivery",
  "id": "dlv_0Ab3Kx9Wq2Lm5Tz8",
  "event": "evt_8Yp4Ns1Gv6Rd0Hq3",
  "endpoint": "ep_4mRt8YwQ2kLs",
  "status": "pending"
}

Events#

Everything ingest accepted, kept for your plan’s retention period.

GET /events#

List events. Newest first. Bodies are not included in lists.

Query parameters

NameTypeDescription
sourcestringSource id.
typestringExact type or a pattern with *.
received_afterstringRFC 3339 timestamp.
received_beforestringRFC 3339 timestamp.
limitinteger1–100, default 20.
starting_afterstringCursor.

Example

$ curl 'https://apisynccloud.info/api/v1/events?type=orders.*&limit=1' \
    -H "Authorization: Bearer $APISYNC_KEY"
{
  "object": "list",
  "data": [
    {
      "id": "evt_5Jm1Rk8vQs2Hx7Ta",
      "object": "event",
      "source": "src_7Hq2Lw9xVb3e",
      "type": "orders.create",
      "received_at": "2026-11-03T14:20:10.912Z",
      "content_type": "application/json",
      "size": 2318,
      "body_encoding": "utf-8",
      "deliveries": [
        "dlv_9cXr2TfB0wLq6nPe"
      ]
    }
  ],
  "has_more": true
}

GET /events/{id}#

Retrieve an event. Includes headers and body. Bodies that aren’t UTF-8 come base64-encoded.

Path parameters

NameTypeDescription
idrequiredstringEvent id, evt_….

Example

$ curl https://apisynccloud.info/api/v1/events/evt_5Jm1Rk8vQs2Hx7Ta \
    -H "Authorization: Bearer $APISYNC_KEY"
{
  "id": "evt_5Jm1Rk8vQs2Hx7Ta",
  "object": "event",
  "source": "src_7Hq2Lw9xVb3e",
  "type": "orders.create",
  "received_at": "2026-11-03T14:20:10.912Z",
  "content_type": "application/json",
  "size": 2318,
  "headers": {
    "X-Shopify-Topic": "orders/create",
    "X-Shopify-Webhook-Id": "b54557e4-bdd9-4b37-8a5f-bf7d70bcd043"
  },
  "body": "{\"id\":820982911946154500,\"email\":\"jon@example.com\", ...}",
  "body_encoding": "utf-8",
  "deliveries": [
    "dlv_9cXr2TfB0wLq6nPe"
  ]
}

POST /events/{id}/replay#

Replay an event. Creates new deliveries for an event. Each gets a fresh delivery id and retry schedule; the event id stays the same.

Parameters

NameTypeDescription
endpointsarrayEndpoint ids. Default: every endpoint that matches now, which may differ from when the event arrived.

Example

$ curl https://apisynccloud.info/api/v1/events/evt_5Jm1Rk8vQs2Hx7Ta/replay \
    -H "Authorization: Bearer $APISYNC_KEY" \
    -d "endpoints[]=ep_4mRt8YwQ2kLs"
{
  "object": "list",
  "data": [
    {
      "object": "delivery",
      "id": "dlv_6Wn2Hc8Rt4Kq0Xv1",
      "endpoint": "ep_4mRt8YwQ2kLs",
      "status": "pending"
    }
  ],
  "has_more": false
}

Deliveries#

One event sent to one endpoint, with all its attempts.

GET /deliveries#

List deliveries.

Query parameters

NameTypeDescription
endpointstringEndpoint id.
eventstringEvent id.
statusstringpending, retrying, succeeded, failed or cancelled.
limitinteger1–100, default 20.
starting_afterstringCursor.

Example

$ curl 'https://apisynccloud.info/api/v1/deliveries?status=failed&endpoint=ep_4mRt8YwQ2kLs' \
    -H "Authorization: Bearer $APISYNC_KEY"
{
  "object": "list",
  "data": [
    {
      "id": "dlv_9cXr2TfB0wLq6nPe",
      "object": "delivery",
      "event": "evt_5Jm1Rk8vQs2Hx7Ta",
      "endpoint": "ep_4mRt8YwQ2kLs",
      "status": "succeeded",
      "attempt_count": 3,
      "next_attempt_at": null,
      "created_at": "2026-11-03T14:20:10.930Z"
    }
  ],
  "has_more": false
}

GET /deliveries/{id}#

Retrieve a delivery.

Path parameters

NameTypeDescription
idrequiredstringDelivery id, dlv_….

Example

$ curl https://apisynccloud.info/api/v1/deliveries/dlv_9cXr2TfB0wLq6nPe \
    -H "Authorization: Bearer $APISYNC_KEY"
{
  "id": "dlv_9cXr2TfB0wLq6nPe",
  "object": "delivery",
  "event": "evt_5Jm1Rk8vQs2Hx7Ta",
  "endpoint": "ep_4mRt8YwQ2kLs",
  "status": "succeeded",
  "attempt_count": 3,
  "next_attempt_at": null,
  "created_at": "2026-11-03T14:20:10.930Z",
  "attempts": [
    {
      "number": 1,
      "started_at": "2026-11-03T14:20:11.004Z",
      "duration_ms": 15000,
      "status_code": null,
      "error": "timeout",
      "response_body": null
    },
    {
      "number": 2,
      "started_at": "2026-11-03T14:20:53.316Z",
      "duration_ms": 412,
      "status_code": 503,
      "error": null,
      "response_body": "<html><head><title>503 Service Temporarily Unavailable</title>..."
    },
    {
      "number": 3,
      "started_at": "2026-11-03T14:22:41.870Z",
      "duration_ms": 184,
      "status_code": 200,
      "error": null,
      "response_body": "ok"
    }
  ]
}

POST /deliveries/{id}/retry#

Retry a delivery. Runs one attempt now. The rest of the schedule is unchanged. Works on failed deliveries too, for one extra attempt.

Path parameters

NameTypeDescription
idrequiredstringDelivery id.

Example

$ curl -X POST https://apisynccloud.info/api/v1/deliveries/dlv_3Ve7Lp1Xc9Wb4Ry2/retry \
    -H "Authorization: Bearer $APISYNC_KEY"
{
  "object": "delivery",
  "id": "dlv_3Ve7Lp1Xc9Wb4Ry2",
  "status": "retrying",
  "attempt_count": 5,
  "next_attempt_at": "2026-11-03T15:58:40Z"
}

POST /deliveries/{id}/cancel#

Cancel a delivery. Stops further attempts. Has no effect on deliveries that already succeeded or failed.

Path parameters

NameTypeDescription
idrequiredstringDelivery id.

Example

$ curl -X POST https://apisynccloud.info/api/v1/deliveries/dlv_3Ve7Lp1Xc9Wb4Ry2/cancel \
    -H "Authorization: Bearer $APISYNC_KEY"
{
  "object": "delivery",
  "id": "dlv_3Ve7Lp1Xc9Wb4Ry2",
  "status": "cancelled",
  "next_attempt_at": null
}

Last updated 5 Nov 2026