GET/v1/posts

List posts

Returns your posts newest-first, including caption, status, schedule time, and signed media URLs for preview.

Request

bash·cURL
curl -X GET "https://YOUR_PROJECT.supabase.co/functions/v1/public-api/v1/posts" \
  -H "Authorization: Bearer px_live_YOUR_KEY"

Query parameters

NameTypeDescription
limitintegerPage size. Range `1–200`, default `100`.

Response

json·200 OK
{
  "data": [
    {
      "id": "post-uuid",
      "caption": "Hello from the API",
      "status": "scheduled",
      "scheduled_at": "2026-06-22T14:00:00Z",
      "published_at": null,
      "media": ["https://…/storage/v1/object/public/images/…"],
      "media_urls": ["https://…signed…"],
      "social_accounts": ["a1b2c3d4-e5f6-7890-abcd-ef1234567890"],
      "is_draft": false,
      "created_at": "2026-06-21T10:00:00Z"
    }
  ]
}