Inbound webhooks
Every address where providers call Antero, what to paste at each provider, how each call is checked, and what to do when calls are refused.
Who can use this: Admins and the Owner set these up with the provider (
integrations:manage). Each connection's address is on its row in Workspace → Integrations.
Endpoints
Each connection that receives calls gets an unguessable public ID in its address. Disconnecting it retires the address; adding it again gives a new one.
| Address | Method | For | How it is checked |
|---|---|---|---|
/webhooks/whatsapp/{public_id} |
GET, POST | WhatsApp Cloud API: customers' messages and delivery receipts | GET: hub.mode=subscribe and hub.verify_token must equal the connection's verify token; Antero answers with hub.challenge. POST: X-Hub-Signature-256 must be sha256= and the HMAC-SHA256 of the raw body, keyed with the app secret. |
/webhooks/twilio/{public_id} |
POST | Twilio delivery reports and incoming SMS | X-Twilio-Signature: the base64 HMAC-SHA1 of the address followed by the POST fields sorted by name, keyed with the Auth Token. |
/webhooks/adasms/{public_id}/{secret} |
GET, POST | AdaSMS delivery reports | The 64-character secret in the address. |
/webhooks/telegram/{public_id} |
POST | Telegram bot updates | X-Telegram-Bot-Api-Secret-Token must equal the secret Antero registered with Send test. |
/webhooks/meta-ads/{public_id} |
GET, POST | Meta lead ads (the Page's leadgen field) |
As WhatsApp, with the Meta Ads connection's verify token and app secret. |
/webhooks/google-ads/{public_id} |
POST | Google Ads lead form leads | The body's google_key must equal the connection's Lead form key. |
/webhooks/tiktok-ads/{public_id} |
POST | TikTok Ads lead notices | TikTok-Signature must be t={time},s={signature}: the HMAC-SHA256 of the time, a dot and the raw body, keyed with Antero's TikTok app secret, and the time within five minutes of Antero's clock. |
/webhooks/ses/{public_id} |
POST | Amazon SNS: the subscription confirmation, then SES bounces, complaints and deliveries | The SNS message signature (versions 1 and 2) against Amazon's certificate, fetched only from an SNS host. The confirmation link must be on an SNS host too. |
/pay/{id}/callback, /pay/{id}/return |
GET, POST | Billplz, CHIP, toyyibPay and Stripe, about one invoice payment | Not trusted: each call only makes Antero ask the provider about the payment. |
/hooks/automations/{token} |
POST | Another app starting an automation | The 40-character token in the address. See Automation webhook trigger. |
/webhooks/billing/chip, /webhooks/billing/stripe |
POST | Payments for Antero plans and credits, from Antero's own gateway | CHIP's X-Signature or Stripe's Stripe-Signature, then Antero asks the gateway itself. Set up by whoever runs Antero. |
/oauth/google_calendar/callback, /oauth/outlook/callback, /oauth/google_ads/callback, /oauth/tiktok_ads/callback |
GET | A member coming back from connecting their calendar, or from signing in for a brand's Google Ads or TikTok Ads account | A one-time state in the member's own session, used within 15 minutes for an ad account; signing in for a brand also needs integrations:manage. Set up by whoever runs Antero. |
/webhooks/inbound-mail |
POST | Amazon SNS for Antero's inbound mail domain: the subscription confirmation, then SES's notice of each email received at a brand's receipts address | The SNS message signature against Amazon's certificate, as for SES, and the message must come from the configured SNS topic. Set up by whoever runs Antero. |
/bank-feeds/return |
POST, then GET | Finverse sending a person back after they log in to their bank for a bank feed | POST: only sets the code aside for ten minutes under its state, then sends the browser on. GET: the state must be the one in the person's own session, used once, by the same signed-in member, who must still be allowed to connect bank feeds in that brand. Set up by whoever runs Antero. |
What to set up at each provider
In your Meta app's WhatsApp webhook settings, paste the connection's Callback URL and Verify token, verify, and subscribe to the messages field. See WhatsApp setup.
Twilio
Only two-way numbers need anything: in the number's messaging settings, set A message comes in to a webhook with the address shown on the row, using HTTP POST. Delivery reports need nothing, because Antero names the same address on every message it sends. See SMS setup.
AdaSMS
Nothing to paste. Antero gives AdaSMS the address, secret included, with every message. Reports may come as a GET or a POST, in the query string, a form or JSON.
Telegram
Nothing to paste. Send test registers the bot's webhook with Telegram, with a secret token. When Telegram cannot reach Antero, the test says so and you can add chats by their ID instead. See Telegram.
Meta lead ads
- Fill in the Meta Ads connection's Facebook Page ID and App secret.
- In your Meta app, add the Webhooks product, choose Page, paste the connection's Callback URL and Verify token, and subscribe to the
leadgenfield. - Click Send test in Antero: it also subscribes the Page to your app.
Antero only takes leads for the Page set on the connection, fetches each lead in the background, and also picks up recent leads in the hourly sync, so a missed call loses no lead. See Ads.
Google Ads lead forms
- Copy the Callback URL on the Google Ads connection's row, and its Lead form key, shown once after you first sign in for the brand (or make a new one with Rotate secret).
- In Google Ads, open the lead form, choose to send leads by webhook, and paste the URL and the key.
- Send test data from the form. It shows under Ads → Lead ads as a Test lead, without a contact.
Each lead comes once, as it is sent. Google sends the campaign's ID and Antero names it from the last sync. The lead's click ID is kept with the contact, so won deals and paid invoices can go back to Google. See Ads.
TikTok lead ads
Nothing to paste. Choosing the advertiser, and every Send test on the TikTok Ads connection, subscribes the advertiser to TikTok's lead webhook at the connection's address. Each call only says a lead arrived: Antero then fetches the lead from TikTok with the connection's token, and imports what the call carried if TikTok refuses or cannot be reached. See Ads.
Amazon SES
Subscribe the connection's Callback URL to your SNS topic with the HTTPS protocol, and leave raw message delivery off. The subscription confirms itself. See Email sending.
Receipts by email
Nothing for a brand to paste: each brand's receipts address is shown on Accounting → Receipts. Whoever runs Antero subscribes https://your-host/webhooks/inbound-mail to the SNS topic its SES receipt rule notifies, over HTTPS with raw message delivery off. The subscription confirms itself. See Bills and receipts.
Bank feeds
Nothing for a brand to paste: bank feeds go through Antero's own Finverse app, whose redirect address is https://your-host/bank-feeds/return. Finverse posts the person back there from its own page, where the browser sends no session cookie, so Antero sets the code aside and finishes on the GET that follows. See Bank reconciliation.
Online payments
Nothing to paste. Each payment gives the provider its own callback and return address. Antero also asks providers about pending payments every 10 minutes. See Online payments.
Responses
| Status | When |
|---|---|
| 200 | The call was accepted. The body is OK; Twilio gets an empty TwiML reply (<Response></Response>), Google Ads and TikTok Ads get an empty JSON list ([]), and a Meta verification gets its challenge back as plain text. |
| 403 | The signature, verify token or secret did not match, or an inbound mail notice came from another SNS topic. |
| 404 | No connection of that app has this public ID: it was disconnected, re-added with a new address, or the address belongs to a different app. For /webhooks/inbound-mail: receipts by email are not set up on this server. |
| 422 | Google Ads only: the lead has no lead_id. |
| 429 | More than 1,200 calls in a minute to this address. |
| 502 | Amazon SES and inbound mail only: Antero could not visit the SNS confirmation link. SNS sends the confirmation again later. |
Rate limit and CSRF
- Every
/webhooks/…address, and/hooks/automations/{token}, takes up to 1,200 calls a minute per address. Each connection has its own address, so a burst of delivery receipts for one number does not slow another. Payment callbacks take 20 a minute per payment. - Addresses under
webhooks/,hooks/andpay/(likef/andu/), and the POST tobank-feeds/return, skip Antero's CSRF check and need no cookie or session. They prove themselves with the signatures and secrets above; a bank feed return only finishes on the GET, in the person's own session.
Repeats
Providers try a call again when it fails or times out, so the same event can arrive twice. Antero ignores repeats:
- WhatsApp and SMS messages already stored are skipped by their message ID.
- Delivery receipts only move a message forward (sent, delivered, read), never back.
- A lead ad already imported is not imported again.
- An address already on the suppression list is updated, not added twice.
- An email SES announces twice (the same message ID) is read once.
- A bank feed return works once: a second visit with the same state is refused.
Troubleshooting
- 403 from WhatsApp or Meta lead ads. The App secret on the connection is not your Meta app's. Paste it again with Edit connection. When Meta cannot verify the callback URL, the Verify token does not match: paste it again, or rotate it.
- 403 from Google Ads. The key in the Google lead form is not the connection's Lead form key. Paste it again, or rotate it and paste the new one.
- 403 from TikTok. The call was not signed with the TikTok app secret this server has (
TIKTOK_APP_SECRET), or the server's clock is more than five minutes out. - 403 from Twilio. The Auth Token in Antero is not the account's current one, or the address in Twilio differs from the one on the row (another host name,
httpinstead ofhttps, an extra slash). Twilio signs the exact address it calls. - Telegram stopped calling. A bot has only one webhook, so another app (or another connection with the same bot token) may have taken it over. Click Send test to register it again.
- 403 from Amazon SES. The call did not come from SNS, or raw message delivery is on. Turn it off on the subscription.
- 404. The connection was disconnected or added again. Copy the new address from its row and paste it at the provider.
- Nothing arrives. Check the subscribed fields (
messagesfor WhatsApp,leadgenfor Meta lead ads), press Send test on a TikTok Ads connection to subscribe it again, that the provider can reach your Antero address over HTTPS, and the provider's own delivery log.