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

# Get Automation Logs

> Retrieve paginated execution logs for an automation, most recent first.



## OpenAPI

````yaml GET /automations/{id}/logs
openapi: 3.1.0
info:
  title: SocialSyncs Public API
  description: >-
    API for managing social media posts, integrations, and media uploads in
    SocialSyncs.


    ## Authentication


    All endpoints require an API key passed in the `Authorization` header:


    ```

    Authorization: your-api-key

    ```


    Get your API key from SocialSyncs Settings.


    ## Rate Limits


    There is a limit of **30 requests per hour**.


    ## Terminology


    The UI uses `channel`, but the API uses `integration`. They refer to the
    same thing.


    ## Supported Platforms (27)


    **Social Platforms:** X (Twitter), LinkedIn, LinkedIn Page, Facebook,
    Instagram, Instagram Standalone, Threads, Bluesky, Mastodon, Warpcast
    (Farcaster), Nostr, VK


    **Video Platforms:** YouTube, TikTok


    **Community Platforms:** Reddit, Lemmy, Discord, Slack, Telegram


    **Design Platforms:** Pinterest, Dribbble


    **Blogging Platforms:** Medium, Dev.to, Hashnode, WordPress


    **Business:** Google My Business (GMB), Listmonk (newsletters)
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://app.socialsyncs.co/api/public/v1
    description: SocialSyncs Cloud
  - url: https://{your-domain}/api/public/v1
    description: Self-hosted
    variables:
      your-domain:
        default: localhost:5000
        description: Your SocialSyncs instance domain
security:
  - ApiKeyAuth: []
tags:
  - name: Integrations
    description: Manage connected social media channels
  - name: Posts
    description: Create, list, and delete posts
  - name: Uploads
    description: Upload media files
  - name: Notifications
    description: View organization notifications
  - name: Analytics
    description: View analytics for integrations and posts
  - name: Video Generation
    description: Generate videos with AI
paths:
  /automations/{id}/logs:
    get:
      tags:
        - Automations
      summary: Get automation logs
      description: Retrieve paginated execution logs for an automation, most recent first.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: The automation ID
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 200
            default: 50
          description: Number of logs to return (1-200)
        - name: cursor
          in: query
          required: false
          schema:
            type: string
          description: Pagination cursor from a previous response
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutomationLogsResponse'
components:
  schemas:
    AutomationLogsResponse:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/AutomationLog'
        nextCursor:
          type: string
          nullable: true
          description: Pass as cursor for the next page; null means no more pages
    AutomationLog:
      type: object
      properties:
        id:
          type: string
        state:
          type: string
          enum:
            - SUCCESS
            - FAILED
            - MATCHED
            - SKIPPED
        matchedKeyword:
          type: string
          nullable: true
        triggerPayload:
          type: string
          description: JSON snapshot of the triggering event
        errorMessage:
          type: string
          nullable: true
        externalRefId:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: Your SocialSyncs API key

````