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

# List recent social posts

> Lists recent posts of one connected account, newest first: up to limit (default 24, max 50). Use a post's id as post_id in an automation target. Stories are listed separately.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/workspaces/{workspace_id}/accounts/{channel}/{account_id}/posts
openapi: 3.1.0
info:
  title: Replier API
  version: '1'
servers:
  - url: https://api.usereplier.com
security:
  - apiKey: []
paths:
  /v1/workspaces/{workspace_id}/accounts/{channel}/{account_id}/posts:
    get:
      tags:
        - Accounts
      summary: List recent social posts
      description: >-
        Lists recent posts of one connected account, newest first: up to limit
        (default 24, max 50). Use a post's id as post_id in an automation
        target. Stories are listed separately.
      operationId: list_posts
      parameters:
        - name: workspace_id
          in: path
          required: true
          description: Workspace ID returned by `GET /v1/workspaces`
          schema:
            type: string
            format: uuid
            pattern: >-
              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        - name: channel
          in: path
          required: true
          description: >-
            Channel returned with the account by `GET
            /v1/workspaces/{workspace_id}/accounts`
          schema:
            type: string
            enum:
              - instagram
              - facebook
        - name: account_id
          in: path
          required: true
          description: Account ID returned by `GET /v1/workspaces/{workspace_id}/accounts`
          schema:
            type: string
            minLength: 1
        - name: limit
          in: query
          required: false
          schema:
            default: 24
            type: integer
            minimum: 1
            maximum: 50
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  workspace:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                        pattern: >-
                          ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                      name:
                        type: string
                      kind:
                        type: string
                        enum:
                          - personal
                          - agency
                      role:
                        type: string
                        enum:
                          - owner
                          - admin
                          - member
                    required:
                      - id
                      - name
                      - kind
                      - role
                  channel:
                    type: string
                    enum:
                      - instagram
                      - facebook
                  account_id:
                    type: string
                  posts:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        text:
                          type: string
                        permalink:
                          type:
                            - string
                            - 'null'
                        image_url:
                          type:
                            - string
                            - 'null'
                        timestamp:
                          type:
                            - string
                            - 'null'
                        comments_count:
                          type: integer
                          minimum: 0
                          maximum: 9007199254740991
                        media_type:
                          type:
                            - string
                            - 'null'
                      required:
                        - id
                        - text
                        - permalink
                        - image_url
                        - timestamp
                        - comments_count
                required:
                  - workspace
                  - channel
                  - account_id
                  - posts
        default:
          $ref: '#/components/responses/Error'
components:
  responses:
    Error:
      description: Refused
      content:
        application/json:
          schema:
            type: object
            required:
              - error
            properties:
              error:
                type: object
                required:
                  - code
                  - message
                properties:
                  code:
                    type: string
                    description: >-
                      Why the request was refused, such as AUTOMATION_NOT_FOUND
                      or VERSION_CONFLICT. Other fields beside it give details.
                  message:
                    type: string
                    description: The same reason, in English.
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: A Replier API key (rpl_...).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.