Skip to main content
Back to API docs

Post status tracking

Track Social Post Status with Wahdx Connection API

Status tracking closes the loop after a publishing request. Teams need to know whether a post is still queued, currently processing, already published, or requires attention. Wahdx Connection supports individual and batch-style status workflows so backend integrations and content teams can keep operational visibility.

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
  }
});
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' }
    ]
  })
});
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 } }
);
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
FieldTypeDescription
successbooleanTrue on a 200 response.
requestIdstringUUID of the publish request. Matches the requestId returned by the publish call.
statusstringRequest-level status: pending, processing, succeeded, partially_succeeded, failed, or cancelled.
platformstringFirst target platform of the request: tiktok, instagram, threads, facebook, youtube, or pinterest.
accountIdstring | nullConnected account that published the request. Null when no attempt was recorded.
mediaTypestring | nullvideo, photo, or text, as sent on the publish request.
itemCountnumber | nullNumber of items in the request. 1 for a single post, up to 10 for a thread sequence.
resultsarrayOne entry per item, ordered by index. See the per-item fields below.
createdAtstring | nullISO 8601 timestamp when the request was recorded.
completedAtstring | nullISO 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
StatusMeaning
pendingThe request is recorded but no provider attempt has started.
processingAt least one attempt is running. Thread sequences move through items one at a time.
succeededEvery item published.
partially_succeededThe request finished with at least one item published and at least one failed.
failedNo item published.
cancelledThe 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
FieldTypeDescription
indexnumberItem position. 0 for a single post; the threadItems index for a sequence.
publishIdstring | nullProvider publish ID. Pass it to GET /api/content/status/{accountId}/{publishId} for a direct status check.
statusstring | nullProvider status when available, otherwise the canonical attempt status: pending, in_progress, succeeded, failed, or skipped.
public_post_urlstring | nullPublic post URL once the platform exposes it. Null while publishing is still running.
errorstringProvider 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
PlatformmediaTyperesults[].statuspublic_post_url
TikTokvideo, photoPUBLISH_INITIATED or INBOX_PENDING while starting, then PROCESSING_UPLOAD, PROCESSING_DOWNLOAD, SEND_TO_USER_INBOX, PUBLISH_COMPLETE, or FAILEDTikTok video or photo URL; null until the provider exposes the public post ID
Instagramvideo, photoPUBLISH_COMPLETEInstagram post permalink
Threadstext, photo, videoPUBLISH_COMPLETE per itemThreads post permalink per item
Facebookvideo, photo, textPUBLISH_COMPLETEFacebook post permalink
YouTubevideoPUBLISH_COMPLETEhttps://youtu.be/{videoId}
Pinterestphoto, videoPUBLISH_COMPLETEhttps://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
StatusMeaning
200Request status returned.
400requestId is missing or not a valid UUID, or idempotencyKey is invalid.
404The request does not exist for the authenticated user, or the publishing ledger is disabled in this environment.
500Unexpected 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.

FAQ

Common questions about this API topic.

Can I check more than one post status?

Yes. Use the batch status endpoint when your backend needs to monitor multiple posts.

Why should I include mediaType for TikTok checks?

It helps the API return the correct status and public post URL behavior for video or photo workflows.

What does partially_succeeded mean?

The request finished with at least one item published and at least one item failed. This happens with thread sequences and with requests that target several accounts. Read the results array: each failed entry carries an error message.

Why is public_post_url null for a TikTok item?

TikTok reports its own processing states (PROCESSING_UPLOAD, PROCESSING_DOWNLOAD, SEND_TO_USER_INBOX) before it exposes the public post ID. Keep polling the request until results[].status is PUBLISH_COMPLETE and public_post_url is set.

Who should use status tracking?

Agencies, brands, and backend integrations that need reliable publishing visibility should use status tracking.