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

# Upload code artifact



## OpenAPI

````yaml /api-reference/openapi.json post /v1/code_artifacts
openapi: 3.1.0
info:
  title: Veri API
  description: >-
    REST API for the Veri RL post-training platform. All requests require a
    Bearer API key (`vk_` prefix).
  license:
    name: ''
  version: 0.1.0
servers:
  - url: https://api.veri.studio
    description: Production
security: []
tags:
  - name: Training jobs
    description: Create, monitor, and manage training jobs.
  - name: Datasets
    description: Upload and connect training datasets.
  - name: Reward functions
    description: Upload and manage reward functions.
  - name: Deployments
    description: Serve trained models and run inference.
  - name: Evaluations
    description: Score models against datasets and benchmarks.
  - name: Volumes
    description: Persistent file storage mounted into jobs.
  - name: Models
    description: Custom model registry deployments serve from.
  - name: Regions
    description: Discover available launch regions.
  - name: GPU
    description: Live GPU availability by provider and region.
  - name: Code artifacts
    description: Upload custom training script bundles.
  - name: Billing
    description: Credit balance and transaction history.
  - name: API keys
    description: Create and revoke API keys.
  - name: Account
    description: The authenticated caller's identity.
  - name: SSH keys
    description: Manage SSH key pairs for compute access.
  - name: Settings
    description: Account-level integrations (Weights & Biases).
paths:
  /v1/code_artifacts:
    post:
      tags:
        - Code artifacts
      summary: Upload code artifact
      operationId: create
      requestBody:
        description: Custom training script bundle (code.tar.gz) under the `file` field
        content:
          multipart/form-data: {}
      responses:
        '201':
          description: The uploaded code artifact handle
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CodeArtifactResponse'
        '422':
          description: The `file` field is missing or empty
      security:
        - bearerAuth: []
components:
  schemas:
    CodeArtifactResponse:
      type: object
      required:
        - object
        - id
        - created_at
      properties:
        object:
          type: string
        id:
          type: string
        created_at:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key
      description: API key with the `vk_` prefix. Create one from the dashboard.

````