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

# List Content Runs

> List file runs for a content automation, newest first.

A member automation is 404 ``not_a_content_automation``. An automation
another team owns is 404 ``automation_not_found``. ``filter[status]``
accepts only ``running``, ``done``, ``skipped`` and ``failed``.



## OpenAPI

````yaml /openapi/mio-openapi.json get /api/v1/teams/{team_id}/hubs/{hub_id}/automations/{automation_id}/content-runs
openapi: 3.1.0
info:
  description: >-
    Production API reference for Membership.io. Use the authored guides for
    workflows and the generated endpoint pages for exact parameters and schemas.
  title: Membership.io API
  version: 0.1.0
servers:
  - description: Production
    url: https://api.member.dev
security:
  - bearerAuth: []
paths:
  /api/v1/teams/{team_id}/hubs/{hub_id}/automations/{automation_id}/content-runs:
    get:
      tags:
        - automations
      summary: List Content Runs
      description: |-
        List file runs for a content automation, newest first.

        A member automation is 404 ``not_a_content_automation``. An automation
        another team owns is 404 ``automation_not_found``. ``filter[status]``
        accepts only ``running``, ``done``, ``skipped`` and ``failed``.
      operationId: >-
        automations.get_automations_get_teams_by_team_id_hubs_by_hub_id_automations_by_automation_id_content_runs
      parameters:
        - in: path
          name: team_id
          required: true
          schema:
            title: Team Id
            type: string
        - in: path
          name: hub_id
          required: true
          schema:
            title: Hub Id
            type: string
        - in: path
          name: automation_id
          required: true
          schema:
            title: Automation Id
            type: string
        - in: query
          name: page[after]
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Page[After]
        - in: query
          name: page[size]
          required: false
          schema:
            default: 20
            maximum: 100
            minimum: 1
            title: Page[Size]
            type: integer
        - in: query
          name: filter[status]
          required: false
          schema:
            anyOf:
              - enum:
                  - running
                  - done
                  - skipped
                  - failed
                type: string
              - type: 'null'
            title: Filter[Status]
      responses:
        '200':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/AutomationContentRunListResponse'
          description: Successful Response
        '400':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/JsonApiErrorResponse'
          description: Bad request
        '401':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/JsonApiErrorResponse'
          description: Not authenticated
        '403':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/JsonApiErrorResponse'
          description: Forbidden
        '404':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/JsonApiErrorResponse'
          description: Not found
        '409':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/JsonApiErrorResponse'
          description: Status conflict
        '415':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/JsonApiErrorResponse'
          description: Unsupported media type (requires application/vnd.api+json)
        '422':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/JsonApiErrorResponse'
          description: Graph validation error
        '429':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/JsonApiErrorResponse'
          description: Rate limit exceeded
      security:
        - HTTPBearer: []
components:
  schemas:
    AutomationContentRunListResponse:
      additionalProperties: false
      properties:
        data:
          items:
            $ref: '#/components/schemas/AutomationContentRunResource'
          title: Data
          type: array
        links:
          additionalProperties: true
          title: Links
          type: object
        meta:
          additionalProperties: true
          title: Meta
          type: object
      required:
        - data
        - meta
        - links
      title: AutomationContentRunListResponse
      type: object
    JsonApiErrorResponse:
      description: Error JSON:API response.
      properties:
        errors:
          items:
            $ref: '#/components/schemas/JsonApiError'
          title: Errors
          type: array
        meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Meta
      required:
        - errors
      title: JsonApiErrorResponse
      type: object
    AutomationContentRunResource:
      additionalProperties: false
      properties:
        attributes:
          $ref: '#/components/schemas/AutomationContentRunAttributes'
        id:
          maxLength: 64
          minLength: 1
          title: Id
          type: string
        type:
          const: automation_content_runs
          default: automation_content_runs
          title: Type
          type: string
      required:
        - id
        - attributes
      title: AutomationContentRunResource
      type: object
    JsonApiError:
      properties:
        code:
          anyOf:
            - type: string
            - type: 'null'
          title: Code
        detail:
          anyOf:
            - type: string
            - type: 'null'
          title: Detail
        id:
          anyOf:
            - type: string
            - type: 'null'
          title: Id
        meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Meta
        source:
          anyOf:
            - additionalProperties:
                type: string
              type: object
            - type: 'null'
          title: Source
        status:
          title: Status
          type: string
        title:
          title: Title
          type: string
      required:
        - status
        - title
      title: JsonApiError
      type: object
    AutomationContentRunAttributes:
      additionalProperties: false
      properties:
        automation_id:
          maxLength: 64
          minLength: 1
          title: Automation Id
          type: string
        automation_version_id:
          maxLength: 64
          minLength: 1
          title: Automation Version Id
          type: string
        file:
          $ref: '#/components/schemas/ContentRunFile'
        finished_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Finished At
        reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Reason
        source:
          enum:
            - upload
            - zoom
            - google_drive
            - podcast
            - vimeo
            - dropbox
            - moved
            - tagged
          title: Source
          type: string
        started_at:
          format: date-time
          title: Started At
          type: string
        status:
          enum:
            - running
            - done
            - skipped
            - failed
          title: Status
          type: string
        steps:
          items:
            $ref: '#/components/schemas/ContentRunStep'
          title: Steps
          type: array
        trigger:
          enum:
            - media.file.ready_in_folder
            - media.file.tagged
          title: Trigger
          type: string
      required:
        - automation_id
        - automation_version_id
        - file
        - source
        - trigger
        - status
        - started_at
        - steps
      title: AutomationContentRunAttributes
      type: object
    ContentRunFile:
      additionalProperties: false
      properties:
        deleted:
          title: Deleted
          type: boolean
        folder_id:
          anyOf:
            - maxLength: 64
              minLength: 1
              type: string
            - type: 'null'
          title: Folder Id
        id:
          maxLength: 64
          minLength: 1
          title: Id
          type: string
        kind:
          anyOf:
            - enum:
                - video
                - audio
                - document
                - image
              type: string
            - type: 'null'
          title: Kind
        title:
          title: Title
          type: string
      required:
        - id
        - title
        - kind
        - deleted
      title: ContentRunFile
      type: object
    ContentRunStep:
      additionalProperties: false
      properties:
        at:
          format: date-time
          title: At
          type: string
        node_id:
          maxLength: 100
          minLength: 1
          title: Node Id
          type: string
        outcome:
          enum:
            - done
            - no_change
            - skipped
            - failed
          title: Outcome
          type: string
        reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Reason
        type:
          enum:
            - add_to_playlist
            - remove_from_playlist
            - publish_to_hub
            - set_privacy
            - branch
            - wait
            - exit
            - webhook
          title: Type
          type: string
      required:
        - node_id
        - type
        - outcome
        - at
      title: ContentRunStep
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT or mio_sk API key
      description: >-
        Send platform JWTs, contact JWTs, or team API keys as `Authorization:
        Bearer <token>`.
      scheme: bearer
      type: http
    HTTPBearer:
      scheme: bearer
      type: http

````

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