Get post details

Get detailed information about a specific post by its ID

GET/v1/posts/{id}

Path Parameters

idstring

Response Body

curl -X GET "https://api.outstand.so/v1/posts/string"
{
  "success": true,
  "post": {
    "id": "9dyJS",
    "orgId": "abc123",
    "publishedAt": "2019-08-24T14:15:22Z",
    "scheduledAt": "2019-08-24T14:15:22Z",
    "isDraft": true,
    "createdAt": "2019-08-24T14:15:22Z",
    "socialAccounts": [
      {
        "id": "9dyJS",
        "nickname": "string",
        "network": "string",
        "username": "string"
      }
    ],
    "containers": [
      {
        "id": "8xKmL",
        "content": "string",
        "media": [
          {
            "url": "string",
            "filename": "string"
          }
        ]
      }
    ]
  }
}
{
  "success": false,
  "error": "Invalid payload",
  "details": {
    "content": {
      "_errors": [
        "Required"
      ]
    }
  }
}
{
  "success": false,
  "error": "Invalid payload",
  "details": {
    "content": {
      "_errors": [
        "Required"
      ]
    }
  }
}
{
  "success": false,
  "error": "Internal server error",
  "message": "Database connection failed"
}