Connect n8n
Publish images or video through ADVNT with n8n's HTTP Request node.
Use n8n's built-in HTTP Request node. No ADVNT-specific node or SDK is required.
Use content you are ready to publish
Running the create-post node queues a real post immediately. Disable automatic retries on that node: the API does not deduplicate repeated submissions.
Save an API credential
First, create an API key in ADVNT. In an HTTP Request node, choose Generic Credential Type → Header Auth and create a credential with:
| Setting | Value |
|---|---|
| Name | Authorization |
| Value | Bearer advnt_YOUR_API_KEY |
Keep the space between Bearer and your key. Save the secret in this credential, not in a node's URL or JSON body. Reuse the credential on each ADVNT request.
Get your account ID
Create an HTTP Request node with:
| Setting | Value |
|---|---|
| Method | GET |
| URL | https://advnt.co/api/v1/accounts |
| Authentication | Your saved Header Auth credential |
| Response Format | JSON |
Run it and choose the desired account from accounts. Copy its id; account handles are not accepted as accountId.
Create the post
Add an HTTP Request node named Create ADVNT post:
| Setting | Value |
|---|---|
| Method | POST |
| URL | https://advnt.co/api/v1/posts |
| Authentication | Your saved Header Auth credential |
| Send Body | On |
| Body Content Type | JSON |
| Specify Body | Using JSON |
| Response Format | JSON |
| Retry On Fail | Off |
Leave Include Response Headers and Status off so the response body is the node's output. Use this body, replacing the account UUID and example URL with your own values:
{
"accountId": "f398c27d-b48a-480b-8618-017d52c2a301",
"type": "post",
"caption": "A new update from our team.",
"media": [
{
"type": "image",
"url": "https://media.example.com/finished-post.jpg"
}
]
}You can map upstream fields into this body using n8n expressions. The API accepts URLs, not n8n binary attachments: upload your media to HTTPS-accessible storage first. For a story, set type to story. For video, send exactly one media item with type: "video". See the platform limits before adding more images.
On success, save the returned id in your workflow's record for this submission. Do not use jobId, which can be null.
Wait and check the result
For a workflow handling one post per execution:
- Connect Create ADVNT post to a Wait node set to 30–60 seconds.
- Connect it to an HTTP Request node named Get ADVNT post, with method
GET, the same credential, and JSON response format. - Use this expression for the URL:
{{ 'https://advnt.co/api/v1/posts/' + $('Create ADVNT post').first().json.id }}- Add a Switch node on
{{ $json.state }}:queuedorposting: return to the Wait node, then Get ADVNT post. Do not loop back to Create ADVNT post.failed: stop and notify your team with the post ID anderror.posted: stop the publishing loop and record posted, not live-confirmed.published: stop and record live-confirmed.draftor an unexpected state: stop and investigate rather than silently retrying creation.
Set a maximum workflow runtime or poll count appropriate for your operation. Reaching that limit does not cancel the post; keep its ID and check it later.
For TikTok feed posts, you can run a separate, bounded follow-up check for published. Do not wait indefinitely for that state on Instagram posts or TikTok stories. See post states.
If you process multiple posts in one execution, carry each returned post id with its own item instead of using .first().
Handle errors without duplicate posts
- 401: check the credential and whether the key was revoked or its creator lost access.
- 400 / 403 / 404 / 422: fix the request, workspace access, account, or media before trying again.
- 409: the post could not be queued. Check the account in ADVNT or contact support before resubmitting.
- Timeout, lost connection, or 500: the result may be unknown. Check ADVNT before repeating the create request; a second accepted request can publish a duplicate.
There is no idempotency key or completion webhook in the current API. Save successful create responses and use polling rather than assuming a network retry is safe.