> For the complete documentation index, see [llms.txt](https://help.contouron.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.contouron.com/api/post/get-post-status.md).

# Get Post Status

> For the complete documentation index, see [llms.txt](https://help.contouron.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.contouron.com/api/publish-post/get-post.md).

## Get Post Status

### Check Post Status

#### Endpoint

**Base URL:** `https://backend.contouron.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, 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.contouron.com/failed>.

#### Example

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://help.contouron.com/api/post/get-post-status.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
