Guides
n8n
HTTP Request node recipes for posting, a Webhook node for events, and the MCP Client Tool for agents.
n8n needs nothing overads-specific: the HTTP Request node speaks the REST API, the Webhook node receives events, and the MCP Client Tool node gives an AI Agent the tools.
Credential
Create one Header Auth credential and reuse it on every node: Name Authorization, Value Bearer sk_live_.... Keep the key out of node parameters so it is not exported with the workflow.
Create a scheduled post
| HTTP Request node | |
|---|---|
| Method | POST |
| URL | https://api.overads.io/public/v1/posts |
| Authentication | Generic Credential Type > Header Auth (the credential above) |
| Send Headers | Idempotency-Key = {{ $execution.id }}-{{ $itemIndex }} |
| Send Body | JSON, Specify Body: Using JSON |
{
"content": "{{ $json.copy }}",
"connectionIds": ["3f1c1a2e-6b2a-4a0e-9a5f-0d5a7d0f2b11"],
"scheduledAt": "{{ $json.publishAt }}"
}The response lands in $json.data with $json.warnings beside it. Add an IF node on {{ $json.warnings.some(w => w.code === 'APPROVAL_REQUIRED') }} to notify a reviewer.
List today's scheduled posts
| HTTP Request node | |
|---|---|
| Method | GET |
| URL | https://api.overads.io/public/v1/posts |
| Send Query Parameters | status = scheduled, from = {{ $today.toISO() }}, to = {{ $today.plus({days: 1}).toISO() }}, limit = 200 |
Receive events
- Add a Webhook node, method
POST, and copy its production URL. - Register it:
POST https://api.overads.io/public/v1/webhookswith{ "name": "n8n", "url": "<the URL>", "events": ["post.published", "post.failed"] }. Store the returnedsecretas an n8n credential. - In the Webhook node set Response to
Immediatelyand Raw Body on, so the signature can be checked over the exact bytes. - Add a Crypto node: Action
Hmac, TypeSHA256, Value{{ $json.body }}(the raw body), Secret from the credential, Encodinghex. Compare its output to{{ $json.headers['x-overads-signature'] }}in an IF node and stop on mismatch.
Give an agent the tools
| MCP Client Tool node | |
|---|---|
| Endpoint | https://api.overads.io/public/v1/mcp |
| Server transport | HTTP Streamable |
| Authentication | Bearer auth |
| Token | sk_live_... |
Attach it to an AI Agent node. The agent sees every tool the key is scoped for; see MCP tools.