Connection address
A system that cannot build the event format or set a header sends its own webhook, as it is, to a connection address:
https://events.alphasms.net/hooks/<TOKEN>
The token in the address is the secret of the connection: whoever knows the address sends events of your account, so no header or key is needed. AlphaFlow reads the request by the preset of the system (or by the fields you mapped from a sample) and turns it into events — see the systems you can connect.
Where the address comes from
The cabinet creates it: Flows → Connections → New connection, choose a system from the list or «Other system».
- The address is shown once, when the connection is created. Copy it into your system right away.
- Lost the address — re-issue it. The new address works at once, the previous one keeps accepting requests for another 24 hours, so you have time to replace it in your system.
- A disabled connection stops accepting requests at once; its address answers
404.
Request
- Method — any:
GET,POST,PUT,PATCH,DELETE. - Body — any: JSON, a form,
multipart, or no body with the data in the address parameters. - Headers are not required. AlphaFlow keeps the request as it came — the method, the address parameters, the headers
(except
Authorization,Cookieand the headers of Cloudflare), up to 8 KB of them, and the body — and reads it a few seconds after the answer. - Limits — as for the events address: a body up to 2 MB, up to 2,000 requests in 10 seconds per address.
HEAD checks that the address exists (200 or 404) and records nothing; OPTIONS answers 204.
Answer
Every system gets the same answer as soon as the request is recorded — what came of it is shown in the journal (see Refused requests):
HTTP/1.1 200 OK
X-Request-Id: 0b5c3a1e-7d1f-4c55-9d0e-6f2b8a4c1d23
{ "status": "success" }
| Status | Body | When |
|---|---|---|
| 200 | {"status":"success"} | The request is recorded |
| 404 | {"status":"error"} | No such address: an unknown token, or the connection is disabled or re-issued more than 24 hours ago |
| 413 | {"status":"error","error":{"code":"body_too_large",…}} | The body is over 2 MB |
| 429 | {"status":"error","error":{"code":"rate_limited",…}} | Over 2,000 requests in 10 seconds with this address; the header Retry-After: 10 says when to repeat |
| 503 | {"status":"error","error":{"code":"storage_unavailable",…}} | The service could not record the request; repeat after Retry-After (5 seconds) |
An error carries code, message and request_id.
Handshakes
Some systems check the address before they start sending. AlphaFlow answers them itself and records nothing:
| System | Request | Answer |
|---|---|---|
| monday.com | JSON body {"challenge": "…"} | {"challenge": "…"} with the same value |
| Zadarma | address parameter zd_echo=… | the value of zd_echo as plain text |
The address must be a working one: to an unknown token the handshake gets 404.
Events quota
The address never refuses a request over the daily quota of events: systems switch a webhook off after refusals
(WooCommerce — after five in a row). Over the quota the request is recorded, and its events are refused in AlphaFlow with
the reason quota_exceeded — they are visible in the journal. See
Limits and quotas.
A body that is already an event
A JSON body with event (a string) and contact (an object) at the top level is the event format
already. AlphaFlow records it as a request to /v1/events would be, with any preset of the connection. This is the way for
systems where you write the body yourself: an HTTP request action in a CRM, an automation platform, a script. Put the id
of the system into context.source — for example "keycrm" — and the cabinet shows the connection as recognised.
Signature
Checking a signature is optional: the secret token in the address is enough. If your system signs its requests and you
want them checked, enter the same secret in the settings of the connection. From then on a request with a wrong
signature is refused with bad_signature; if your system signs the body, so does a body that is already an event.
Duplicates
Systems repeat a webhook when they did not get an answer in time. A repeat does not record a second event: the id of an event is built from the ids of the system — the order, the record, the status — and without them from the body itself.
Refused requests
A request that AlphaFlow could not turn into events is shown in the Event journal with the reason and the name of the connection:
| Reason | When |
|---|---|
unrecognized | The connection is «Other system», no system was recognised by the request, and there are no fields mapped by you |
bad_body | The body is not of the kind the system sends (for example, not JSON) |
unmapped_event | The event of the system is not mapped to an event of AlphaFlow; the text names the event of the system |
no_contact | The event has no phone, email or id of the contact |
bad_signature | The signature of the request does not match the secret of the connection |
quota_exceeded | The daily quota of events was used up |
The card of a refused request shows the request of the system as it came. A request that the system sends as a check or a ping, and an event of the system you do not need, are accepted silently — with no event and no refusal.