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

# Run Tests by Tags API

> Execute all tests that match the specified tags.



## OpenAPI

````yaml post /tag/run
openapi: 3.0.3
info:
  title: Autonoma API
  description: |
    API for managing test runs and test definitions in the Autonoma platform.

    **Important Note:** Media URLs (images, videos) expire after 1 hour.
  version: 1.0.0
  contact:
    name: Autonoma Support
servers:
  - url: https://autonoma.app/api
    description: Production server
security:
  - ApiKeyAuth: []
paths:
  /tag/run:
    post:
      summary: Run all tests that have a set of tags
      description: Executes all tests that have all the specified tags.
      requestBody:
        required: true
        description: Request body
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RunTagRequest'
      responses:
        '201':
          description: Run creation result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunTag'
        '400':
          description: Bad request (e.g., missing application version)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidCredentialsError'
        '404':
          description: Tag not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundError'
      security:
        - ApiKeyAuth: []
          ApiSecretAuth: []
components:
  schemas:
    RunTagRequest:
      type: object
      required:
        - tag_ids
      properties:
        tag_ids:
          type: array
          description: IDs of the tags to run
          items:
            type: string
          example:
            - cm7dbowr80042waka7thyjhkq
            - cm8xf3wp90123abcd4efgh5ij
        application_versions:
          type: array
          description: Applications used by running tests
          items:
            type: object
            properties:
              application_id:
                type: string
                description: Optional application ID
                example: cm7dbowr80042waka7thyjhkq
              application_version_ids:
                type: array
                description: Optional application version IDs
                items:
                  type: string
                example:
                  - cm7dbowr80042waka7thyjhkq
                  - cm8xf3wp90123abcd4efgh5ij
          example:
            - application_id: cm7dbowr80042waka7thyjhkq
              application_version_ids:
                - cm7dbowr80042waka7thyjhkq
                - cm8xf3wp90123abcd4efgh5ij
            - application_id: cm9xyz12340567pqrs8tuvwxy
              application_version_ids:
                - cm9abc34560789defg0hijklm
                - cm0nop78901234qrst5uvwxyz
    RunTag:
      type: object
      properties:
        message:
          type: string
          example: >-
            Runs with tags cm7dbowr80042waka7thyjhkq & cm8xf3wp90123abcd4efgh5ij
            were scheduled to run.
        url:
          type: string
          example: https://autonoma.app/run/tag/pby4qnbppbvimimuls4v5ajq
        folderRunID:
          type: string
          example: pby4qnbppbvimimuls4v5ajq
    BadRequestError:
      type: object
      properties:
        error:
          type: string
          example: Bad Request
        message:
          type: string
          example: >-
            No applicationVersionID provided, and could not automatically
            determine an application from the tests within folder
            cmbsgljfr00fd060153r9x8ek. Please specify an applicationVersionID or
            ensure at least one test has an associated application.
    InvalidCredentialsError:
      type: object
      properties:
        error:
          type: string
          example: Unauthorized
        message:
          type: string
          example: Invalid authentication credentials
    NotFoundError:
      type: object
      properties:
        error:
          type: string
          example: Not found
        message:
          type: string
          example: Resource with id `cm8d9gt6v000c9fe5glmyi33u` not found
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: autonoma-client-id
      description: Client ID for authentication
    ApiSecretAuth:
      type: apiKey
      in: header
      name: autonoma-client-secret
      description: Client secret for authentication

````