ข้ามไปยังเนื้อหา
GrowSocmedเอกสารSocial media command center

List posts

List posts, newest schedule first; from/to filter by schedule time (calendar)

GET
/posts

List posts, newest schedule first; from/to filter by schedule time (calendar)

Authorization

apiKey
headerAuthorizationBearer <token>

API key from Developer → API keys (gs_…). An unbound key takes the workspace from the X-Workspace header.

Query Parameters

status?string
Value in"scheduled""publishing""published""partial""failed""canceled"
view?string
Value in"scheduled""history"
from?string
Formatdate-time
to?string
Formatdate-time
limit?integer
Range1 <= value <= 100
Default50
cursor?string

Response Body

OK

application/json
  1. response
data*array<>
next_cursor*string|null
Example Request
curl -X GET 'https://socmed.growpaces.com/api/v1/posts'
Example Response200
{  "data": [    {      "id": "string",      "text": "string",      "status": "scheduled",      "source": "string",      "scheduled_at": "string",      "created_at": "string",      "created_by": {        "id": "string",        "name": "string"      },      "media": [        {          "id": "string",          "type": "image",          "url": "string"        }      ],      "targets": [        {          "id": "string",          "account_id": "string",          "platform": "string",          "username": "string",          "display_name": "string",          "avatar_url": "string",          "status": "pending",          "text": "string",          "media_ids": [            "string"          ],          "permalink": "string",          "error_code": "string",          "error_message": "string",          "published_at": "string",          "options": {            "property1": null,            "property2": null          }        }      ]    }  ],  "next_cursor": "string"}