# Get Post

Source: https://recoupable.dev/docs/api-reference/publishing/get

Get post

## GET /api/posts/{id}

Full OpenAPI specification: https://recoupable.dev/docs/spec/social.json

## Authentication

This operation requires one of the security alternatives in the specification below. Security scheme definitions are included where present in the published specification.

[Authentication guide](https://recoupable.dev/docs/authentication)

## Operation and referenced schemas

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Recoup API - Social",
    "description": "API documentation for the Recoup platform - an AI agent platform for the music industry",
    "license": {
      "name": "MIT"
    },
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.recoupable.dev"
    }
  ],
  "paths": {
    "/api/posts/{id}": {
      "get": {
        "summary": "Get post",
        "description": "**Availability: pending.** This endpoint is specified ahead of implementation and is not yet live on the hosted API; it ships through recoupable/app#2241. Do not rely on it until this notice is removed.\n\nOne post, with its status, live `post_url` once posted, `error_message` if it failed, and `text_verified` once the live text has been re-read. This is the polling target after [Create Post](/docs/api-reference/publishing/create).",
        "security": [
          {
            "apiKeyAuth": []
          },
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "The post's id, from [Create Post](/docs/api-reference/publishing/create)."
          },
          {
            "name": "account_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Optional. Act on behalf of another account you can access. Defaults to the calling account."
          }
        ],
        "responses": {
          "200": {
            "description": "The post.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostDetailResponse"
                }
              }
            }
          },
          "400": {
            "description": "`id` is not a valid uuid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Access denied to this post's account.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No post with that id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostErrorResponse"
                }
              }
            }
          }
        },
        "x-recoup-availability": "pending"
      }
    }
  },
  "components": {
    "schemas": {
      "PostDetailResponse": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "success"
            ],
            "description": "Status of the request"
          },
          "post": {
            "$ref": "#/components/schemas/Post"
          }
        }
      },
      "PostErrorResponse": {
        "type": "object",
        "required": [
          "status",
          "error"
        ],
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "error"
            ],
            "description": "Always `error`"
          },
          "missing_fields": {
            "type": "array",
            "description": "JSON path segments to the first field that failed validation, e.g. `[\"description\"]`",
            "items": {
              "oneOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            }
          },
          "error": {
            "type": "string",
            "description": "Human-readable error message"
          }
        }
      },
      "Post": {
        "type": "object",
        "description": "One post to one account.",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "The post's id."
          },
          "account_id": {
            "type": "string",
            "format": "uuid",
            "description": "The account whose connection posts."
          },
          "platform": {
            "$ref": "#/components/schemas/PostPlatform"
          },
          "sub_account_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "LinkedIn organization URN when posting as a Page, else null."
          },
          "status": {
            "$ref": "#/components/schemas/PostStatus"
          },
          "video_url": {
            "type": "string",
            "description": "The video that is or was published."
          },
          "cover_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "The cover or thumbnail image, if any."
          },
          "title": {
            "type": [
              "string",
              "null"
            ],
            "description": "Submitted title."
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Submitted body text."
          },
          "privacy": {
            "type": [
              "string",
              "null"
            ],
            "description": "Submitted YouTube visibility."
          },
          "tags": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "Submitted YouTube tags."
          },
          "publish_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Requested publish time. Null when published on creation."
          },
          "post_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Live URL on the platform. Null until `posted`."
          },
          "error_message": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why publishing failed, as returned by the platform (e.g. a daily upload quota). Null unless `status` is `failed`."
          },
          "text_verified": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Whether the live text, re-read from the platform after posting, equals the submitted `title`/`description`. Null until checked."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the post was created."
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the post last changed."
          }
        }
      },
      "PostPlatform": {
        "type": "string",
        "enum": [
          "instagram",
          "x",
          "linkedin",
          "youtube"
        ],
        "description": "Target platform. The account must have this platform connected."
      },
      "PostStatus": {
        "type": "string",
        "enum": [
          "scheduled",
          "publishing",
          "posted",
          "failed",
          "cancelled"
        ],
        "description": "Lifecycle phase. `scheduled` until `publish_at`, `publishing` while the platform upload runs, then `posted` or `failed`. `cancelled` only from `scheduled`."
      }
    },
    "securitySchemes": {
      "apiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key",
        "description": "Your Recoup API key. [Learn more](/docs/quickstart#api-keys)."
      },
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  }
}
```
