Getting started

This page takes you from an empty account to a signed test delivery on your own server. It takes about ten minutes, most of which is deploying the verification code.

How it fits together#

Third-party services send their webhooks to an ingest URL that belongs to a source. APISync stores the request as an event and creates a delivery for every endpoint subscribed to that source and event type. Deliveries are retried on their own schedule until your endpoint answers with a 2xx.

Diagram: Stripe, GitHub and Shopify post
to the ingest service, events are written to the event log, delivery workers sign and send them to your endpoints and
retry on failure
The sender only ever talks to ingest. Your endpoints only ever talk to the delivery workers.

1. Create an API key#

In the dashboard, open Settings → API keys and create a key. There are two kinds:

  • as_test_… keys work on test-mode resources only. Test endpoints may use plain http:// URLs, which is handy with a tunnel to your laptop.
  • as_live_… keys work on live resources. Live endpoints must be HTTPS.

Keys are shown once. The examples below read the key from APISYNC_KEY:

$ export APISYNC_KEY=as_test_...

2. Create a source#

A source is one sender. If you receive webhooks from two Stripe accounts, make two sources: the ingest URL is the only thing that tells them apart.

$ 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"
}

Copy ingest_url into the sender’s webhook settings. Provider-specific steps, including where to find each provider’s signing secret, are on the Sources page.

Form-encoded or JSON

Every POST on the API accepts both application/x-www-form-urlencoded and JSON bodies. The curl examples mix both; arrays are easier to write as JSON.

3. Create an endpoint#

$ curl https://apisynccloud.info/api/v1/endpoints \
    -H "Authorization: Bearer $APISYNC_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "url": "https://shop.example.com/hooks/apisync",
      "sources": ["src_7Hq2Lw9xVb3e"],
      "event_types": ["orders.*", "refunds.create"]
    }'
const res = await fetch('https://apisynccloud.info/api/v1/endpoints', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.APISYNC_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    url: 'https://shop.example.com/hooks/apisync',
    sources: ['src_7Hq2Lw9xVb3e'],
    event_types: ['orders.*', 'refunds.create'],
  }),
});
const endpoint = await res.json();
console.log(endpoint.id, endpoint.secret); // store the secret, it is shown once
import os
import requests

resp = requests.post(
    "https://apisynccloud.info/api/v1/endpoints",
    headers={"Authorization": f"Bearer {os.environ['APISYNC_KEY']}"},
    json={
        "url": "https://shop.example.com/hooks/apisync",
        "sources": ["src_7Hq2Lw9xVb3e"],
        "event_types": ["orders.*", "refunds.create"],
    },
    timeout=10,
)
resp.raise_for_status()
endpoint = resp.json()
print(endpoint["id"], endpoint["secret"])  # store the secret, it is shown once
payload := strings.NewReader(`{
  "url": "https://shop.example.com/hooks/apisync",
  "sources": ["src_7Hq2Lw9xVb3e"],
  "event_types": ["orders.*", "refunds.create"]
}`)
req, _ := http.NewRequest("POST", "https://apisynccloud.info/api/v1/endpoints", payload)
req.Header.Set("Authorization", "Bearer "+os.Getenv("APISYNC_KEY"))
req.Header.Set("Content-Type", "application/json")

resp, err := http.DefaultClient.Do(req)
if err != nil {
	log.Fatal(err)
}
defer resp.Body.Close()

var ep struct{ ID, Secret string }
json.NewDecoder(resp.Body).Decode(&ep) // store ep.Secret, it is shown once

The response contains secret, a string starting with whsec_. This is the key for the signatures on requests we send to this endpoint. We only return it on creation and on rotation, so put it in your secret store now.

event_types takes exact names and * wildcards. Leave it out to receive everything from the listed sources.

4. Verify signatures#

Before you process a request, check its signature. The short version: HMAC-SHA256 over {delivery id}.{timestamp}.{raw body}, keyed with the endpoint secret, compared with the v1= values in APISync-Signature. Full code for Node.js, Python and Go is on Verifying signatures.

Answer with any 2xx status within 15 seconds. If the work takes longer, put it on a queue and answer first; a slow 200 that arrives after 15 seconds counts as a timeout and will be retried.

5. Send a test event#

This sends an apisync.test event to one endpoint, bypassing the event-type filter:

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

Then look at the delivery, either in the dashboard under Deliveries or with GET /deliveries?endpoint=ep_4mRt8YwQ2kLs. A failing first attempt usually means one of three things: the signature check is using parsed JSON instead of raw bytes, the endpoint is behind a login, or a firewall drops our requests. On the Scale plan, deliveries leave from two fixed addresses listed in the dashboard under Settings → Network; on the other plans they don’t have fixed addresses.

Test mode and live mode#

Test and live are separate worlds: test sources only feed test endpoints, test events are kept for 3 days on every plan, and test deliveries don’t count towards your monthly quota. Nothing moves between the two, so when you go live you create the live source and endpoint again. Most people script steps 2 and 3 for that reason.

Where to go next#

  • Concepts explains retries, ordering, idempotency and what disables an endpoint.
  • Limits lists payload sizes, timeouts and rate limits per plan.
  • REST API has every resource, with parameters and error codes.

Last updated 28 Oct 2026