FeedHorizon API
Posts
GET
/posts/{id}

Fetch a single post by ID, including media attachments.

Authorization

bearerAuth
AuthorizationBearer <token>

API key with fh_ prefix. Pass as Authorization: Bearer fh_...

In: header

Path Parameters

id*string

Response Body

application/json

application/json

curl -X GET "https://app.feedhorizon.dev/api/v1/posts/string"
{
  "data": {
    "id": "string",
    "content": "string",
    "status": "DRAFT",
    "publishMode": "schedule",
    "scheduledAt": "2019-08-24T14:15:22Z",
    "timezone": "Europe/Berlin",
    "publishedAt": "2019-08-24T14:15:22Z",
    "platforms": [
      "linkedin"
    ],
    "platformPostIds": {
      "property1": "string",
      "property2": "string"
    },
    "errorMessage": "string",
    "profileId": "string",
    "userId": "string",
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z",
    "media": [
      {
        "id": "string",
        "postId": "string",
        "url": "string",
        "storagePath": "string",
        "type": "string",
        "filename": "string",
        "sizeBytes": 0,
        "sortOrder": 0,
        "createdAt": "2019-08-24T14:15:22Z"
      }
    ]
  }
}
{
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "string",
    "details": [
      {
        "field": "string",
        "message": "string"
      }
    ]
  }
}