> ## Documentation Index
> Fetch the complete documentation index at: https://docs.capedigital.co.ke/llms.txt
> Use this file to discover all available pages before exploring further.

# Get latest digital post

> Read-only feed of external digital posts synced from WordPress.



## OpenAPI

````yaml /openapi/content.yaml get /api/v1/digital/posts/latest
openapi: 3.0.3
info:
  title: Content Service API
  version: 1.0.0
  description: |2-

        **Content Service API** - Comprehensive content(story) and management system.
        
servers:
  - url: https://api.capedigital.co.ke/content
    description: Production
  - url: http://localhost:8000
    description: Local
security: []
paths:
  /api/v1/digital/posts/latest:
    get:
      tags:
        - Digital
      summary: Get latest digital post
      description: Read-only feed of external digital posts synced from WordPress.
      operationId: digital_latest
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalPost'
          description: ''
      security:
        - bearerAuth: []
components:
  schemas:
    ExternalPost:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        source:
          enum:
            - wordpress
          type: string
          description: '* `wordpress` - WordPress'
          x-spec-enum-id: 0e48d7039de88201
          readOnly: true
          default: wordpress
        external_id:
          type: integer
          readOnly: true
          description: Post ID on the source platform
        title:
          type: string
          readOnly: true
        slug:
          type: string
          readOnly: true
          pattern: ^[-a-zA-Z0-9_]+$
        excerpt:
          type: string
          readOnly: true
        author_name:
          type: string
          readOnly: true
        featured_image_url:
          type: string
          format: uri
          readOnly: true
          nullable: true
        source_url:
          type: string
          format: uri
          readOnly: true
          description: Canonical URL on the source platform
        published_at:
          type: string
          format: date-time
          readOnly: true
        wp_categories:
          readOnly: true
          description: '[{id, name, slug}, ...]'
        wp_tags:
          readOnly: true
          description: '[{id, name, slug}, ...]'
        synced_at:
          type: string
          format: date-time
          readOnly: true
        story:
          type: string
          format: uuid
          readOnly: true
          nullable: true
          description: Editorial story that covers this digital post
      required:
        - author_name
        - excerpt
        - external_id
        - featured_image_url
        - id
        - published_at
        - slug
        - source
        - source_url
        - story
        - synced_at
        - title
        - wp_categories
        - wp_tags
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'Enter your JWT token in the format: Bearer <token>'

````