Postly
  1. Posts
Postly
  • Overview
  • Workspaces
    • Fetch workspaces
      GET
  • Social Accounts
    • Fetch social accounts
      GET
  • Files
    • Upload a file
      POST
    • Fetch files
      GET
    • Delete a file
      DELETE
  • Posts
    • Create a post
      POST
    • Update a post
      PUT
    • Fetch a post
      GET
    • Fetch posts
      GET
    • Delete a post
      DELETE
  1. Posts

Fetch a post

GET
/posts/{postId}
Retrieve a single post by id
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.postly.ai/v2/posts/683594f9d6bb51f6b3000000' \
--header 'X-API-KEY;'
Response Response Example
200 - Example 1
{
    "code": "string",
    "message": "string",
    "data": {
        "_id": "string",
        "text": "string",
        "media": [
            {
                "url": "string",
                "type": "string"
            }
        ],
        "timezone": "string",
        "one_off_schedule": {
            "one_off_date": "string",
            "time": "string",
            "timezone": "string"
        },
        "recurring_schedule": {
            "expression": "string",
            "start_date": "string",
            "end_date": "string",
            "time": "string",
            "timezone": "string",
            "week_days": [
                {
                    "num": "string",
                    "value": true
                }
            ],
            "day_of_month": 0,
            "rate_value": 0,
            "rate_unit": "string"
        },
        "created_at": "string",
        "updated_at": "string"
    }
}

Request

Authorization
API Key
Add parameter in header
X-API-KEY
Example:
X-API-KEY: ********************
or
Path Params
postId
string 
required
24-character hexadecimal identifier for the post
Example:
683594f9d6bb51f6b3000000

Responses

🟢200Success
application/json
Body
code
string 
required
200
message
string 
required
Post retrieved successfully
data
object (Post) 
required
Post details
_id
string 
required
24-character hexadecimal post identifier
text
string 
optional
Text content of the post
media
array [object {2}] 
optional
Post media
timezone
string 
optional
Timezone used for scheduling (IANA format)
one_off_schedule
object (OneOffSchedule) 
optional
Optional one off schedule for one time posts
recurring_schedule
object (RecurringSchedule) 
optional
Optional recurring schedule for recurring posts
created_at
string 
required
Date string when post was created
updated_at
string 
required
Date string when post was updated
🟠400BadRequestResponse
🟠401UnAuthorizedResponse
Modified at 2025-05-30 00:09:01
Previous
Update a post
Next
Fetch posts
Built with