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

# Get status badge

> Get status badge as SVG. Authenticate with the token query parameter (not the API Bearer key). Project is resolved from the token.



## OpenAPI

````yaml /api-reference/api.json get /v1/badge.svg
openapi: 3.0.0
info:
  title: QA.tech API
  version: 1.0.0
  contact:
    name: QA.tech
    url: https://qa.tech
    email: support@qa.tech
  description: >-
    REST API for triggering and managing AI-powered test runs. Authenticate with
    a project API token (Authorization: Bearer <token>) found in Project
    Settings -> Integrations.
servers:
  - url: https://api.qa.tech
    description: Production
    variables: {}
security:
  - BearerAuth: []
tags:
  - name: Runs
  - name: Infrastructure
  - name: Test Cases
  - name: Application Builds
  - name: Status badge
  - name: Remote Tunnels
  - name: Chat
  - name: Applications
paths:
  /v1/badge.svg:
    get:
      tags:
        - Status badge
      summary: Get status badge
      description: >-
        Get status badge as SVG. Authenticate with the token query parameter
        (not the API Bearer key). Project is resolved from the token.
      operationId: GetStatusBadgeSvg
      parameters:
        - name: query
          in: query
          required: true
          schema:
            $ref: '#/components/schemas/BadgeSvgQuery'
          explode: false
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
      security:
        - {}
components:
  schemas:
    BadgeSvgQuery:
      type: object
      required:
        - token
        - testPlanShortId
      properties:
        token:
          type: string
          description: Status badge secret (project status_badge_token). Required.
        label:
          type: string
        style:
          $ref: '#/components/schemas/StatusBadgeStyle'
        showDate:
          type: boolean
          description: When true, show relative time since last run.
        historyCount:
          type: integer
          format: int32
        testPlanShortId:
          allOf:
            - $ref: '#/components/schemas/TestPlanShortId'
          description: >-
            Filter runs to this test plan (short id, e.g. pln_my-plan_shortid).
            Required with `token`.
        createdBy:
          type: string
          description: Filter by user id who created the run.
        trigger:
          allOf:
            - $ref: '#/components/schemas/StatusBadgeTriggerFilter'
          description: Filter runs by how they were triggered.
      description: >-
        Query parameters for GET /v1/badge.svg (live status badge). Token
        identifies the project; do not use Bearer auth for this operation.
    StatusBadgeStyle:
      type: string
      enum:
        - minimal
        - standard
        - detailed
        - trend
      description: Display style of the status badge.
    TestPlanShortId:
      type: string
      pattern: ^pln(-.+_.+|_.+)$
    StatusBadgeTriggerFilter:
      type: string
      enum:
        - ANY
        - MANUAL
        - SCHEDULE
        - API
        - GITHUB
      description: >-
        Permitted values for filtering a status badge by run trigger. Omit the
        parameter to include all triggers; use ANY for the same behavior
        explicitly.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: Bearer

````