API reference
Authentication, publishing and folder upload endpoints, media limits, post states, and error handling.
Base URL: https://advnt.co/api/v1
All endpoints return JSON. Send JSON request bodies with Content-Type: application/json. Examples use fictitious UUIDs and media URLs; replace them with values from your organization and storage.
Authentication
Create a key in Organization Settings → API, then include it on every request:
Authorization: Bearer advnt_YOUR_API_KEY- A key acts as the member who created it, within the organization where it was created. It cannot access another organization's accounts or posts.
- Requests are rejected if the key is missing or revoked, its creator is banned, or its creator is no longer a member of that organization.
- The secret is shown only when created. If you lose it, create a replacement.
- Members can revoke their own keys in the API tab. Owners and admins can revoke any key in the organization.
- To rotate a key, create a new one, update your integration, verify access, then revoke the old one. Revoke a compromised key immediately.
- Revoking a key prevents future authentication. It does not cancel already accepted work or undo published posts.
Treat every key as a publishing credential. The current API has no per-key read-only scopes or configurable expiration. Use it from a trusted backend or automation service, not client-side browser code.
List accounts
GET /accounts
Returns the organization's TikTok and Instagram accounts, ordered by handle. There are no pagination parameters. Accounts on other platforms are not included.
curl --fail-with-body 'https://advnt.co/api/v1/accounts' \
-H "Authorization: Bearer $ADVNT_API_KEY"200 OK
{
"accounts": [
{
"id": "f398c27d-b48a-480b-8618-017d52c2a301",
"handle": "your.account",
"platform": "tiktok"
}
]
}| Field | Meaning |
|---|---|
accounts | Array of accounts. May be empty. |
id | Account UUID to pass as accountId when publishing. |
handle | Social account handle. |
platform | tiktok or instagram. |
This is an account list, not a phone-readiness check. A listed account can still be unavailable for publishing.
Create a post
POST /posts
Downloads your media and queues a post or story for immediate publishing on the account's assigned phone. There is no approval step, scheduled-time parameter, or draft-only mode on this endpoint.
The account must be configured for phone publishing and not paused or held by a safety check. If the phone is busy, the post waits in its queue and runs after the tasks ahead of it. Queue acceptance does not guarantee the phone is currently ready to execute.
Request body
{
"accountId": "f398c27d-b48a-480b-8618-017d52c2a301",
"type": "post",
"caption": "A new update from our team.",
"media": [
{ "type": "image", "url": "https://media.example.com/slide-1.jpg" },
{ "type": "image", "url": "https://media.example.com/slide-2.jpg" }
]
}| Field | Type | Required | Rules |
|---|---|---|---|
accountId | String | Yes | UUID returned by GET /accounts. Must belong to the key's organization. |
type | String | No | post for feed publishing, or story. Defaults to post. |
caption | String | No | Defaults to an empty string. Leading and trailing whitespace is trimmed. See the limits below. |
media | Array | Yes | At least one item: images only, or exactly one video. |
media[].type | String | Yes | image or video. |
media[].url | String | Yes | Direct HTTPS URL to downloadable media. Not a social-post page, local file path, or binary upload. |
Omit optional fields to use their defaults; sending null is invalid. Text-only posts are not supported. For Instagram, type: "post" with a video uses the Reel publishing flow; there is no separate reel type.
Media and caption limits
| Destination | Images | Video |
|---|---|---|
| TikTok feed or story | 1–9 on iPhone SE (3rd generation); 1–10 on iPhone 12 | Exactly one video |
| Instagram post (feed images or video Reel) | 1–7 | Exactly one video |
| Instagram story | Exactly one | Exactly one video |
The API accepts up to 10 images, but the phone's limit is enforced later. A 10-image TikTok request can be accepted and then fail on an iPhone SE. Use at most 9 images if you do not know the assigned phone model; the account-list endpoint does not expose it.
Do not mix images and video in one request. Videos have a 200 MiB (209,715,200 bytes) download limit, labeled "200 MB" in error messages. Videos are not transcoded; passing download, content-type, and size checks does not guarantee that a file is playable or accepted by the social app.
Use HTTPS URLs that ADVNT can download without cookies or extra headers. Signed URLs can be used while valid; they must remain accessible during request processing. The API downloads and stores the media before queuing the post. A webpage that displays an image is not the same as a direct image URL.
Images are resized and receive ADVNT's light anti-duplicate processing. The API does not draw captions or other text onto them, but the resulting files are not byte-for-byte copies of the originals. Include any visual text in your source images.
Captions are limited to 2,200 characters overall and 280 characters per line. Phone typing supports printable US-ASCII letters, digits, and punctuation, including hashtags and @. Emoji, accented letters, non-Latin text, and unsupported Unicode symbols are rejected.
Smart quotes, long dashes, and ellipses are converted to their plain-text equivalents. Whitespace within each line is collapsed, and lines are trimmed, so formatting may change. Expanded punctuation must still fit the line limit. TikTok stories ignore captions and skip the per-line typing check, although the request schema still enforces the 2,200-character total limit.
Success response
201 Created
{
"id": "ba664042-88b3-4bd4-ad9a-f52be5b54b19",
"jobId": null,
"state": "queued"
}| Field | Type | Meaning |
|---|---|---|
id | String | Post UUID. Save it to check progress. |
jobId | null | Always null: device jobs belong to the admin fleet. Use the post id to track progress. |
state | String | queued. Publishing happens asynchronously. |
Video story example
This body works with a TikTok or Instagram account configured for phone publishing:
{
"accountId": "f398c27d-b48a-480b-8618-017d52c2a301",
"type": "story",
"media": [
{ "type": "video", "url": "https://media.example.com/story.mp4" }
]
}Get a post
GET /posts/{id}
Replace {id} with the post UUID, not the phone job ID. Only posts and accounts belonging to the key's organization are accessible.
curl --fail-with-body \
'https://advnt.co/api/v1/posts/ba664042-88b3-4bd4-ad9a-f52be5b54b19' \
-H "Authorization: Bearer $ADVNT_API_KEY"200 OK
{
"id": "ba664042-88b3-4bd4-ad9a-f52be5b54b19",
"accountId": "f398c27d-b48a-480b-8618-017d52c2a301",
"state": "queued",
"error": null,
"jobId": null,
"createdAt": "2026-10-01T12:00:00.000Z",
"publishedAt": null
}| Field | Type | Meaning |
|---|---|---|
id | String | Post UUID. |
accountId | String | Account UUID. |
state | String | One of the states below. |
error | String or null | Customer-facing failure message when state is failed; otherwise null. Internal device diagnostics are not exposed. |
jobId | null | Always null. Device job identifiers are admin-only. |
createdAt | String | Creation timestamp in ISO 8601 format. |
publishedAt | String or null | Recorded publication timestamp when available. A null value alone does not mean publishing failed. |
Post states
| State | Meaning | What to do |
|---|---|---|
draft | No phone job is associated with the post yet. This can occur for posts created in the dashboard. | Investigate if unexpected; do not treat it as published. |
queued | Waiting for the phone or staging media. | Poll again in 30–60 seconds. |
posting | The phone job has been dispatched or is running. | Continue polling. |
posted | The workflow finished or the posting result is unconfirmed. Not proof the content is live. | Record the outcome without resubmitting automatically. |
published | ADVNT has recorded the post as published. TikTok feed posts can reach this state after live confirmation. | Record success and stop polling. |
failed | The phone job failed. | Read error and check ADVNT before deciding to resubmit. |
Posted is not the same as published
Instagram posts and TikTok stories have no live-confirmation step in this workflow and can remain posted. TikTok feed posts may move from posted to published after synchronization, but confirmation is not guaranteed. Do not poll indefinitely or create another post just because confirmation has not arrived.
TikTok feed confirmation uses caption matching. Posts with empty or punctuation-only captions may publish successfully yet remain posted.
Use a bounded polling loop and retain the post ID if you stop waiting. An unchanged queued or posting state is not a completed result. There is no completion webhook or API cancellation endpoint.
Upload to a folder
POST /content
Downloads images and videos into a named folder, one post per file with no text. Nothing is posted right away: each account set to auto-post from that folder posts each of them once from its phone, with an AI caption.
curl --fail-with-body 'https://advnt.co/api/v1/content' \
-H "Authorization: Bearer $ADVNT_API_KEY" \
-H "Content-Type: application/json" \
--data '{
"folder": "Launch week",
"files": [
{ "type": "video", "url": "https://media.example.com/hook-1.mp4", "name": "Hook 1" },
{ "type": "image", "url": "https://media.example.com/cover.jpg" }
]
}'| Field | Type | Required | Rules |
|---|---|---|---|
folder | String | Yes | Folder name, 1–80 characters. Created if your organization has no folder with exactly this name. |
files | Array | Yes | 1–10 files. Images and videos can be mixed. |
files[].type | String | Yes | image or video. |
files[].url | String | Yes | Direct HTTPS URL to the file, under the same rules as post media. |
files[].name | String | No | The file's name (the AI caption reads it). Defaults to the last part of the URL path. |
Each file has the 50 MiB download limit. Images are stored as WebP, at most 1536 px on their longer side. Videos are stored as they are.
All or nothing: if any file fails to download or process, the request returns 422 with the failing file's index (for example, files.1: Could not download image. Status 404.) and adds none of the files. The folder may still be created.
201 Created
{
"folder": { "id": "0c5e3d43-5a8f-4a8e-9d55-6f2a0a1c7b10", "name": "Launch week" },
"files": [
{ "id": "7d0f6a4e-1b2c-4c3d-8e9f-0a1b2c3d4e5f", "type": "video", "name": "Hook 1" },
{ "id": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d", "type": "image", "name": "cover.jpg" }
]
}Errors
Errors from these endpoints use an HTTP error status and this JSON shape:
{ "error": "Missing or invalid API key." }| Status | Meaning | Action |
|---|---|---|
400 | Invalid JSON, missing or invalid fields, unsupported platform, or incompatible media/caption. | Correct the body using the response's error message. |
401 | Missing, invalid, or revoked key; or the creator no longer has access. | Check your header, key, and organization membership. |
403 | Content submission is not enabled for the workspace, or TikTok automation is disabled. | Check workspace access or contact support. |
404 | Account or post not found in your organization; malformed post IDs also return this status. | Use an ID returned for the same organization. |
409 | The post could not be queued, for example because publishing setup is unavailable. | Check ADVNT or contact support. The newly created post record is removed; resolve the issue before resubmitting. |
422 | Media could not be downloaded or prepared. | Check the URL, accessibility, media type, and video size. |
500 | Unexpected server error. | Retain request details and check ADVNT before retrying a create request. |
Retry safety
GET requests can be repeated to check the same account list or post. POST /posts and POST /content are not idempotent: each accepted request creates more posts or files, even if its body is identical. There is no supported Idempotency-Key header.
Disable blind automatic retries for publishing requests. If a timeout or network failure hides the create response, the server may already have queued the post. Check the dashboard or contact support before repeating it. If you received a post ID, poll that ID instead of recreating the post.