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

# Read verified function source



## OpenAPI

````yaml /api-reference/serverless-functions.yaml get /compute/functions/{functionId}/source
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/{functionId}/source:
    get:
      tags:
        - Functions
      summary: Read verified function source
      operationId: getFunctionSource
      parameters:
        - schema:
            type: string
            format: uuid
            example: 550e8400-e29b-41d4-a716-446655440000
          required: true
          name: functionId
          in: path
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/FunctionSource'
                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:
    FunctionSource:
      type: object
      properties:
        sha256:
          type: string
        sizeBytes:
          type: integer
        source:
          type: string
        functionId:
          type: string
          format: uuid
      required:
        - sha256
        - sizeBytes
        - source
        - functionId
    ApiErrorEnvelope:
      properties:
        code:
          type: string
        details: {}
        message:
          type: string
        retryAfterSeconds:
          type: number
        traceId:
          type: string
      required:
        - code
        - message
      type: object
  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.