ADVNT API
Publish to your organization's TikTok and Instagram accounts from n8n, scripts, or your backend.
The ADVNT API accepts finished images or a video, queues a post or story on the account's connected phone, and lets you check its progress. It uses your existing organization and accounts.
Base URL: https://advnt.co/api/v1
This API publishes content
Creating a post queues it for publishing immediately. It does not create a draft for approval. Use an account and media you are ready to publish.
Before you start
- Be a member of the ADVNT organization that owns the account.
- Your workspace must have content submission enabled.
- The TikTok or Instagram account must be set up for phone publishing in ADVNT. ADVNT-managed accounts use their assigned publishing phone; Control users need their connected phone configured and available.
- Have direct HTTPS URLs to your finished images or video. ADVNT must be able to download the files without a login or additional authorization headers.
An account appearing in the API does not guarantee it is ready to publish. If a request cannot be queued, check the account setup in ADVNT or contact support.
Create your API key
- Sign in to ADVNT and select the correct organization.
- Open Organization Settings → API.
- Enter a name such as
n8n production, then select Create key. - Copy the secret immediately. It is shown only once.
A key belongs to its creator and the organization selected when it was created. Switching organizations in the dashboard does not change the key's organization.
Store the key in your backend's secret store or an n8n credential. Do not put it in browser code, public repositories, media URLs, or shared workflow exports.
All requests need this header:
Authorization: Bearer advnt_YOUR_API_KEYFor the examples below, set these variables in your shell using your own key:
export ADVNT_API_KEY='advnt_YOUR_API_KEY'
export ADVNT_API_BASE='https://advnt.co/api/v1'Find an account
curl --fail-with-body "$ADVNT_API_BASE/accounts" \
-H "Authorization: Bearer $ADVNT_API_KEY"The response lists your organization's TikTok and Instagram accounts:
{
"accounts": [
{
"id": "f398c27d-b48a-480b-8618-017d52c2a301",
"handle": "your.account",
"platform": "tiktok"
}
]
}Copy the account's id. Use the UUID, not its handle, in publishing requests.
Publish an image
Replace accountId with the ID returned above and the example media URL with a direct HTTPS URL to your image:
curl --fail-with-body "$ADVNT_API_BASE/posts" \
-H "Authorization: Bearer $ADVNT_API_KEY" \
-H "Content-Type: application/json" \
--data '{
"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" }
]
}'A successful request returns 201 Created:
{
"id": "ba664042-88b3-4bd4-ad9a-f52be5b54b19",
"jobId": null,
"state": "queued"
}Save id to track the post. jobId is operational information and may be null; you do not need it to check progress. A 201 response means the post was queued, not that it is already live.
Check progress
Replace the example UUID with the id from your create response:
curl --fail-with-body "$ADVNT_API_BASE/posts/ba664042-88b3-4bd4-ad9a-f52be5b54b19" \
-H "Authorization: Bearer $ADVNT_API_KEY"Poll every 30–60 seconds while the state is queued or posting. Stop on failed and inspect error. posted means the phone workflow finished or the result is unconfirmed—it is not proof the post is live. TikTok feed posts can later become published after live confirmation; Instagram posts and TikTok stories are not live-confirmed by this workflow.
Do not resend a create request just because a post is still queued or its live status is uncertain. Each accepted create request makes a new post. See post states and retry guidance.