ArgorantDocs

Create a webhook

posthttps://app.argorant.com/api/v1/webhooks
POST
/api/v1/webhooks

Your HTTPS endpoint on the public internet.

Events to receive, one or more of reply.received, reply.positive, email.bounced, email.unsubscribed, campaign.paused, campaign.resumed, export.ready, list.ready, verification.completed, segment.new_matches, lead.created, campaign.status_changed, email.sent and reply.label_changed.

Argorant calls your HTTPS URL when one of the events happens. The answer holds a signing secret, shown only once: every call carries X-Argorant-Signature: sha256=<hex>, the HMAC-SHA256 of the raw body with that secret. Up to 10 webhooks switched on per account and 50 in all. Sending an address you already have changes that webhook (the new events, switched on) and answers 200 with existing: true and no new secret, so a retried call never adds a second one. An address that answers 410 Gone loses its webhook. A 404 is not counted as a failure: the webhook switches off only after 7 days of 404s with no call getting through. Campaign events reach the webhooks of the workspace owner and of every active team member; exports, lists and checks reach the person who started them; new matches reach the list's owner. Included from the Pro plan: a team member's webhooks use the workspace's plan, and each person has their own limit. The Webhooks guide shows when each event fires and every key of its data.

CostWhat it doesKey scopes
Free, from the Pro planWritesargorant:manage_lists

Authorization

BearerAuth
AuthorizationBearer <token>

Your API key from app.argorant.com/profile, sent as Authorization: Bearer <key>. A connector sign-in token (ag_mcp_...) works the same way.

In: header

Header Parameters

Idempotency-Key?string

Any unique text up to 128 characters. A retry with the same key and the same body within 24 hours returns the first answer (with the header Idempotent-Replayed: true) instead of doing the work twice. The same key with another body answers 409 idempotency_conflict.

Lengthlength <= 128
X-Request-Id?string

Your own id for this request, 8 to 64 letters, digits, dot, dash or underscore. Returned as X-Request-Id; one is made for you when you send none.

Match^[A-Za-z0-9._-]{8,64}$

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

Shell
curl -X POST "https://app.argorant.com/api/v1/webhooks" \  -H "Idempotency-Key: 6f1c2e7a-run-42" \  -H "Content-Type: application/json" \  -d '{    "url": "https://hooks.example.com/argorant",    "events": [      "reply.positive",      "email.bounced"    ]  }'
JSON
{  "ok": true,  "id": "41",  "url": "https://hooks.example.com/argorant",  "events": [    "reply.positive",    "email.bounced"  ],  "existing": true,  "note": "This address already has a webhook, so no second one was added. It now receives these events. Its signing secret did not change: it was shown once, when the webhook was created."}