> ## 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.

# Get Application Versions by Custom ID API

> Retrieve application versions filtered by customID, ordered from newest to oldest. Note that the tag field is not included in the response.



## OpenAPI

````yaml get /mobile/version
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:
  /mobile/version:
    get:
      summary: Get application versions by customID
      description: >-
        Retrieves application versions filtered by `customID`, ordered from
        newest to oldest. Returns only non-disabled versions. Note that the
        `tag` field is not included in the response. Currently available for the
        "Ualá" organization.
      parameters:
        - name: customID
          in: query
          required: true
          description: The custom identifier to filter versions by (minimum 1 character)
          schema:
            type: string
            minLength: 1
            example: build-123
      responses:
        '200':
          description: List of application versions matching the customID
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/VersionResponse'
              examples:
                success_response:
                  summary: Successful response
                  value:
                    - id: cm7dbowr80042waka7thyjhkr
                      name: 1.0.0
                      customID: build-123
                      path: gs://bucket/path/to/app.apk
                      createdAt: '2024-12-12T18:13:36.000Z'
                      application:
                        id: cm7dbowr80042waka7thyjhkq
                        name: MyApp
                        applicationType: android
                    - id: cm7dbowr80042waka7thyjhks
                      name: 1.0.1
                      customID: build-123
                      path: gs://bucket/path/to/app-v2.apk
                      createdAt: '2024-12-11T18:13:36.000Z'
                      application:
                        id: cm7dbowr80042waka7thyjhkq
                        name: MyApp
                        applicationType: android
        '400':
          description: Bad request - Missing or invalid customID parameter
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidCredentialsError'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Internal Server Error
                  message:
                    type: string
                    example: Server error during processing
      security:
        - ApiKeyAuth: []
          ApiSecretAuth: []
      x-codeSamples:
        - lang: curl
          label: Get versions by customID
          source: >
            curl --location --request GET
            'https://autonoma.app/api/mobile/version?customID=build-123' \

            --header 'autonoma-client-id: YOUR_CLIENT_ID' \

            --header 'autonoma-client-secret: YOUR_CLIENT_SECRET'
components:
  schemas:
    VersionResponse:
      type: object
      properties:
        id:
          type: string
          example: cm7dbowr80042waka7thyjhkr
        name:
          type: string
          example: 1.0.0
        customID:
          type: string
          nullable: true
          description: Custom identifier for the version
          example: build-123
        path:
          type: string
          example: gs://bucket/path/to/app.apk
        tag:
          type: string
          example: main
        createdAt:
          type: string
          format: date-time
          example: '2024-12-12T18:13:36.000Z'
        application:
          type: object
          properties:
            id:
              type: string
              example: cm7dbowr80042waka7thyjhkq
            name:
              type: string
              example: MyApp
            applicationType:
              type: string
              enum:
                - android
                - ios
                - web
              example: android
    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
  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

````