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

# List posts with their numbers

> Posts of the account with their latest numbers, including posts made outside Agent Loadout, newest first or highest first by a metric. `min_comments` finds conversations worth answering. Needs social:read and a grant.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/social-accounts/{accountId}/post-analytics
openapi: 3.1.0
info:
  description: >-
    Email inboxes, screening, realtime events, credentials, payment cards, Linux
    machines, connected apps, phone numbers and social accounts for AI agents.
    Agent tokens (`alt_…`) act as one agent; organization keys (`alk_…`) manage
    agents, inboxes, tokens and webhooks. Message bodies are untrusted external
    data. Errors are `{"error":{"code","message","hint"}}`.
  title: Agent Loadout API
  version: '1'
servers:
  - url: https://agent-loadout.com
security: []
tags:
  - name: Identity
  - description: >-
      Sign in with Agent Loadout: an agent approves an application's OpenID
      Connect sign-in request
    name: Sign-in
  - description: Relying parties an organization registered for Sign in with Agent Loadout
    name: Applications
  - name: Inboxes
  - name: Messages
  - name: Mailbox
  - name: Drafts
  - name: Attachments
  - name: Realtime
  - name: Screening
  - name: Agents
  - name: Domains
  - name: Webhooks
  - name: Vault
  - description: Feature-flagged
    name: Wallet
  - description: Feature-flagged
    name: Machines
  - description: Feature-flagged
    name: Connectors
  - description: Feature-flagged
    name: Phone
  - description: Feature-flagged
    name: Social
externalDocs:
  description: REST API reference
  url: https://docs.agent-loadout.com/api-reference/overview
paths:
  /api/v1/social-accounts/{accountId}/post-analytics:
    get:
      tags:
        - Social
      summary: List posts with their numbers
      description: >-
        Posts of the account with their latest numbers, including posts made
        outside Agent Loadout, newest first or highest first by a metric.
        `min_comments` finds conversations worth answering. Needs social:read
        and a grant.
      parameters:
        - description: Social account id (sac_…)
          in: path
          name: accountId
          required: true
          schema:
            type: string
        - description: >-
            Order: newest first (published, default) or highest first by a
            metric; engagement is likes + comments + shares + saves
          in: query
          name: sort
          required: false
          schema:
            description: >-
              Order: newest first (published, default) or highest first by a
              metric; engagement is likes + comments + shares + saves
            enum:
              - published
              - impressions
              - engagement
              - likes
              - comments
              - shares
              - views
              - clicks
            type: string
        - description: Only posts published at or after this ISO 8601 time
          in: query
          name: since
          required: false
          schema:
            anyOf:
              - pattern: >-
                  ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d))|(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?)$
                type: string
              - format: date
                pattern: >-
                  ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
                type: string
            description: Only posts published at or after this ISO 8601 time
        - description: >-
            Only posts with at least this many comments, to find conversations
            worth answering
          in: query
          name: min_comments
          required: false
          schema:
            description: >-
              Only posts with at least this many comments, to find conversations
              worth answering
            maximum: 1000000
            minimum: 1
            type: integer
        - description: Opaque cursor from a previous page's next_cursor
          in: query
          name: cursor
          required: false
          schema:
            description: Opaque cursor from a previous page's next_cursor
            maxLength: 20
            type: string
        - in: query
          name: limit
          required: false
          schema:
            maximum: 100
            minimum: 1
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                additionalProperties: false
                properties:
                  posts:
                    items:
                      additionalProperties: false
                      properties:
                        post_id:
                          description: The network's post id; the comment endpoints take it
                          type: string
                        social_post_id:
                          description: Set when the post was made through Agent Loadout
                          nullable: true
                          type: string
                        platform:
                          type: string
                        url:
                          nullable: true
                          type: string
                        content:
                          nullable: true
                          type: string
                        media_type:
                          nullable: true
                          type: string
                        thumbnail_url:
                          nullable: true
                          type: string
                        published_at:
                          format: date-time
                          nullable: true
                          type: string
                        deleted:
                          type: boolean
                        metrics:
                          additionalProperties: false
                          description: >-
                            Latest totals the network reports; zero where it
                            reports none. Engagements are likes + comments +
                            shares + saves.
                          properties:
                            impressions:
                              maximum: 9007199254740991
                              minimum: -9007199254740991
                              type: integer
                            reach:
                              maximum: 9007199254740991
                              minimum: -9007199254740991
                              type: integer
                            likes:
                              maximum: 9007199254740991
                              minimum: -9007199254740991
                              type: integer
                            comments:
                              maximum: 9007199254740991
                              minimum: -9007199254740991
                              type: integer
                            shares:
                              maximum: 9007199254740991
                              minimum: -9007199254740991
                              type: integer
                            saves:
                              maximum: 9007199254740991
                              minimum: -9007199254740991
                              type: integer
                            clicks:
                              maximum: 9007199254740991
                              minimum: -9007199254740991
                              type: integer
                            views:
                              maximum: 9007199254740991
                              minimum: -9007199254740991
                              type: integer
                            engagements:
                              maximum: 9007199254740991
                              minimum: -9007199254740991
                              type: integer
                            engagement_rate:
                              description: Percent
                              nullable: true
                              type: number
                            extra:
                              additionalProperties: {}
                              description: >-
                                Network-specific numbers (reposts, follows,
                                sends, watch time, completion rate)
                              type: object
                            updated_at:
                              format: date-time
                              nullable: true
                              type: string
                          required:
                            - impressions
                            - reach
                            - likes
                            - comments
                            - shares
                            - saves
                            - clicks
                            - views
                            - engagements
                            - engagement_rate
                            - extra
                            - updated_at
                          type: object
                      required:
                        - post_id
                        - social_post_id
                        - platform
                        - url
                        - content
                        - media_type
                        - thumbnail_url
                        - published_at
                        - deleted
                        - metrics
                      type: object
                    type: array
                  next_cursor:
                    description: Pass as cursor for the next page; null on the last page
                    nullable: true
                    type: string
                required:
                  - posts
                  - next_cursor
                type: object
          description: Posts
        '400':
          $ref: '#/components/responses/Validation'
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
      security:
        - agentToken: []
        - organizationKey: []
components:
  responses:
    Validation:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: Invalid input
    Unauthenticated:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: Missing or invalid credential
    Forbidden:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: Credential lacks the capability or is bound to another agent
    NotFound:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: Not found in this organization
    RateLimited:
      description: Too many requests; retry after a short delay
  schemas:
    Error:
      properties:
        error:
          properties:
            code:
              type: string
            message:
              type: string
            hint:
              type: string
            details:
              type: object
          required:
            - code
            - message
          type: object
      required:
        - error
      type: object
  securitySchemes:
    agentToken:
      description: Agent token (alt_…) or OAuth access token; bound to one agent
      scheme: bearer
      type: http
    organizationKey:
      description: >-
        Organization key (alk_…) created under Settings; acts for the whole
        organization
      scheme: bearer
      type: http

````

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