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

# List training projects

> Lists all training projects for the organization.



## OpenAPI

````yaml get /v1/training_projects
openapi: 3.1.0
info:
  description: REST API for management of Baseten resources
  title: Baseten management API
  version: 1.0.0
servers:
  - url: https://api.baseten.co
security:
  - BearerAuth: []
paths:
  /v1/training_projects:
    get:
      summary: Lists training projects
      description: Lists the organization's training projects, newest first.
      parameters:
        - name: name
          in: query
          required: false
          description: Return only the project with this exact name.
          schema:
            anyOf:
              - type: string
              - type: 'null'
            default: null
            title: Name
        - name: cursor
          in: query
          required: false
          description: >-
            Opaque cursor from the pagination.cursor field of a previous
            response. Omit both cursor and limit to get every project in one
            response.
          schema:
            anyOf:
              - type: string
              - type: 'null'
            default: null
            title: Cursor
        - name: limit
          in: query
          required: false
          description: Maximum number of projects to return, up to 1000.
          schema:
            anyOf:
              - maximum: 1000
                minimum: 1
                type: integer
              - type: 'null'
            default: null
            title: Limit
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListTrainingProjectsResponseV1'
      x-codeSamples:
        - lang: bash
          source: |
            curl --request GET \
            --url https://api.baseten.co/v1/training_projects \
            --header "Authorization: Bearer $BASETEN_API_KEY"
        - lang: python
          source: |-
            import requests
            import os
            API_KEY = os.environ.get("BASETEN_API_KEY", "<YOUR_API_KEY>")
            url = "https://api.baseten.co/v1/training_projects"

            headers = {"Authorization": f"Bearer {API_KEY}"}

            response = requests.request(
                "GET",
                url,
                headers=headers,
                params={'name': None, 'cursor': None, 'limit': None}
            )

            print(response.text)
components:
  schemas:
    ListTrainingProjectsResponseV1:
      description: A response to list training projects.
      properties:
        training_projects:
          description: List of training projects.
          items:
            $ref: '#/components/schemas/TrainingProjectV1'
          title: Training Projects
          type: array
        pagination:
          $ref: '#/components/schemas/PaginationResponseV1'
          description: Pagination metadata for the page.
      required:
        - training_projects
        - pagination
      title: ListTrainingProjectsResponseV1
      type: object
    TrainingProjectV1:
      properties:
        id:
          description: Unique identifier of the training project
          title: Id
          type: string
        name:
          description: Name of the training project.
          title: Name
          type: string
        project_accelerator:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: Default GPU type for cache-enabled CPU job placement.
          title: Project Accelerator
        created_at:
          description: Time the training project was created in ISO 8601 format.
          format: date-time
          title: Created At
          type: string
        updated_at:
          description: Time the training project was updated in ISO 8601 format.
          format: date-time
          title: Updated At
          type: string
        team_name:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: Name of the team associated with the training project.
          title: Team Name
        latest_job:
          anyOf:
            - $ref: '#/components/schemas/TrainingJobV1'
            - type: 'null'
          description: Most recently created training job for the training project.
      required:
        - id
        - name
        - created_at
        - updated_at
        - latest_job
      title: TrainingProjectV1
      type: object
    PaginationResponseV1:
      properties:
        has_more:
          description: Whether more items exist after this page.
          title: Has More
          type: boolean
        cursor:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: >-
            Opaque cursor to pass into the next request. Null when there is no
            next page.
          title: Cursor
      required:
        - has_more
      title: PaginationResponseV1
      type: object
    TrainingJobV1:
      properties:
        bdn:
          $ref: '#/components/schemas/TrainingBDNConfigResponseV1'
        id:
          description: Unique identifier of the training job.
          title: Id
          type: string
        created_at:
          description: Time the job was created in ISO 8601 format.
          format: date-time
          title: Created At
          type: string
        current_status:
          description: Current status of the training job.
          title: Current Status
          type: string
        error_message:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: >-
            Error message if the training job failed. While the job is pending,
            a hint when switching it to spot capacity would let it start sooner.
          title: Error Message
        instance_type:
          $ref: '#/components/schemas/InstanceTypeV1'
          description: Instance type of the training job.
        node_count:
          default: 1
          description: >-
            Number of nodes the job runs on. The instance type describes a
            single node, so the job's total GPU count is gpu_count multiplied by
            node_count.
          examples:
            - 2
          minimum: 1
          title: Node Count
          type: integer
        updated_at:
          description: Time the job was updated in ISO 8601 format.
          format: date-time
          title: Updated At
          type: string
        training_project_id:
          description: ID of the training project.
          title: Training Project Id
          type: string
        training_project:
          $ref: '#/components/schemas/TrainingProjectSummaryV1'
          description: Summary of the training project.
        name:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: Name of the training job.
          examples:
            - gpt-oss-job
          title: Name
        checkpoint_sync_status:
          anyOf:
            - $ref: '#/components/schemas/CheckpointSyncStatus'
            - type: 'null'
          default: null
          description: Checkpoint sync status of the training job.
        priority:
          default: 0
          description: >-
            Queue priority. Higher values are dequeued first. NULL is treated as
            0.
          title: Priority
          type: integer
        availability_model:
          $ref: '#/components/schemas/AvailabilityModelV1'
          default: standard
          description: >-
            Capacity guarantee for the job. 'standard' runs on capacity that is
            not preempted. 'spot' runs on interruptible capacity that may be
            preempted; you are responsible for checkpointing your own progress.
        user:
          anyOf:
            - $ref: '#/components/schemas/UserV1'
            - type: 'null'
          default: null
          description: The user who created the training job.
      required:
        - id
        - created_at
        - current_status
        - instance_type
        - updated_at
        - training_project_id
        - training_project
      title: TrainingJobV1
      type: object
    TrainingBDNConfigResponseV1:
      properties:
        mounts:
          items:
            $ref: '#/components/schemas/TrainingBDNMountResponseV1'
          title: Mounts
          type: array
      title: TrainingBDNConfigResponseV1
      type: object
    InstanceTypeV1:
      description: An instance type.
      properties:
        id:
          description: Identifier string for the instance type
          title: Id
          type: string
        name:
          description: Display name of the instance type
          title: Name
          type: string
        memory_limit_mib:
          description: Memory limit of the instance type in Mebibytes
          title: Memory Limit Mib
          type: integer
        millicpu_limit:
          description: CPU limit of the instance type in millicpu
          title: Millicpu Limit
          type: integer
        gpu_count:
          description: Number of GPUs on the instance type
          title: Gpu Count
          type: integer
        gpu_type:
          anyOf:
            - type: string
            - type: 'null'
          description: Type of GPU on the instance type
          title: Gpu Type
        gpu_memory_limit_mib:
          anyOf:
            - type: integer
            - type: 'null'
          description: Memory limit of the GPU on the instance type in Mebibytes
          title: Gpu Memory Limit Mib
      required:
        - id
        - name
        - memory_limit_mib
        - millicpu_limit
        - gpu_count
        - gpu_type
        - gpu_memory_limit_mib
      title: InstanceTypeV1
      type: object
    TrainingProjectSummaryV1:
      description: A summary of a training project.
      properties:
        id:
          description: Unique identifier of the training project.
          title: Id
          type: string
        name:
          description: Name of the training project.
          title: Name
          type: string
      required:
        - id
        - name
      title: TrainingProjectSummaryV1
      type: object
    CheckpointSyncStatus:
      description: Lifecycle state for the checkpoint uploader.
      enum:
        - SYNCING
        - COMPLETED
      title: CheckpointSyncStatus
      type: string
    AvailabilityModelV1:
      description: Capacity a training job or Loops trainer runs on.
      enum:
        - standard
        - spot
      title: AvailabilityModelV1
      type: string
    UserV1:
      description: A user.
      properties:
        email:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: Email of the user.
          title: Email
      title: UserV1
      type: object
    TrainingBDNMountResponseV1:
      properties:
        source:
          title: Source
          type: string
        path:
          title: Path
          type: string
        include:
          description: >-
            Relative glob patterns selecting files to mount; empty includes all
            files.
          items:
            type: string
          title: Include
          type: array
        exclude:
          description: >-
            Relative glob patterns excluding files from the mount; exclusions
            win.
          items:
            type: string
          title: Exclude
          type: array
      required:
        - source
        - path
      title: TrainingBDNMountResponseV1
      type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Send `Authorization: Bearer <api_key>`. The legacy `Authorization:
        Api-Key <api_key>` scheme is also accepted.

````