logo
PostsList Posts

List Posts

List your published posts.

curl -X GET "https://app.nashra.ai/api/v1/posts?per_page=25&page=25&since=2024-12-25T10:00:00Z" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "data": [
    {
      "uuid": "8c2b6e9a-3f5a-4f7c-b1a4-1f1d5d9e4c22",
      "title": "How we ship calmly",
      "subtitle": "A note on focus over urgency",
      "slug": "how-we-ship-calmly",
      "website_content": "example_string",
      "publish_date": "2024-12-25T10:00:00Z",
      "updated_at": "2024-12-25T10:00:00Z",
      "main_image_url": "example_string",
      "category": {
        "uuid": "123e4567-e89b-12d3-a456-426614174000",
        "name": "Essays",
        "color": "#3B82F6",
        "emoji": "✍️"
      }
    }
  ],
  "meta": {}
}
GET
/posts
GET
Bearer Token
Bearer Tokenstring
Required

API token generated in Settings > API Tokens

API token generated in Settings > API Tokens
query
sincestring

Only return posts updated at or after this timestamp

Format: date-time
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. API token generated in Settings > API Tokens

Query Parameters

sincestring

Only return posts updated at or after this timestamp

Responses

dataarray
metaobject