# Get Post Status

## Check Post Status

### Endpoint

**Base URL:** `https://backend.blotato.com/v2`

**URL:** `/posts/:postSubmissionId`

**Method:** `GET`

**Rate Limit:** 60 requests / minute

### Description

Poll this endpoint to check the publishing status of a post. After submitting a post with [Create Post](/api/publish-post.md), use the returned `postSubmissionId` to track its progress.

### Request

#### Path Parameters

| Field              | Type     | Required | Description                                                  |
| ------------------ | -------- | -------- | ------------------------------------------------------------ |
| `postSubmissionId` | `string` | Yes      | The post submission ID returned by the Create Post endpoint. |

### Responses

#### Success Response

**Status Code:** `200 OK`

The response shape depends on the current status:

**Published (terminal - success):**

```json
{
  "postSubmissionId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "status": "published",
  "publicUrl": "https://x.com/user/status/123456"
}
```

**Failed (terminal - error):**

```json
{
  "postSubmissionId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "status": "failed",
  "errorMessage": "Unsupported media type"
}
```

**In Progress (keep polling):**

```json
{
  "postSubmissionId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "status": "in-progress"
}
```

#### Response Keys

| Field              | Type     | Description                                                             |
| ------------------ | -------- | ----------------------------------------------------------------------- |
| `postSubmissionId` | `string` | The post submission ID.                                                 |
| `status`           | `string` | One of: `in-progress`, `published`, `failed`.                           |
| `publicUrl`        | `string` | The live URL of the published post. Present when status is `published`. |
| `errorMessage`     | `string` | Description of the failure. Present when status is `failed`.            |

### Polling Strategy

1. Poll every 2 seconds after submitting a post.
2. Continue while status is `in-progress`.
3. Stop when status is `published` (success) or `failed` (error).
4. Do not retry on `failed` -- most failures are permanent. Check `errorMessage` for details.

Failed posts are also visible at <https://my.blotato.com/failed>.

### Example

```http
GET https://backend.blotato.com/v2/posts/a1b2c3d4-e5f6-7890-abcd-ef1234567890 HTTP/1.1
blotato-api-key: YOUR_API_KEY
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.blotato.com/api/publish-post/get-post.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
