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

# Deploy your code

> Upload your Python repository to deploy agents, actions, and endpoints. Ziet automatically discovers @Agent, @Action, and @Endpoint decorators, making them immediately available via API.



## OpenAPI

````yaml api-reference/openapi.json post /deploy
openapi: 3.1.0
info:
  title: Ziet API
  description: >-
    Ziet is a serverless platform for AI agents and applications. Build
    intelligent agents with @Agent and @Action decorators, or serverless APIs
    with @Endpoint and Database. Deploy with a single command—no infrastructure
    to manage.
  license:
    name: MIT
  version: 0.1.0
servers:
  - url: https://api.ziet.ai/v1
    description: Production
security:
  - apiKey: []
tags:
  - name: Deployment
    description: Deploy code
  - name: Actions
    description: Discover actions
  - name: Agents
    description: Discover and configure agents
  - name: Endpoints
    description: Discover and invoke endpoints
  - name: Runs
    description: Execute agents
  - name: Memory
    description: Manage run memory
paths:
  /deploy:
    post:
      tags:
        - Deployment
      summary: Deploy your code
      description: >-
        Upload your Python repository to deploy agents, actions, and endpoints.
        Ziet automatically discovers @Agent, @Action, and @Endpoint decorators,
        making them immediately available via API.
      operationId: deploy
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
                - file
              properties:
                file:
                  type: string
                  format: binary
                  description: ZIP or tarball of your Python repository
      responses:
        '200':
          description: Deployment successful
          content:
            application/json:
              schema:
                type: object
                properties:
                  deployed_at:
                    type: string
                    format: date-time
                  agents:
                    type: array
                    items:
                      type: string
                    description: Discovered agent IDs
                  actions:
                    type: array
                    items:
                      type: string
                    description: Discovered action IDs
                  endpoints:
                    type: array
                    items:
                      type: string
                    description: Discovered endpoint IDs
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  responses:
    BadRequest:
      description: Invalid request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      required:
        - error
        - message
      properties:
        error:
          type: string
        message:
          type: string
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: Authorization
      description: 'Format: ''Api-Key sk_live_YOUR_KEY'''

````