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

# List functions owned by this organisation



## OpenAPI

````yaml /api-reference/serverless-functions.yaml get /compute/functions
openapi: 3.1.0
info:
  title: Functions
  version: v1
servers:
  - description: Droidrun Cloud API
    url: https://api.mobilerun.ai/v1
security:
  - bearerAuth: []
paths:
  /compute/functions:
    get:
      tags:
        - Functions
      summary: List functions owned by this organisation
      operationId: listFunctions
      parameters:
        - schema:
            type: integer
            exclusiveMinimum: 0
            default: 1
          required: false
          name: page
          in: query
        - schema:
            type: integer
            exclusiveMinimum: 0
            default: 10
          required: false
          name: pageSize
          in: query
        - schema:
            type: string
            minLength: 1
            maxLength: 256
            description: Case-insensitive substring match against the function name.
          required: false
          description: Case-insensitive substring match against the function name.
          name: search
          in: query
        - schema:
            type: string
            minLength: 1
            maxLength: 120
            description: >-
              Exact function name. Returns every active version of that name,
              newest first.
          required: false
          description: >-
            Exact function name. Returns every active version of that name,
            newest first.
          name: name
          in: query
        - schema:
            type: string
            enum:
              - 'true'
              - 'false'
            description: >-
              Return one row per function name: its newest upload (any status),
              with versionCount. Combined with name, returns that single row.
          required: false
          description: >-
            Return one row per function name: its newest upload (any status),
            with versionCount. Combined with name, returns that single row.
          name: latest
          in: query
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/FunctionList'
                required:
                  - data
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorEnvelope'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorEnvelope'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorEnvelope'
        '404':
          description: Error 404
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    enum:
                      - function_not_found
                  message:
                    type: string
                  traceId:
                    type: string
                  retryAfterSeconds:
                    type: number
                required:
                  - code
                  - message
        '409':
          description: Error 409
          content:
            application/json:
              schema:
                anyOf:
                  - type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - function_published
                      message:
                        type: string
                      traceId:
                        type: string
                      retryAfterSeconds:
                        type: number
                    required:
                      - code
                      - message
                  - type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - function_limit_reached
                      message:
                        type: string
                      traceId:
                        type: string
                      retryAfterSeconds:
                        type: number
                    required:
                      - code
                      - message
                  - type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - function_busy
                      message:
                        type: string
                      traceId:
                        type: string
                      retryAfterSeconds:
                        type: number
                    required:
                      - code
                      - message
        '413':
          description: Error 413
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    enum:
                      - function_too_large
                  message:
                    type: string
                  traceId:
                    type: string
                  retryAfterSeconds:
                    type: number
                required:
                  - code
                  - message
        '500':
          description: Error 500
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    enum:
                      - function_integrity_error
                  message:
                    type: string
                  traceId:
                    type: string
                  retryAfterSeconds:
                    type: number
                required:
                  - code
                  - message
        '503':
          description: Error 503
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    enum:
                      - storage_unavailable
                  message:
                    type: string
                  traceId:
                    type: string
                  retryAfterSeconds:
                    type: number
                required:
                  - code
                  - message
components:
  schemas:
    FunctionList:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/ServerlessFunction'
        pagination:
          $ref: '#/components/schemas/Pagination'
      required:
        - items
        - pagination
    ApiErrorEnvelope:
      properties:
        code:
          type: string
        details: {}
        message:
          type: string
        retryAfterSeconds:
          type: number
        traceId:
          type: string
      required:
        - code
        - message
      type: object
    ServerlessFunction:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        version:
          type: integer
          minimum: 1
          description: Per-name version number, starting at 1 and never reused.
        versionCount:
          type: integer
          minimum: 1
          description: >-
            Number of active versions of this name. Only set when listing with
            latest=true.
        description:
          type:
            - string
            - 'null'
        sha256:
          type: string
          pattern: ^[a-f0-9]{64}$
        sizeBytes:
          type: integer
        status:
          $ref: '#/components/schemas/FunctionStatus'
        manifest:
          $ref: '#/components/schemas/FunctionManifest'
        inputSchema:
          type:
            - object
            - 'null'
          additionalProperties: {}
        outputSchema:
          type:
            - object
            - 'null'
          additionalProperties: {}
        outputKind:
          type:
            - string
            - 'null'
        datasetKey:
          type:
            - string
            - 'null'
        inspectError:
          $ref: '#/components/schemas/InspectError'
        runtimeVersion:
          type:
            - string
            - 'null'
        createdBy:
          type: string
        createdAt:
          type: string
          format: date-time
      required:
        - id
        - name
        - version
        - description
        - sha256
        - sizeBytes
        - status
        - manifest
        - inputSchema
        - outputSchema
        - outputKind
        - datasetKey
        - inspectError
        - runtimeVersion
        - createdBy
        - createdAt
    Pagination:
      properties:
        hasNext:
          type: boolean
        hasPrev:
          type: boolean
        page:
          minimum: 1
          type: integer
        pageSize:
          minimum: 1
          type: integer
        pages:
          minimum: 0
          type: integer
        total:
          minimum: 0
          type: integer
      required:
        - hasNext
        - hasPrev
        - page
        - pageSize
        - pages
        - total
      type: object
    FunctionStatus:
      type: string
      enum:
        - pending_inspection
        - ready
        - rejected
    FunctionManifest:
      type: object
      properties:
        hosts:
          type: array
          items:
            type: string
            maxLength: 253
          maxItems: 20
          default: []
        credentials:
          type: array
          items:
            type: object
            properties:
              packageName:
                type: string
                minLength: 1
                maxLength: 200
              name:
                type: string
                minLength: 1
                maxLength: 200
            required:
              - packageName
              - name
            additionalProperties: false
          maxItems: 20
          default: []
        scopes:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 100
            pattern: ^[a-z_]+\.[a-z_]+$
          maxItems: 30
          default: []
      default:
        hosts: []
        credentials: []
        scopes: []
      additionalProperties: false
    InspectError:
      type:
        - object
        - 'null'
      properties:
        code:
          type: string
        message:
          type: string
        errors:
          type: array
          items:
            $ref: '#/components/schemas/InspectionIssue'
          maxItems: 20
      required:
        - code
        - message
    InspectionIssue:
      type: object
      properties:
        code:
          type: string
          maxLength: 64
        message:
          type: string
        line:
          type: integer
          exclusiveMinimum: 0
        repair:
          type: object
          properties:
            action:
              type: string
              maxLength: 64
            hint:
              type: string
          required:
            - action
            - hint
          additionalProperties: false
      required:
        - code
        - message
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      bearerFormat: Opaque
      description: Bearer token via Authorization header
      scheme: bearer
      type: http

````

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