v3

OpenAPI 3.1.0MIT2026-07-31192456807.8 KB
RL

List training sessions

Lists all training sessions.

get/rl/training-sessions

Query parameters

statusstring[]

Status filters. When omitted, sessions in any status are returned.

limitinteger

Maximum number of sessions to return (1-100)

afterstring

Cursor for pagination (ID of the last session from the previous page)

model_resources_idstring

Filter sessions by the model resource they are attached to

created_bystring

Filter sessions in the current project by the creator ID. Pass "me" to show sessions you created.

Response

List of training sessions

Example response

{
  "data": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "error": {
        "message": "The session could not start because the selected resource has no available capacity.",
        "occurred_at": "2026-01-02T00:00:05Z"
      },
      "inference_checkpoints": [
        {
          "id": "123e4567-e89b-12d3-a456-426614174000",
          "created_at": "2026-01-02T00:00:00Z",
          "registration": {
            "model_name": "username/Meta-Llama-3-8B-rl-step-42-20260216",
            "registered_at": "2026-01-02T00:00:00Z"
          }
        }
      ],
      "training_checkpoints": [
        {
          "id": "123e4567-e89b-12d3-a456-426614174000",
          "created_at": "2026-01-02T00:00:00Z"
        }
      ],
      "resume_from_checkpoint_id": "123e4567-e89b-12d3-a456-426614174000",
      "created_at": "2026-01-02T00:00:00Z",
      "updated_at": "2026-01-02T00:00:05Z",
      "lora_config": {
        "rank": 32,
        "alpha": 64
      },
      "model_resources_id": "123e4567-e89b-12d3-a456-426614174000",
      "created_by": "user_123"
    }
  ],
  "meta": {
    "limit": 20,
    "has_more": true,
    "next_cursor": "123e4567-e89b-12d3-a456-426614174000"
  }
}