Single status check
Use account and publish identifiers to check a specific post. For TikTok, include mediaType when needed to resolve the correct public post URL behavior. The response mirrors the platform status object, including status, public_post_url, and, for TikTok, uploaded_bytes and fail_reason.
const API_BASE_URL = 'https://api.wahdx.com';
const API_KEY = process.env.WAHDX_API_KEY;
await fetch(API_BASE_URL + '/api/content/status/{accountId}/{publishId}?mediaType=video', {
method: 'GET',
headers: {
'X-API-Key': API_KEY
}
});
import os
import requests
API_BASE_URL = 'https://api.wahdx.com'
API_KEY = os.environ['WAHDX_API_KEY']
response = requests.get(
API_BASE_URL + '/api/content/status/{accountId}/{publishId}?mediaType=video',
headers={
'X-API-Key': API_KEY,
},
timeout=30,
)
response.raise_for_status()
print(response.json())
curl -X GET "https://api.wahdx.com/api/content/status/{accountId}/{publishId}?mediaType=video" \
-H "X-API-Key: $WAHDX_API_KEY"
Example response · 200
{
"success": true,
"accountId": "TIKTOK_ACCOUNT_ID",
"platform": "tiktok",
"data": {
"publish_id": "v_pub_url~v2.7300000000000000000",
"platform": "tiktok",
"status": "PUBLISH_COMPLETE",
"uploaded_bytes": 10485760,
"public_post_url": "https://www.tiktok.com/@wahdx_creator/video/7300000000000000000",
"fail_reason": null,
"data": {
"status": "PUBLISH_COMPLETE",
"uploaded_bytes": 10485760,
"publicaly_available_post_id": [
"7300000000000000000"
],
"fail_reason": ""
}
}
}
Batch status check
Batch checks are useful when your system monitors multiple posts after scheduling or publishing requests. The response keeps the submitted order, groups results by accountId, and marks each entry as success or failure.
const API_BASE_URL = 'https://api.wahdx.com';
const API_KEY = process.env.WAHDX_API_KEY;
await fetch(API_BASE_URL + '/api/content/status/batch', {
method: 'POST',
headers: {
'X-API-Key': API_KEY,
'Content-Type': 'application/json'
},
body: JSON.stringify({
checks: [
{ accountId: 'ACCOUNT_ID_1', publishId: 'PUBLISH_ID_1', mediaType: 'video' },
{ accountId: 'ACCOUNT_ID_2', publishId: 'PUBLISH_ID_2' }
]
})
});
import os
import requests
API_BASE_URL = 'https://api.wahdx.com'
API_KEY = os.environ['WAHDX_API_KEY']
response = requests.post(
API_BASE_URL + '/api/content/status/batch',
headers={
'X-API-Key': API_KEY,
'Content-Type': 'application/json',
},
json={
'checks': [
{'accountId': 'ACCOUNT_ID_1', 'publishId': 'PUBLISH_ID_1', 'mediaType': 'video'},
{'accountId': 'ACCOUNT_ID_2', 'publishId': 'PUBLISH_ID_2'},
]
},
timeout=30,
)
response.raise_for_status()
print(response.json())
curl -X POST "https://api.wahdx.com/api/content/status/batch" \
-H "X-API-Key: $WAHDX_API_KEY" \
-H "Content-Type: application/json" \
--data-raw '{
"checks": [
{ "accountId": "ACCOUNT_ID_1", "publishId": "PUBLISH_ID_1", "mediaType": "video" },
{ "accountId": "ACCOUNT_ID_2", "publishId": "PUBLISH_ID_2" }
]
}'
Example response · 200
{
"success": true,
"data": {
"results": [
{
"accountId": "ACCOUNT_ID_1",
"platform": "tiktok",
"publishId": "PUBLISH_ID_1",
"success": true,
"status": "PUBLISH_COMPLETE",
"public_post_url": "https://www.tiktok.com/@wahdx_creator/video/7300000000000000000",
"source": "ledger"
},
{
"accountId": "ACCOUNT_ID_2",
"platform": "tiktok",
"publishId": "PUBLISH_ID_2",
"success": false,
"status": "FAILED",
"public_post_url": null,
"error": "Publish failed at provider",
"source": "ledger"
}
],
"byAccountId": {
"ACCOUNT_ID_1": [
{
"accountId": "ACCOUNT_ID_1",
"platform": "tiktok",
"publishId": "PUBLISH_ID_1",
"success": true,
"status": "PUBLISH_COMPLETE",
"public_post_url": "https://www.tiktok.com/@wahdx_creator/video/7300000000000000000",
"source": "ledger"
}
],
"ACCOUNT_ID_2": [
{
"accountId": "ACCOUNT_ID_2",
"platform": "tiktok",
"publishId": "PUBLISH_ID_2",
"success": false,
"status": "FAILED",
"public_post_url": null,
"error": "Publish failed at provider",
"source": "ledger"
}
]
}
}
}
Request status: GET /api/content/requests/{requestId}
Every publish response includes a requestId. Use it to fetch the aggregate request status and per-item results, which is the reliable way to recover after a client timeout. You can also look up a request by the Idempotency-Key you sent. The response has the same shape on every platform: one request-level status plus one result entry per published item.
const API_BASE_URL = 'https://api.wahdx.com';
const API_KEY = process.env.WAHDX_API_KEY;
// Look up by requestId returned by the publish response...
await fetch(API_BASE_URL + '/api/content/requests/REQUEST_ID', {
method: 'GET',
headers: { 'X-API-Key': API_KEY }
});
// ...or by the Idempotency-Key used for the original request.
await fetch(
API_BASE_URL + '/api/content/requests?idempotencyKey=campaign-thread-2026-08-01',
{ method: 'GET', headers: { 'X-API-Key': API_KEY } }
);
import os
import requests
API_BASE_URL = 'https://api.wahdx.com'
API_KEY = os.environ['WAHDX_API_KEY']
# Look up by requestId returned by the publish response...
response = requests.get(
API_BASE_URL + '/api/content/requests/REQUEST_ID',
headers={'X-API-Key': API_KEY},
timeout=30,
)
# ...or by the Idempotency-Key used for the original request.
response = requests.get(
API_BASE_URL + '/api/content/requests',
headers={'X-API-Key': API_KEY},
params={'idempotencyKey': 'campaign-thread-2026-08-01'},
timeout=30,
)
response.raise_for_status()
print(response.json())
# By requestId
curl -X GET "https://api.wahdx.com/api/content/requests/REQUEST_ID" \
-H "X-API-Key: $WAHDX_API_KEY"
# By Idempotency-Key
curl -X GET "https://api.wahdx.com/api/content/requests?idempotencyKey=campaign-thread-2026-08-01" \
-H "X-API-Key: $WAHDX_API_KEY"
Example response · 200
{
"success": true,
"requestId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"status": "succeeded",
"platform": "threads",
"accountId": "THREADS_ACCOUNT_ID",
"mediaType": "text",
"itemCount": 3,
"results": [
{
"index": 0,
"publishId": "17890000000000001",
"status": "PUBLISH_COMPLETE",
"public_post_url": "https://www.threads.com/@wahdx_threads/post/CxItem1"
},
{
"index": 1,
"publishId": "17890000000000002",
"status": "PUBLISH_COMPLETE",
"public_post_url": "https://www.threads.com/@wahdx_threads/post/CxItem2"
},
{
"index": 2,
"publishId": "17890000000000003",
"status": "PUBLISH_COMPLETE",
"public_post_url": "https://www.threads.com/@wahdx_threads/post/CxItem3"
}
],
"createdAt": "2026-08-01T09:12:04.512Z",
"completedAt": "2026-08-01T09:14:52.107Z"
}
Response fields
The envelope is identical across platforms. Only platform, mediaType, itemCount, and the results entries change with the publish you are checking.
Fields in the GET /api/content/requests/{requestId} response| Field | Type | Description |
|---|
| success | boolean | True on a 200 response. |
| requestId | string | UUID of the publish request. Matches the requestId returned by the publish call. |
| status | string | Request-level status: pending, processing, succeeded, partially_succeeded, failed, or cancelled. |
| platform | string | First target platform of the request: tiktok, instagram, threads, facebook, youtube, or pinterest. |
| accountId | string | null | Connected account that published the request. Null when no attempt was recorded. |
| mediaType | string | null | video, photo, or text, as sent on the publish request. |
| itemCount | number | null | Number of items in the request. 1 for a single post, up to 10 for a thread sequence. |
| results | array | One entry per item, ordered by index. See the per-item fields below. |
| createdAt | string | null | ISO 8601 timestamp when the request was recorded. |
| completedAt | string | null | ISO 8601 timestamp when the request reached a terminal status, otherwise null. |
Request-level status values
The status field summarizes the whole request. A thread sequence reports partially_succeeded when some items published and others failed, so read the results array before treating the request as a total failure. If the parent request has not been rolled up yet but every item already finished, the endpoint derives the status from the items.
Request-level status values| Status | Meaning |
|---|
| pending | The request is recorded but no provider attempt has started. |
| processing | At least one attempt is running. Thread sequences move through items one at a time. |
| succeeded | Every item published. |
| partially_succeeded | The request finished with at least one item published and at least one failed. |
| failed | No item published. |
| cancelled | The request was cancelled before publishing (scheduled posts). |
Per-item result fields
Each entry in results describes one published item. A thread sequence returns one entry per item, so index maps to the position in threadItems.
Fields in each results entry| Field | Type | Description |
|---|
| index | number | Item position. 0 for a single post; the threadItems index for a sequence. |
| publishId | string | null | Provider publish ID. Pass it to GET /api/content/status/{accountId}/{publishId} for a direct status check. |
| status | string | null | Provider status when available, otherwise the canonical attempt status: pending, in_progress, succeeded, failed, or skipped. |
| public_post_url | string | null | Public post URL once the platform exposes it. Null while publishing is still running. |
| error | string | Provider error message, present only when this item failed. |
Response by platform
Per-item status and public post URL differ by platform. Non-TikTok providers return PUBLISH_COMPLETE with a permalink once publishing succeeds. TikTok reports its own processing states and exposes the public post URL only after the provider finishes. When an item fails, results[].status is failed and results[].error carries the provider message; when an item is not attempted, the status is skipped.
Per-platform results[].status and public_post_url| Platform | mediaType | results[].status | public_post_url |
|---|
| TikTok | video, photo | PUBLISH_INITIATED or INBOX_PENDING while starting, then PROCESSING_UPLOAD, PROCESSING_DOWNLOAD, SEND_TO_USER_INBOX, PUBLISH_COMPLETE, or FAILED | TikTok video or photo URL; null until the provider exposes the public post ID |
| Instagram | video, photo | PUBLISH_COMPLETE | Instagram post permalink |
| Threads | text, photo, video | PUBLISH_COMPLETE per item | Threads post permalink per item |
| Facebook | video, photo, text | PUBLISH_COMPLETE | Facebook post permalink |
| YouTube | video | PUBLISH_COMPLETE | https://youtu.be/{videoId} |
| Pinterest | photo, video | PUBLISH_COMPLETE | https://www.pinterest.com/pin/{pinId}/ |
HTTP status codes
A successful lookup answers 200 with the payload above. Errors use the standard error envelope.
HTTP status codes for the request status endpoint| Status | Meaning |
|---|
| 200 | Request status returned. |
| 400 | requestId is missing or not a valid UUID, or idempotencyKey is invalid. |
| 404 | The request does not exist for the authenticated user, or the publishing ledger is disabled in this environment. |
| 500 | Unexpected server error. |
Example: TikTok video in progress
TikTok keeps reporting its own processing states. Poll the request until results[].status is PUBLISH_COMPLETE or FAILED and public_post_url is set.
{
"success": true,
"requestId": "8f2b...c41d",
"status": "processing",
"platform": "tiktok",
"accountId": "1b7f...d010",
"mediaType": "video",
"itemCount": 1,
"results": [
{
"index": 0,
"publishId": "v_pub_file~v2-1.7...",
"status": "PROCESSING_DOWNLOAD",
"public_post_url": null
}
],
"createdAt": "2026-10-16T09:12:04.512Z",
"completedAt": null
}
Example: Instagram photo published
Instagram resolves a permalink, so the request is terminal as soon as the post is live.
{
"success": true,
"requestId": "5a10...7e2c",
"status": "succeeded",
"platform": "instagram",
"accountId": "5c1a...b204",
"mediaType": "photo",
"itemCount": 1,
"results": [
{
"index": 0,
"publishId": "17895...4550",
"status": "PUBLISH_COMPLETE",
"public_post_url": "https://www.instagram.com/p/EXAMPLExyz/"
}
],
"createdAt": "2026-10-16T09:12:04.512Z",
"completedAt": "2026-10-16T09:12:31.884Z"
}
Example: Threads sequence partially published
A thread sequence returns one result per item. When one item fails after others published, the request status is partially_succeeded and itemCount matches the number of threadItems.
{
"success": true,
"requestId": "c4e1...9b73",
"status": "partially_succeeded",
"platform": "threads",
"accountId": "a91c...4f08",
"mediaType": "text",
"itemCount": 3,
"results": [
{ "index": 0, "publishId": "1790...0001", "status": "PUBLISH_COMPLETE", "public_post_url": "https://www.threads.net/@brand/post/CxC..." },
{ "index": 1, "publishId": "1790...0002", "status": "PUBLISH_COMPLETE", "public_post_url": "https://www.threads.net/@brand/post/CxE..." },
{ "index": 2, "publishId": null, "status": "failed", "error": "The media could not be processed in time." }
],
"createdAt": "2026-10-16T09:12:04.512Z",
"completedAt": "2026-10-16T09:14:52.107Z"
}
Example: Facebook text post published
Facebook supports text-only posts, so mediaType is text and the response carries the post permalink.
{
"success": true,
"requestId": "2f9a...31d7",
"status": "succeeded",
"platform": "facebook",
"accountId": "77b2...0e5a",
"mediaType": "text",
"itemCount": 1,
"results": [
{
"index": 0,
"publishId": "1221...4321",
"status": "PUBLISH_COMPLETE",
"public_post_url": "https://www.facebook.com/123456789/posts/987654321"
}
],
"createdAt": "2026-10-16T09:12:04.512Z",
"completedAt": "2026-10-16T09:12:18.220Z"
}
Example: YouTube Short published
YouTube requires a video. The public post URL is built from the returned video ID.
{
"success": true,
"requestId": "9b3c...e845",
"status": "succeeded",
"platform": "youtube",
"accountId": "42d8...c611",
"mediaType": "video",
"itemCount": 1,
"results": [
{
"index": 0,
"publishId": "AbCdEf12345",
"status": "PUBLISH_COMPLETE",
"public_post_url": "https://youtu.be/AbCdEf12345"
}
],
"createdAt": "2026-10-16T09:12:04.512Z",
"completedAt": "2026-10-16T09:12:47.331Z"
}
Example: Pinterest Pin published
A Pinterest request creates one Pin. When the Pin is created the request is terminal.
{
"success": true,
"requestId": "e07d...24b9",
"status": "succeeded",
"platform": "pinterest",
"accountId": "63f1...9a20",
"mediaType": "photo",
"itemCount": 1,
"results": [
{
"index": 0,
"publishId": "10923...8842",
"status": "PUBLISH_COMPLETE",
"public_post_url": "https://www.pinterest.com/pin/10923...8842/"
}
],
"createdAt": "2026-10-16T09:12:04.512Z",
"completedAt": "2026-10-16T09:12:22.045Z"
}
Operational states to monitor
Design your integration to surface status clearly to content operators.
- Queued: content is waiting to be processed.
- Processing: the publishing workflow is running.
- Published: content has completed successfully.
- Failed: the team should review and resolve the issue.