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

> ## Agent Instructions
> Base URL: https://api.social-api.ai/v1. Send your API key in the Authorization header: Authorization: Bearer <your API key>.
> Every error response from /v1 is JSON: { "error": { "code", "message", "meta" (optional) }, "request_id" }. Branch on error.code; use error.message only for logs.
> A 429 response carries a Retry-After header, in seconds, when the limit has a known wait.
> Paginated list endpoints return next_cursor, at the top level or inside pagination (see /guides/pagination). Pass it as the cursor query parameter to get the next page. An absent or empty next_cursor means you have the last page.
> Treat every ID as an opaque string: do not parse it or assume a format.
> Support differs by platform and by operation. Check /platforms/overview before assuming an operation works on a platform. An unsupported operation returns 501 with error.code resource.not_supported.

# List an Automation's runs

> Lists the Automation's runs from the last 30 days, newest first, with the outcome of each action. A failed action carries the error code the same API call would have returned.



## OpenAPI

````yaml /api-reference/openapi.json get /automations/{id}/firings
openapi: 3.0.0
info:
  description: >-
    Unified social media inbox API. Read and respond to comments, DMs, reviews,
    and mentions across Instagram, Facebook, Threads, Google Business Profile,
    TikTok, LinkedIn, and YouTube through a single REST API. X/Twitter and
    Trustpilot coming soon.
  title: SocialAPI.AI
  contact:
    name: SocialAPI.AI Support
    email: support@social-api.ai
  license:
    name: MIT
  version: '1.0'
servers:
  - url: https://api.social-api.ai/v1
security: []
paths:
  /automations/{id}/firings:
    get:
      tags:
        - Automations
      summary: List an Automation's runs
      description: >-
        Lists the Automation's runs from the last 30 days, newest first, with
        the outcome of each action. A failed action carries the error code the
        same API call would have returned.
      parameters:
        - example: aut_01J9Z8Y7X6W5V4T3S2R1Q0P9N8
          description: Automation ID
          name: id
          in: path
          required: true
          schema:
            type: string
        - description: next_cursor from the previous page
          name: cursor
          in: query
          schema:
            type: string
        - description: Page size, 1 to 100, default 20
          name: limit
          in: query
          schema:
            type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_endpoints.FiringListResponse'
        '400':
          description: limit is not a positive integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_endpoints.ErrorResponse'
        '401':
          description: Invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_endpoints.ErrorResponse'
        '403':
          description: The key's scopes do not include automations:read
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_endpoints.ErrorResponse'
        '404':
          description: Automation not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_endpoints.ErrorResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    api_endpoints.FiringListResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/social-api_ai_core_api_service.Firing'
        next_cursor:
          description: Pass as cursor to fetch the next page. Empty on the last page
          type: string
    api_endpoints.ErrorResponse:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/api_endpoints.ErrorBody'
    social-api_ai_core_api_service.Firing:
      type: object
      properties:
        created_at:
          type: string
        event_id:
          description: Platform id of the comment or message
          type: string
          example: '17858893269577012'
        id:
          type: string
          example: afr_01J9Z8Y7X6W5V4T3S2R1Q0P9N8
        outcomes:
          type: array
          items:
            $ref: '#/components/schemas/social-api_ai_core_api_service.ActionOutcome'
        person_id:
          description: Platform id of the person who commented or messaged
          type: string
          example: '17841400000000000'
        step_key:
          description: >-
            Key of the step whose actions ran, or the step the event entered at
            when no step's filters passed
          type: string
          example: start
    api_endpoints.ErrorBody:
      type: object
      properties:
        code:
          type: string
          example: resource.not_found
        message:
          type: string
          example: Account not found
        meta:
          type: object
          additionalProperties: {}
    social-api_ai_core_api_service.ActionOutcome:
      type: object
      properties:
        action:
          type: string
          example: private_reply
        error_code:
          description: The error code the same API call would have returned
          type: string
          example: platform.instagram.private_reply_ineligible
        status:
          type: string
          enum:
            - sent
            - failed
          example: sent
  securitySchemes:
    BearerAuth:
      description: >-
        Prefix your API key with "Bearer ". Example: `Authorization: Bearer
        sapi_key_...`
      type: apiKey
      name: Authorization
      in: header

````

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