{
  "openapi": "3.1.0",
  "info": {
    "title": "Solidroad API",
    "version": "2",
    "description": "Reads your training data. Version 2 is read-only. Guides: https://docs.solidroad.com/api-reference/v2/introduction"
  },
  "servers": [
    {
      "url": "https://api.solidroad.com"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "paths": {
    "/v2/assignments": {
      "get": {
        "operationId": "listAssignments",
        "summary": "List assignments",
        "tags": [
          "assignments"
        ],
        "description": "List the training assignments in the workspace, most recently updated first. `filter` is a CEL expression over status, createdAt, updatedAt, startAt and dueAt, as in `status == \"open\" && dueAt < timestamp(\"2026-11-01T00:00:00Z\")`. Pass `nextCursor` back as `cursor` to read on while `hasMore` is true; send the same filter and order with it.\n\nScope: `assignments:read`.",
        "x-solidroad-scopes": {
          "anyOf": [
            "assignments:read"
          ]
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "required": false,
            "schema": {
              "default": "",
              "type": "string",
              "maxLength": 2000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "default": "",
              "type": "string",
              "maxLength": 512
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "default": "desc",
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The record or page.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Requests allowed in the window.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the window.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When the window resets, as a Unix time in seconds.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/AssignmentPage"
                    },
                    {
                      "$ref": "#/components/schemas/AssignmentLastPage"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "default": {
            "$ref": "#/components/responses/Problem"
          }
        }
      }
    },
    "/v2/assignments/{id}": {
      "get": {
        "operationId": "getAssignment",
        "summary": "Get assignment",
        "tags": [
          "assignments"
        ],
        "description": "Get one training assignment by its ID (asg_ followed by a UUID).\n\nScope: `assignments:read`.",
        "x-solidroad-scopes": {
          "anyOf": [
            "assignments:read"
          ]
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The assignment ID: asg_ followed by a UUID.",
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The record or page.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Requests allowed in the window.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the window.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When the window resets, as a Unix time in seconds.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Assignment"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "default": {
            "$ref": "#/components/responses/Problem"
          }
        }
      }
    },
    "/v2/assignments/{id}/enrollments": {
      "get": {
        "operationId": "listAssignmentEnrollments",
        "summary": "List assignment enrollments",
        "tags": [
          "assignments"
        ],
        "description": "List every learner enrolled in one training assignment, with where each stands as Solidroad shows it: status (not_started, in_progress, retry_required, passed, failed or completed), average score, and how many of its items they have submitted. `id` is the assignment ID (asg_…). Most recently changed first unless order is asc. `filter` is a CEL expression over learnerId, status, groupId, enrolledAt, completedAt and updatedAt, as in `status == \"not_started\"` for everyone who has not started, or `completedAt != null && updatedAt > timestamp(\"2026-10-01T00:00:00Z\")`. Pass `nextCursor` back as `cursor` to read on while `hasMore` is true; send the same filter and order with it.\n\nScope: `assignments:read`.",
        "x-solidroad-scopes": {
          "anyOf": [
            "assignments:read"
          ]
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "required": false,
            "description": "A CEL expression over learnerId (==, != and in, with a person ID ppl_…), status (==, != and in, with not_started, in_progress, retry_required, passed, failed or completed), groupId (==, != and in, with a group ID grp_…), enrolledAt and updatedAt (compared with timestamp(\"…\")), and completedAt (the same, or == null and != null), such as status == \"not_started\" && groupId == \"grp_…\" or completedAt != null && updatedAt > timestamp(\"2026-10-01T00:00:00Z\"). groupId matches a learner who is a direct member of the group now; != matches one who is not. completedAt reads the stored date: it is empty for a learner who completed some time ago, it follows status by a few minutes, and a comparison with a time never matches it empty. Empty for every learner.",
            "schema": {
              "default": "",
              "type": "string",
              "maxLength": 2000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "default": "",
              "type": "string",
              "maxLength": 512
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "default": "desc",
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The assignment ID: asg_ followed by a UUID.",
            "schema": {
              "type": "string",
              "pattern": "^asg_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The record or page.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Requests allowed in the window.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the window.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When the window resets, as a Unix time in seconds.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/EnrollmentPage"
                    },
                    {
                      "$ref": "#/components/schemas/EnrollmentLastPage"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "default": {
            "$ref": "#/components/responses/Problem"
          }
        }
      }
    },
    "/v2/attempts": {
      "get": {
        "operationId": "listAttempts",
        "summary": "List attempts",
        "tags": [
          "attempts"
        ],
        "description": "List learners’ training attempts, role plays and system simulations together, most recently changed first unless order is asc. Hiring candidates’ attempts, previews, deleted attempts and calls that never started are left out. A scored role play carries its score and feedback for each scorecard section. `filter` is a CEL expression over learnerId, enrollmentId, simulationId, status and updatedAt, as in `status == \"completed\" && updatedAt >= timestamp(\"2026-10-01T00:00:00Z\")`. Pass `nextCursor` back as `cursor` to read on while `hasMore` is true; send the same filter and order with it.\n\nScope: `attempts:read`.",
        "x-solidroad-scopes": {
          "anyOf": [
            "attempts:read"
          ]
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "required": false,
            "description": "A CEL expression over learnerId (a person ID ppl_…), enrollmentId (an enrollment ID enr_…, or null for practice), simulationId (a simulation ID sim_…), status (==, != and in, with in_progress, paused, completed, failed or abandoned; a system simulation is only ever in_progress or completed) and updatedAt (compared with timestamp(\"…\")), such as status == \"completed\" && updatedAt >= timestamp(\"2026-10-01T00:00:00Z\"). Empty for every attempt.",
            "schema": {
              "default": "",
              "type": "string",
              "maxLength": 2000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "default": "",
              "type": "string",
              "maxLength": 512
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "default": "desc",
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The record or page.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Requests allowed in the window.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the window.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When the window resets, as a Unix time in seconds.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/AttemptPage"
                    },
                    {
                      "$ref": "#/components/schemas/AttemptLastPage"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "default": {
            "$ref": "#/components/responses/Problem"
          }
        }
      }
    },
    "/v2/attempts/{id}": {
      "get": {
        "operationId": "getAttempt",
        "summary": "Get attempt",
        "tags": [
          "attempts"
        ],
        "description": "Get one training attempt by its ID (att_ followed by a UUID).\n\nScope: `attempts:read`.",
        "x-solidroad-scopes": {
          "anyOf": [
            "attempts:read"
          ]
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The attempt ID: att_ followed by a UUID.",
            "schema": {
              "type": "string",
              "pattern": "^att_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The record or page.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Requests allowed in the window.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the window.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When the window resets, as a Unix time in seconds.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Attempt"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "default": {
            "$ref": "#/components/responses/Problem"
          }
        }
      }
    },
    "/v2/attempts/{id}/transcript": {
      "get": {
        "operationId": "getAttemptTranscript",
        "summary": "Get attempt transcript",
        "tags": [
          "attempts"
        ],
        "description": "Get the transcript of one role play attempt by its ID (att_ followed by a UUID): each turn the learner and the AI persona took, in order, as saved so far. A system simulation has no transcript and answers not found.\n\nScope: `attempts:read`.",
        "x-solidroad-scopes": {
          "anyOf": [
            "attempts:read"
          ]
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The attempt ID: att_ followed by a UUID.",
            "schema": {
              "type": "string",
              "pattern": "^att_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The record or page.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Requests allowed in the window.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the window.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When the window resets, as a Unix time in seconds.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AttemptTranscript"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "default": {
            "$ref": "#/components/responses/Problem"
          }
        }
      }
    },
    "/v2/deletions": {
      "get": {
        "operationId": "listDeletions",
        "summary": "List deletions",
        "tags": [
          "deletions"
        ],
        "description": "List the assignments, enrollments, attempts, people and simulations removed from the workspace, newest first unless order is asc, so a copy of them can be deleted. Each row has the removed record’s ID, its object and deletedAt. Only the kinds the API key may read are listed. For more, send back nextCursor with the same filter and order.\n\nScope: any one of `assignments:read`, `attempts:read`, `people:read`, `simulations:read`.",
        "x-solidroad-scopes": {
          "anyOf": [
            "assignments:read",
            "attempts:read",
            "people:read",
            "simulations:read"
          ]
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "required": false,
            "description": "A CEL expression over object (assignment, enrollment, attempt, person or simulation; ==, != and in) and deletedAt (compared with timestamp(\"…\")), such as deletedAt > timestamp(\"2026-10-01T00:00:00Z\") && object == \"enrollment\". Empty for every deletion.",
            "schema": {
              "default": "",
              "type": "string",
              "maxLength": 2000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "default": "",
              "type": "string",
              "maxLength": 512
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "default": "desc",
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The record or page.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Requests allowed in the window.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the window.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When the window resets, as a Unix time in seconds.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/DeletionPage"
                    },
                    {
                      "$ref": "#/components/schemas/DeletionLastPage"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "default": {
            "$ref": "#/components/responses/Problem"
          }
        }
      }
    },
    "/v2/enrollments": {
      "get": {
        "operationId": "listEnrollments",
        "summary": "List enrollments",
        "tags": [
          "enrollments"
        ],
        "description": "List the enrollments on every training assignment in the workspace, one row per learner per assignment, with the same fields as listAssignmentEnrollments. Use it to keep a copy of enrollments up to date; use listAssignmentEnrollments for one assignment's roster. Most recently changed first unless order is asc. `filter` is a CEL expression over assignmentId, learnerId, enrolledAt and updatedAt, as in `assignmentId in [\"asg_…\"] && updatedAt > timestamp(\"2026-10-01T00:00:00Z\")`. Pass `nextCursor` back as `cursor` to read on while `hasMore` is true; send the same filter and order with it.\n\nScope: `assignments:read`.",
        "x-solidroad-scopes": {
          "anyOf": [
            "assignments:read"
          ]
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "required": false,
            "description": "A CEL expression over assignmentId (==, != and in, with an assignment ID asg_…), learnerId (==, != and in, with a person ID ppl_…), enrolledAt and updatedAt (compared with timestamp(\"…\")), such as updatedAt > timestamp(\"2026-10-01T00:00:00Z\"). Empty for every enrollment.",
            "schema": {
              "default": "",
              "type": "string",
              "maxLength": 2000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "default": "",
              "type": "string",
              "maxLength": 512
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "default": "desc",
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The record or page.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Requests allowed in the window.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the window.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When the window resets, as a Unix time in seconds.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/EnrollmentPage"
                    },
                    {
                      "$ref": "#/components/schemas/EnrollmentLastPage"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "default": {
            "$ref": "#/components/responses/Problem"
          }
        }
      }
    },
    "/v2/groups": {
      "get": {
        "operationId": "listGroups",
        "summary": "List groups",
        "tags": [
          "groups"
        ],
        "description": "List the groups in the workspace, most recently changed first unless order is asc. Each group has a name, the parent it sits under and whether single sign-on manages it. For more, send back nextCursor with the same filter and order.\n\nScope: `groups:read`.",
        "x-solidroad-scopes": {
          "anyOf": [
            "groups:read"
          ]
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "required": false,
            "description": "A CEL expression over updatedAt (compared with timestamp(\"…\")), such as updatedAt > timestamp(\"2026-10-01T00:00:00Z\"). Empty for every group.",
            "schema": {
              "default": "",
              "type": "string",
              "maxLength": 2000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "default": "",
              "type": "string",
              "maxLength": 512
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "default": "desc",
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The record or page.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Requests allowed in the window.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the window.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When the window resets, as a Unix time in seconds.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/GroupPage"
                    },
                    {
                      "$ref": "#/components/schemas/GroupLastPage"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "default": {
            "$ref": "#/components/responses/Problem"
          }
        }
      }
    },
    "/v2/groups/{id}": {
      "get": {
        "operationId": "getGroup",
        "summary": "Get group",
        "tags": [
          "groups"
        ],
        "description": "Get one group in the workspace by its ID (grp_…): its name, the parent it sits under and whether single sign-on manages it.\n\nScope: `groups:read`.",
        "x-solidroad-scopes": {
          "anyOf": [
            "groups:read"
          ]
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The group’s ID, grp_ and a UUID.",
            "schema": {
              "type": "string",
              "pattern": "^grp_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The record or page.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Requests allowed in the window.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the window.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When the window resets, as a Unix time in seconds.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Group"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "default": {
            "$ref": "#/components/responses/Problem"
          }
        }
      }
    },
    "/v2/groups/{id}/leads": {
      "get": {
        "operationId": "listGroupLeads",
        "summary": "List group leads",
        "tags": [
          "groups"
        ],
        "description": "List the leads of one group, in order of person ID. A lead is listed on the group they lead, not on its subgroups. `id` is the group ID (grp_…). For more, send back nextCursor with the same filter and order.\n\nScope: `groups:read`.",
        "x-solidroad-scopes": {
          "anyOf": [
            "groups:read"
          ]
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "required": false,
            "description": "A CEL expression over personId (==, != and in, with a person ID ppl_…), such as personId == \"ppl_…\". Empty for every lead.",
            "schema": {
              "default": "",
              "type": "string",
              "maxLength": 2000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "default": "",
              "type": "string",
              "maxLength": 512
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "default": "desc",
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The group’s ID, grp_ and a UUID.",
            "schema": {
              "type": "string",
              "pattern": "^grp_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The record or page.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Requests allowed in the window.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the window.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When the window resets, as a Unix time in seconds.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/GroupLeadPage"
                    },
                    {
                      "$ref": "#/components/schemas/GroupLeadLastPage"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "default": {
            "$ref": "#/components/responses/Problem"
          }
        }
      }
    },
    "/v2/groups/{id}/members": {
      "get": {
        "operationId": "listGroupMembers",
        "summary": "List group members",
        "tags": [
          "groups"
        ],
        "description": "List the direct members of one group, most recently added first unless order is asc. Members of its subgroups are not listed. `id` is the group ID (grp_…). Each row has the person’s ID and when they were added. For more, send back nextCursor with the same filter and order.\n\nScope: `groups:read`.",
        "x-solidroad-scopes": {
          "anyOf": [
            "groups:read"
          ]
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "required": false,
            "description": "A CEL expression over personId (==, != and in, with a person ID ppl_…) and addedAt (compared with timestamp(\"…\")), such as addedAt > timestamp(\"2026-10-01T00:00:00Z\"). Empty for every member.",
            "schema": {
              "default": "",
              "type": "string",
              "maxLength": 2000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "default": "",
              "type": "string",
              "maxLength": 512
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "default": "desc",
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The group’s ID, grp_ and a UUID.",
            "schema": {
              "type": "string",
              "pattern": "^grp_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The record or page.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Requests allowed in the window.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the window.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When the window resets, as a Unix time in seconds.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/GroupMemberPage"
                    },
                    {
                      "$ref": "#/components/schemas/GroupMemberLastPage"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "default": {
            "$ref": "#/components/responses/Problem"
          }
        }
      }
    },
    "/v2/people": {
      "get": {
        "operationId": "listPeople",
        "summary": "List people",
        "tags": [
          "people"
        ],
        "description": "List the people in the workspace: its members, newest to join first unless order is asc. Each person has an email, a name and roles (learner, lead). For more, send back nextCursor with the same filter and order.\n\nScope: `people:read`.",
        "x-solidroad-scopes": {
          "anyOf": [
            "people:read"
          ]
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "required": false,
            "description": "A CEL expression over email (==, != and in, ignoring case) and createdAt (compared with timestamp(\"…\")), such as email == \"ana@example.com\" or createdAt > timestamp(\"2026-10-01T00:00:00Z\"). Empty for everyone.",
            "schema": {
              "default": "",
              "type": "string",
              "maxLength": 2000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "default": "",
              "type": "string",
              "maxLength": 512
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "default": "desc",
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The record or page.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Requests allowed in the window.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the window.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When the window resets, as a Unix time in seconds.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/PersonPage"
                    },
                    {
                      "$ref": "#/components/schemas/PersonLastPage"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "default": {
            "$ref": "#/components/responses/Problem"
          }
        }
      }
    },
    "/v2/people/{id}": {
      "get": {
        "operationId": "getPerson",
        "summary": "Get person",
        "tags": [
          "people"
        ],
        "description": "Get one person in the workspace by their ID (ppl_…): their email, name and roles (learner, lead).\n\nScope: `people:read`.",
        "x-solidroad-scopes": {
          "anyOf": [
            "people:read"
          ]
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The person’s ID, ppl_ and a UUID.",
            "schema": {
              "type": "string",
              "pattern": "^ppl_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The record or page.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Requests allowed in the window.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the window.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When the window resets, as a Unix time in seconds.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Person"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "default": {
            "$ref": "#/components/responses/Problem"
          }
        }
      }
    },
    "/v2/scorecards": {
      "get": {
        "operationId": "listScorecards",
        "summary": "List scorecards",
        "tags": [
          "scorecards"
        ],
        "description": "List the workspace’s scorecards, most recently changed first unless order is asc. A deleted scorecard stays in the list with archived set, because attempts on it still name its versions. `filter` is a CEL expression over updatedAt, as in `updatedAt >= timestamp(\"2026-10-01T00:00:00Z\")`. Pass `nextCursor` back as `cursor` to read on while `hasMore` is true; send the same filter and order with it.\n\nScope: `scorecards:read`.",
        "x-solidroad-scopes": {
          "anyOf": [
            "scorecards:read"
          ]
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "required": false,
            "description": "A CEL expression over updatedAt (compared with timestamp(\"…\")), such as updatedAt >= timestamp(\"2026-10-01T00:00:00Z\"). Empty for every scorecard.",
            "schema": {
              "default": "",
              "type": "string",
              "maxLength": 2000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "default": "",
              "type": "string",
              "maxLength": 512
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "default": "desc",
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The record or page.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Requests allowed in the window.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the window.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When the window resets, as a Unix time in seconds.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/ScorecardPage"
                    },
                    {
                      "$ref": "#/components/schemas/ScorecardLastPage"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "default": {
            "$ref": "#/components/responses/Problem"
          }
        }
      }
    },
    "/v2/scorecards/{id}": {
      "get": {
        "operationId": "getScorecard",
        "summary": "Get scorecard",
        "tags": [
          "scorecards"
        ],
        "description": "Get one scorecard by its ID (scd_ followed by a UUID), such as the `scorecardId` on an attempt.\n\nScope: `scorecards:read`.",
        "x-solidroad-scopes": {
          "anyOf": [
            "scorecards:read"
          ]
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The scorecard ID: scd_ followed by a UUID.",
            "schema": {
              "type": "string",
              "pattern": "^scd_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The record or page.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Requests allowed in the window.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the window.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When the window resets, as a Unix time in seconds.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Scorecard"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "default": {
            "$ref": "#/components/responses/Problem"
          }
        }
      }
    },
    "/v2/scorecards/{id}/versions": {
      "get": {
        "operationId": "listScorecardVersions",
        "summary": "List scorecard versions",
        "tags": [
          "scorecards"
        ],
        "description": "List the published versions of one scorecard (scd_ followed by a UUID), newest first unless order is asc, each with its sections. Drafts are left out. `filter` is a CEL expression over publishedAt, as in `publishedAt >= timestamp(\"2026-10-01T00:00:00Z\")`. Pass `nextCursor` back as `cursor` to read on while `hasMore` is true; send the same filter and order with it.\n\nScope: `scorecards:read`.",
        "x-solidroad-scopes": {
          "anyOf": [
            "scorecards:read"
          ]
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "required": false,
            "description": "A CEL expression over publishedAt (compared with timestamp(\"…\")), such as publishedAt >= timestamp(\"2026-10-01T00:00:00Z\"). Empty for every published version.",
            "schema": {
              "default": "",
              "type": "string",
              "maxLength": 2000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "default": "",
              "type": "string",
              "maxLength": 512
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "default": "desc",
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The scorecard ID: scd_ followed by a UUID.",
            "schema": {
              "type": "string",
              "pattern": "^scd_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The record or page.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Requests allowed in the window.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the window.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When the window resets, as a Unix time in seconds.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/ScorecardVersionPage"
                    },
                    {
                      "$ref": "#/components/schemas/ScorecardVersionLastPage"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "default": {
            "$ref": "#/components/responses/Problem"
          }
        }
      }
    },
    "/v2/scorecards/{id}/versions/{versionId}": {
      "get": {
        "operationId": "getScorecardVersion",
        "summary": "Get scorecard version",
        "tags": [
          "scorecards"
        ],
        "description": "Get one published version of a scorecard, with its sections. Takes the scorecard ID (scd_ followed by a UUID) and the version ID (scv_ followed by a UUID), such as the `scorecardId` and `scorecardVersionId` on an attempt.\n\nScope: `scorecards:read`.",
        "x-solidroad-scopes": {
          "anyOf": [
            "scorecards:read"
          ]
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The scorecard ID: scd_ followed by a UUID.",
            "schema": {
              "type": "string",
              "pattern": "^scd_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
            }
          },
          {
            "name": "versionId",
            "in": "path",
            "required": true,
            "description": "The scorecard version ID: scv_ followed by a UUID.",
            "schema": {
              "type": "string",
              "pattern": "^scv_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The record or page.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Requests allowed in the window.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the window.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When the window resets, as a Unix time in seconds.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScorecardVersion"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "default": {
            "$ref": "#/components/responses/Problem"
          }
        }
      }
    },
    "/v2/simulations": {
      "get": {
        "operationId": "listSimulations",
        "summary": "List simulations",
        "tags": [
          "simulations"
        ],
        "description": "List the workspace’s training simulations, role plays and system simulations together, most recently changed first unless order is asc. Hiring simulations, simulations shared across workspaces and deleted simulations are left out. `filter` is a CEL expression over updatedAt, as in `updatedAt >= timestamp(\"2026-10-01T00:00:00Z\")`. Pass `nextCursor` back as `cursor` to read on while `hasMore` is true; send the same filter and order with it.\n\nScope: `simulations:read`.",
        "x-solidroad-scopes": {
          "anyOf": [
            "simulations:read"
          ]
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "required": false,
            "description": "A CEL expression over updatedAt (compared with timestamp(\"…\")), such as updatedAt >= timestamp(\"2026-10-01T00:00:00Z\"). Empty for every simulation.",
            "schema": {
              "default": "",
              "type": "string",
              "maxLength": 2000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "default": "",
              "type": "string",
              "maxLength": 512
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "default": "desc",
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The record or page.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Requests allowed in the window.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the window.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When the window resets, as a Unix time in seconds.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/SimulationPage"
                    },
                    {
                      "$ref": "#/components/schemas/SimulationLastPage"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "default": {
            "$ref": "#/components/responses/Problem"
          }
        }
      }
    },
    "/v2/simulations/{id}": {
      "get": {
        "operationId": "getSimulation",
        "summary": "Get simulation",
        "tags": [
          "simulations"
        ],
        "description": "Get one training simulation by its ID (sim_ followed by a UUID), such as the `simulationId` on an attempt. A deleted simulation can still be read here, so every attempt’s simulation can be found.\n\nScope: `simulations:read`.",
        "x-solidroad-scopes": {
          "anyOf": [
            "simulations:read"
          ]
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The simulation ID: sim_ followed by a UUID.",
            "schema": {
              "type": "string",
              "pattern": "^sim_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The record or page.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Requests allowed in the window.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the window.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When the window resets, as a Unix time in seconds.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Simulation"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "default": {
            "$ref": "#/components/responses/Problem"
          }
        }
      }
    },
    "/v2/simulations/{id}/versions": {
      "get": {
        "operationId": "listSimulationVersions",
        "summary": "List simulation versions",
        "tags": [
          "simulations"
        ],
        "description": "List the versions of one training simulation (sim_ followed by a UUID), newest first unless order is asc: each version’s number, what made it and what changed, never its contents. An attempt’s `simulationVersionId` names one of these. A system simulation has none, and so does a workspace without simulation versioning. `filter` is a CEL expression over createdAt, as in `createdAt >= timestamp(\"2026-10-01T00:00:00Z\")`. Pass `nextCursor` back as `cursor` to read on while `hasMore` is true; send the same filter and order with it.\n\nScope: `simulations:read`.",
        "x-solidroad-scopes": {
          "anyOf": [
            "simulations:read"
          ]
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "required": false,
            "description": "A CEL expression over createdAt (compared with timestamp(\"…\")), such as createdAt >= timestamp(\"2026-10-01T00:00:00Z\"). Empty for every version.",
            "schema": {
              "default": "",
              "type": "string",
              "maxLength": 2000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "default": "",
              "type": "string",
              "maxLength": 512
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "default": "desc",
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The simulation ID: sim_ followed by a UUID.",
            "schema": {
              "type": "string",
              "pattern": "^sim_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The record or page.",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Requests allowed in the window.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the window.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When the window resets, as a Unix time in seconds.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/SimulationVersionPage"
                    },
                    {
                      "$ref": "#/components/schemas/SimulationVersionLastPage"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "default": {
            "$ref": "#/components/responses/Problem"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    },
    "responses": {
      "InvalidRequest": {
        "description": "A parameter, the filter or the cursor is not valid. The code is `invalid_request`.",
        "headers": {
          "X-RateLimit-Limit": {
            "description": "Requests allowed in the window.",
            "schema": {
              "type": "integer"
            }
          },
          "X-RateLimit-Remaining": {
            "description": "Requests left in the window.",
            "schema": {
              "type": "integer"
            }
          },
          "X-RateLimit-Reset": {
            "description": "When the window resets, as a Unix time in seconds.",
            "schema": {
              "type": "integer"
            }
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "Unauthorized": {
        "description": "The API key is missing or not valid. The code is `unauthorized`.",
        "headers": {
          "X-RateLimit-Limit": {
            "description": "Requests allowed in the window.",
            "schema": {
              "type": "integer"
            }
          },
          "X-RateLimit-Remaining": {
            "description": "Requests left in the window.",
            "schema": {
              "type": "integer"
            }
          },
          "X-RateLimit-Reset": {
            "description": "When the window resets, as a Unix time in seconds.",
            "schema": {
              "type": "integer"
            }
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "Forbidden": {
        "description": "The key cannot read this. The code is `insufficient_scope`, `api_key_blocked` or `forbidden`.",
        "headers": {
          "X-RateLimit-Limit": {
            "description": "Requests allowed in the window.",
            "schema": {
              "type": "integer"
            }
          },
          "X-RateLimit-Remaining": {
            "description": "Requests left in the window.",
            "schema": {
              "type": "integer"
            }
          },
          "X-RateLimit-Reset": {
            "description": "When the window resets, as a Unix time in seconds.",
            "schema": {
              "type": "integer"
            }
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "NotFound": {
        "description": "No such record is in your workspace. The code is `not_found`.",
        "headers": {
          "X-RateLimit-Limit": {
            "description": "Requests allowed in the window.",
            "schema": {
              "type": "integer"
            }
          },
          "X-RateLimit-Remaining": {
            "description": "Requests left in the window.",
            "schema": {
              "type": "integer"
            }
          },
          "X-RateLimit-Reset": {
            "description": "When the window resets, as a Unix time in seconds.",
            "schema": {
              "type": "integer"
            }
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "RateLimited": {
        "description": "You sent too many requests. The code is `rate_limited`.",
        "headers": {
          "X-RateLimit-Limit": {
            "description": "Requests allowed in the window.",
            "schema": {
              "type": "integer"
            }
          },
          "X-RateLimit-Remaining": {
            "description": "Requests left in the window.",
            "schema": {
              "type": "integer"
            }
          },
          "X-RateLimit-Reset": {
            "description": "When the window resets, as a Unix time in seconds.",
            "schema": {
              "type": "integer"
            }
          },
          "Retry-After": {
            "description": "Seconds to wait before the next request.",
            "schema": {
              "type": "integer"
            }
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "InternalError": {
        "description": "Something went wrong on our side. The code is `internal_error`.",
        "headers": {
          "X-RateLimit-Limit": {
            "description": "Requests allowed in the window.",
            "schema": {
              "type": "integer"
            }
          },
          "X-RateLimit-Remaining": {
            "description": "Requests left in the window.",
            "schema": {
              "type": "integer"
            }
          },
          "X-RateLimit-Reset": {
            "description": "When the window resets, as a Unix time in seconds.",
            "schema": {
              "type": "integer"
            }
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "Problem": {
        "description": "Any other error, such as `conflict` or `unavailable`. Read `code` in the body.",
        "headers": {
          "X-RateLimit-Limit": {
            "description": "Requests allowed in the window.",
            "schema": {
              "type": "integer"
            }
          },
          "X-RateLimit-Remaining": {
            "description": "Requests left in the window.",
            "schema": {
              "type": "integer"
            }
          },
          "X-RateLimit-Reset": {
            "description": "When the window resets, as a Unix time in seconds.",
            "schema": {
              "type": "integer"
            }
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      }
    },
    "schemas": {
      "Assignment": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^asg_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
          },
          "object": {
            "type": "string",
            "const": "assignment"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "appUrl": {
            "type": "string",
            "format": "uri"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "draft",
              "open",
              "ended",
              "scheduled"
            ]
          },
          "startAt": {
            "type": "string",
            "format": "date-time"
          },
          "dueAt": {
            "type": "string",
            "format": "date-time"
          },
          "passingScore": {
            "description": "Left out when the assignment has no pass mark.",
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "attemptLimit": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "requiresRetry": {
            "type": "boolean"
          },
          "learnerInstructions": {
            "type": "string"
          },
          "simulationIds": {
            "description": "The role plays and system simulations in the assignment, as simulation IDs sim_…, in the order learners take them. Leaves out deleted and hiring simulations, and any simulation that belongs to no workspace or to another. Left out when none remain.",
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^sim_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
            }
          }
        },
        "required": [
          "id",
          "object",
          "createdAt",
          "updatedAt",
          "appUrl",
          "name",
          "status",
          "requiresRetry"
        ],
        "additionalProperties": false
      },
      "AssignmentLastPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Assignment"
            }
          },
          "hasMore": {
            "type": "boolean",
            "const": false
          }
        },
        "required": [
          "data",
          "hasMore"
        ],
        "additionalProperties": false
      },
      "AssignmentPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Assignment"
            }
          },
          "hasMore": {
            "type": "boolean",
            "const": true
          },
          "nextCursor": {
            "type": "string"
          }
        },
        "required": [
          "data",
          "hasMore",
          "nextCursor"
        ],
        "additionalProperties": false
      },
      "Attempt": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^att_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
          },
          "object": {
            "type": "string",
            "const": "attempt"
          },
          "kind": {
            "type": "string",
            "enum": [
              "role_play",
              "system"
            ],
            "description": "role_play for a conversation with an AI persona; system for a system simulation."
          },
          "learnerId": {
            "description": "The learner’s person ID. Left out when they have no membership in the workspace.",
            "type": "string",
            "pattern": "^ppl_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
          },
          "enrollmentId": {
            "description": "The enrollment the attempt counts toward. Left out for practice outside an assignment.",
            "type": "string",
            "pattern": "^enr_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
          },
          "simulationId": {
            "description": "The simulation the attempt was for. Left out for a hiring simulation, or one that belongs to no workspace or to another.",
            "type": "string",
            "pattern": "^sim_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
          },
          "simulationVersionId": {
            "description": "The version of the simulation the attempt ran on, one of those listed under the simulation’s versions. Left out with simulationId, and for an attempt started before the workspace had simulation versioning.",
            "type": "string",
            "pattern": "^smv_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
          },
          "status": {
            "type": "string",
            "enum": [
              "in_progress",
              "paused",
              "completed",
              "failed",
              "abandoned"
            ]
          },
          "mode": {
            "description": "System simulations only: practice shows hints.",
            "type": "string",
            "enum": [
              "practice",
              "assessment"
            ]
          },
          "startedAt": {
            "type": "string",
            "format": "date-time"
          },
          "endedAt": {
            "description": "When the attempt reached a final status.",
            "type": "string",
            "format": "date-time"
          },
          "score": {
            "description": "0 to 100, as the app shows it, a reviewer’s correction included. Left out until scored, and for system simulations.",
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "grade": {
            "description": "The CEFR level, on a simulation graded that way.",
            "type": "string"
          },
          "passed": {
            "description": "The score against the assignment’s passing score. Left out with no score or no passing score.",
            "type": "boolean"
          },
          "scoreCorrected": {
            "description": "Role plays only: a reviewer has corrected the score.",
            "type": "boolean"
          },
          "scoredAt": {
            "description": "When the score was last written, or when the attempt ended if Solidroad has no record of that.",
            "type": "string",
            "format": "date-time"
          },
          "positives": {
            "description": "What the learner did well overall, as written when the attempt was scored: a reviewer’s correction does not change it. Left out until scored, and for system simulations.",
            "type": "string"
          },
          "negatives": {
            "description": "Where the learner fell short overall, as written when the attempt was scored: a reviewer’s correction does not change it. Left out until scored, and for system simulations.",
            "type": "string"
          },
          "sectionScores": {
            "description": "The score and feedback for each scorecard section. Left out until scored, and for system simulations.",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "sectionId": {
                  "description": "The section’s ID, the same across scorecard versions. Left out for a section that could not be matched to the scorecard.",
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "skill",
                    "speech",
                    "process",
                    "failure"
                  ]
                },
                "score": {
                  "description": "The points scored, a reviewer’s correction included. Left out for an excluded section and one not yet scored.",
                  "type": "number"
                },
                "topScore": {
                  "description": "The most points the section can score.",
                  "type": "number"
                },
                "result": {
                  "description": "pass or fail on a pass-fail section; excluded on a section that did not apply. Left out otherwise.",
                  "type": "string",
                  "enum": [
                    "pass",
                    "fail",
                    "excluded"
                  ]
                },
                "failedScorecard": {
                  "type": "boolean",
                  "description": "This section failed the whole scorecard."
                },
                "explanation": {
                  "description": "The feedback as stored. On a section that failed the scorecard, the app shows the failure reason in its place.",
                  "type": "string"
                },
                "example": {
                  "type": "string"
                },
                "improvement": {
                  "type": "string"
                }
              },
              "required": [
                "name",
                "failedScorecard"
              ],
              "additionalProperties": false
            }
          },
          "scorecardId": {
            "description": "The scorecard that scored the attempt. Left out with scorecardVersionId.",
            "type": "string",
            "pattern": "^scd_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
          },
          "scorecardVersionId": {
            "description": "The scorecard version that scored the attempt. Left out for an attempt scored before versions were recorded, and for one with no scorecard.",
            "type": "string",
            "pattern": "^scv_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the attempt’s result last changed. Sync on this, not scoredAt: a correction moves it."
          }
        },
        "required": [
          "id",
          "object",
          "kind",
          "status",
          "createdAt",
          "updatedAt"
        ],
        "additionalProperties": false
      },
      "AttemptLastPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Attempt"
            }
          },
          "hasMore": {
            "type": "boolean",
            "const": false
          }
        },
        "required": [
          "data",
          "hasMore"
        ],
        "additionalProperties": false
      },
      "AttemptPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Attempt"
            }
          },
          "hasMore": {
            "type": "boolean",
            "const": true
          },
          "nextCursor": {
            "type": "string"
          }
        },
        "required": [
          "data",
          "hasMore",
          "nextCursor"
        ],
        "additionalProperties": false
      },
      "AttemptTranscript": {
        "type": "object",
        "properties": {
          "object": {
            "type": "string",
            "const": "attempt_transcript"
          },
          "attemptId": {
            "type": "string",
            "pattern": "^att_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
          },
          "turns": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "speaker": {
                  "type": "string",
                  "enum": [
                    "learner",
                    "persona",
                    "system"
                  ],
                  "description": "learner for the person training; persona for the AI they spoke to; system for a marker Solidroad added, such as a pause."
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "message",
                    "note"
                  ],
                  "description": "message for what was said or sent; note for something the learner wrote down during a text attempt."
                },
                "speakerName": {
                  "description": "The name shown for the speaker.",
                  "type": "string"
                },
                "text": {
                  "type": "string"
                },
                "startSeconds": {
                  "description": "When the turn started, in seconds from the start of the attempt. For a chat or email message, when it was sent.",
                  "type": "number",
                  "minimum": 0
                },
                "endSeconds": {
                  "description": "When the turn ended, in seconds from the start of the attempt. Left out for an attempt that ran over more than one connected call, such as one paused and resumed: only the start is recorded on one clock across the whole attempt.",
                  "type": "number",
                  "minimum": 0
                }
              },
              "required": [
                "speaker",
                "kind",
                "text"
              ],
              "additionalProperties": false
            },
            "description": "In the order they happened. Empty when nothing has been said yet."
          }
        },
        "required": [
          "object",
          "attemptId",
          "turns"
        ],
        "additionalProperties": false
      },
      "DeletionLastPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "description": "The removed assignment’s ID, asg_ and a UUID.",
                      "type": "string",
                      "pattern": "^asg_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
                    },
                    "object": {
                      "type": "string",
                      "const": "assignment"
                    },
                    "deletedAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the record was removed."
                    }
                  },
                  "required": [
                    "id",
                    "object",
                    "deletedAt"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "description": "The removed enrollment’s ID, enr_ and a UUID.",
                      "type": "string",
                      "pattern": "^enr_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
                    },
                    "object": {
                      "type": "string",
                      "const": "enrollment"
                    },
                    "deletedAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the record was removed."
                    }
                  },
                  "required": [
                    "id",
                    "object",
                    "deletedAt"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "description": "The removed attempt’s ID, att_ and a UUID.",
                      "type": "string",
                      "pattern": "^att_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
                    },
                    "object": {
                      "type": "string",
                      "const": "attempt"
                    },
                    "deletedAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the record was removed."
                    }
                  },
                  "required": [
                    "id",
                    "object",
                    "deletedAt"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "description": "The ID of the person who left, ppl_ and a UUID.",
                      "type": "string",
                      "pattern": "^ppl_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
                    },
                    "object": {
                      "type": "string",
                      "const": "person"
                    },
                    "deletedAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the record was removed."
                    }
                  },
                  "required": [
                    "id",
                    "object",
                    "deletedAt"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "description": "The removed simulation’s ID, sim_ and a UUID.",
                      "type": "string",
                      "pattern": "^sim_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
                    },
                    "object": {
                      "type": "string",
                      "const": "simulation"
                    },
                    "deletedAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the record was removed."
                    }
                  },
                  "required": [
                    "id",
                    "object",
                    "deletedAt"
                  ],
                  "additionalProperties": false
                }
              ]
            }
          },
          "hasMore": {
            "type": "boolean",
            "const": false
          }
        },
        "required": [
          "data",
          "hasMore"
        ],
        "additionalProperties": false
      },
      "DeletionPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "description": "The removed assignment’s ID, asg_ and a UUID.",
                      "type": "string",
                      "pattern": "^asg_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
                    },
                    "object": {
                      "type": "string",
                      "const": "assignment"
                    },
                    "deletedAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the record was removed."
                    }
                  },
                  "required": [
                    "id",
                    "object",
                    "deletedAt"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "description": "The removed enrollment’s ID, enr_ and a UUID.",
                      "type": "string",
                      "pattern": "^enr_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
                    },
                    "object": {
                      "type": "string",
                      "const": "enrollment"
                    },
                    "deletedAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the record was removed."
                    }
                  },
                  "required": [
                    "id",
                    "object",
                    "deletedAt"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "description": "The removed attempt’s ID, att_ and a UUID.",
                      "type": "string",
                      "pattern": "^att_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
                    },
                    "object": {
                      "type": "string",
                      "const": "attempt"
                    },
                    "deletedAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the record was removed."
                    }
                  },
                  "required": [
                    "id",
                    "object",
                    "deletedAt"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "description": "The ID of the person who left, ppl_ and a UUID.",
                      "type": "string",
                      "pattern": "^ppl_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
                    },
                    "object": {
                      "type": "string",
                      "const": "person"
                    },
                    "deletedAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the record was removed."
                    }
                  },
                  "required": [
                    "id",
                    "object",
                    "deletedAt"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "description": "The removed simulation’s ID, sim_ and a UUID.",
                      "type": "string",
                      "pattern": "^sim_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
                    },
                    "object": {
                      "type": "string",
                      "const": "simulation"
                    },
                    "deletedAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the record was removed."
                    }
                  },
                  "required": [
                    "id",
                    "object",
                    "deletedAt"
                  ],
                  "additionalProperties": false
                }
              ]
            }
          },
          "hasMore": {
            "type": "boolean",
            "const": true
          },
          "nextCursor": {
            "type": "string"
          }
        },
        "required": [
          "data",
          "hasMore",
          "nextCursor"
        ],
        "additionalProperties": false
      },
      "Enrollment": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^enr_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
          },
          "object": {
            "type": "string",
            "const": "enrollment"
          },
          "assignmentId": {
            "type": "string",
            "pattern": "^asg_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
          },
          "learnerId": {
            "description": "The learner’s person ID. Kept after they leave the workspace. Can be left out for someone who left long ago.",
            "type": "string",
            "pattern": "^ppl_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
          },
          "status": {
            "type": "string",
            "enum": [
              "not_started",
              "in_progress",
              "retry_required",
              "passed",
              "failed",
              "completed"
            ],
            "description": "passed and failed on an assignment with a passing score; completed on one without. in_progress includes a learner waiting on a score."
          },
          "averageScore": {
            "description": "The learner’s assignment score, as the app shows it. Left out until every scored simulation has a score.",
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "submittedItems": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "Simulations attempted plus required system simulations completed."
          },
          "totalItems": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "Simulations plus required system simulations in the assignment."
          },
          "enrolledAt": {
            "type": "string",
            "format": "date-time"
          },
          "completedAt": {
            "description": "When the learner reached their current passed or completed status. A retry while complete does not change it. It is removed if they stop being complete, and set again when they complete again. It can be left out for a learner who completed some time ago, and for a few minutes after the status changes; updatedAt moves when it arrives.",
            "type": "string",
            "format": "date-time"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the status or score last changed."
          },
          "appUrl": {
            "type": "string",
            "format": "uri"
          }
        },
        "required": [
          "id",
          "object",
          "assignmentId",
          "status",
          "submittedItems",
          "totalItems",
          "enrolledAt",
          "createdAt",
          "updatedAt",
          "appUrl"
        ],
        "additionalProperties": false
      },
      "EnrollmentLastPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Enrollment"
            }
          },
          "hasMore": {
            "type": "boolean",
            "const": false
          }
        },
        "required": [
          "data",
          "hasMore"
        ],
        "additionalProperties": false
      },
      "EnrollmentPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Enrollment"
            }
          },
          "hasMore": {
            "type": "boolean",
            "const": true
          },
          "nextCursor": {
            "type": "string"
          }
        },
        "required": [
          "data",
          "hasMore",
          "nextCursor"
        ],
        "additionalProperties": false
      },
      "Group": {
        "type": "object",
        "properties": {
          "id": {
            "description": "The group’s ID, grp_ and a UUID.",
            "type": "string",
            "pattern": "^grp_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
          },
          "object": {
            "type": "string",
            "const": "group"
          },
          "name": {
            "type": "string"
          },
          "parentGroupId": {
            "description": "The group this one sits under. Left out for a top-level group.",
            "type": "string",
            "pattern": "^grp_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
          },
          "managedBySso": {
            "type": "boolean",
            "description": "A directory owns this group: single sign-on made it, or a SCIM group is linked to it."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the group itself last changed. A change of members or leads does not move it, so a sync re-reads those in full."
          }
        },
        "required": [
          "id",
          "object",
          "name",
          "managedBySso",
          "createdAt",
          "updatedAt"
        ],
        "additionalProperties": false
      },
      "GroupLastPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Group"
            }
          },
          "hasMore": {
            "type": "boolean",
            "const": false
          }
        },
        "required": [
          "data",
          "hasMore"
        ],
        "additionalProperties": false
      },
      "GroupLead": {
        "type": "object",
        "properties": {
          "object": {
            "type": "string",
            "const": "group_lead"
          },
          "groupId": {
            "type": "string",
            "pattern": "^grp_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
          },
          "personId": {
            "type": "string",
            "pattern": "^ppl_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
          }
        },
        "required": [
          "object",
          "groupId",
          "personId"
        ],
        "additionalProperties": false
      },
      "GroupLeadLastPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GroupLead"
            }
          },
          "hasMore": {
            "type": "boolean",
            "const": false
          }
        },
        "required": [
          "data",
          "hasMore"
        ],
        "additionalProperties": false
      },
      "GroupLeadPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GroupLead"
            }
          },
          "hasMore": {
            "type": "boolean",
            "const": true
          },
          "nextCursor": {
            "type": "string"
          }
        },
        "required": [
          "data",
          "hasMore",
          "nextCursor"
        ],
        "additionalProperties": false
      },
      "GroupMember": {
        "type": "object",
        "properties": {
          "object": {
            "type": "string",
            "const": "group_member"
          },
          "groupId": {
            "type": "string",
            "pattern": "^grp_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
          },
          "personId": {
            "type": "string",
            "pattern": "^ppl_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
          },
          "addedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When they joined this group."
          }
        },
        "required": [
          "object",
          "groupId",
          "personId",
          "addedAt"
        ],
        "additionalProperties": false
      },
      "GroupMemberLastPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GroupMember"
            }
          },
          "hasMore": {
            "type": "boolean",
            "const": false
          }
        },
        "required": [
          "data",
          "hasMore"
        ],
        "additionalProperties": false
      },
      "GroupMemberPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GroupMember"
            }
          },
          "hasMore": {
            "type": "boolean",
            "const": true
          },
          "nextCursor": {
            "type": "string"
          }
        },
        "required": [
          "data",
          "hasMore",
          "nextCursor"
        ],
        "additionalProperties": false
      },
      "GroupPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Group"
            }
          },
          "hasMore": {
            "type": "boolean",
            "const": true
          },
          "nextCursor": {
            "type": "string"
          }
        },
        "required": [
          "data",
          "hasMore",
          "nextCursor"
        ],
        "additionalProperties": false
      },
      "Person": {
        "type": "object",
        "properties": {
          "id": {
            "description": "The person’s ID, ppl_ and a UUID.",
            "type": "string",
            "pattern": "^ppl_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
          },
          "object": {
            "type": "string",
            "const": "person"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When they joined the workspace."
          },
          "updatedAt": {
            "description": "When their account last changed. Left out when never recorded.",
            "type": "string",
            "format": "date-time"
          },
          "email": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "description": "Left out when they have none.",
            "type": "string"
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "learner",
                "lead"
              ]
            },
            "description": "learner: holds the learner role. lead: leads at least one group."
          }
        },
        "required": [
          "id",
          "object",
          "createdAt",
          "email",
          "firstName",
          "roles"
        ],
        "additionalProperties": false
      },
      "PersonLastPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Person"
            }
          },
          "hasMore": {
            "type": "boolean",
            "const": false
          }
        },
        "required": [
          "data",
          "hasMore"
        ],
        "additionalProperties": false
      },
      "PersonPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Person"
            }
          },
          "hasMore": {
            "type": "boolean",
            "const": true
          },
          "nextCursor": {
            "type": "string"
          }
        },
        "required": [
          "data",
          "hasMore",
          "nextCursor"
        ],
        "additionalProperties": false
      },
      "Problem": {
        "type": "object",
        "description": "RFC 9457 problem details, with one extra field, `code`.",
        "required": [
          "type",
          "title",
          "status",
          "detail",
          "instance",
          "code"
        ],
        "properties": {
          "type": {
            "type": "string",
            "format": "uri",
            "description": "A URI for the error code, under https://docs.solidroad.com/api/errors/."
          },
          "title": {
            "type": "string",
            "description": "A short summary of the error code."
          },
          "status": {
            "type": "integer",
            "description": "The HTTP status."
          },
          "detail": {
            "type": "string",
            "description": "What went wrong in this request, and often how to fix it."
          },
          "instance": {
            "type": "string",
            "description": "The ID of this request. Give it to support when you contact us."
          },
          "code": {
            "type": "string",
            "enum": [
              "invalid_request",
              "unauthorized",
              "forbidden",
              "insufficient_scope",
              "api_key_blocked",
              "not_found",
              "method_not_allowed",
              "conflict",
              "rate_limited",
              "internal_error",
              "unavailable"
            ],
            "description": "The error code. It does not change, so read this in your client."
          },
          "errors": {
            "type": "array",
            "description": "Only when one or more parameters are not valid.",
            "items": {
              "type": "object",
              "required": [
                "field",
                "code"
              ],
              "properties": {
                "field": {
                  "type": "string",
                  "description": "The parameter, or `request` when the problem is with the whole request."
                },
                "code": {
                  "type": "string",
                  "description": "Why the field failed, such as `invalid_type` or `too_big`."
                }
              }
            }
          }
        }
      },
      "Scorecard": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^scd_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
          },
          "object": {
            "type": "string",
            "const": "scorecard"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "custom",
              "cefr"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "draft",
              "published"
            ]
          },
          "archived": {
            "type": "boolean",
            "description": "The scorecard was deleted in Solidroad. It stays here because attempts on it still name its versions."
          },
          "currentVersion": {
            "description": "The number of the live version. Left out until the scorecard is published.",
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "currentVersionId": {
            "description": "The ID of the live version. Left out until the scorecard is published.",
            "type": "string",
            "pattern": "^scv_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
          },
          "lastPublishedAt": {
            "type": "string",
            "format": "date-time"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the scorecard last changed. Publishing a version moves it, and so can starting or discarding a draft."
          }
        },
        "required": [
          "id",
          "object",
          "name",
          "type",
          "status",
          "archived",
          "createdAt",
          "updatedAt"
        ],
        "additionalProperties": false
      },
      "ScorecardLastPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Scorecard"
            }
          },
          "hasMore": {
            "type": "boolean",
            "const": false
          }
        },
        "required": [
          "data",
          "hasMore"
        ],
        "additionalProperties": false
      },
      "ScorecardPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Scorecard"
            }
          },
          "hasMore": {
            "type": "boolean",
            "const": true
          },
          "nextCursor": {
            "type": "string"
          }
        },
        "required": [
          "data",
          "hasMore",
          "nextCursor"
        ],
        "additionalProperties": false
      },
      "ScorecardVersion": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^scv_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
          },
          "object": {
            "type": "string",
            "const": "scorecard_version"
          },
          "scorecardId": {
            "type": "string",
            "pattern": "^scd_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
          },
          "version": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "The version number, counting up within the scorecard."
          },
          "publishedAt": {
            "type": "string",
            "format": "date-time"
          },
          "changeNote": {
            "type": "string"
          },
          "sections": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "sectionId": {
                  "description": "The section’s ID, the same across versions and on an attempt’s section scores.",
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "skill",
                    "speech",
                    "process",
                    "failure"
                  ]
                },
                "topScore": {
                  "description": "The most points the section can score. Left out of a failure condition, which scores no points.",
                  "type": "number"
                },
                "weight": {
                  "type": "number"
                },
                "passFail": {
                  "type": "boolean",
                  "description": "The section is scored as pass or fail, not on a range."
                },
                "scoringMode": {
                  "type": "string",
                  "enum": [
                    "ai",
                    "manual"
                  ],
                  "description": "ai when Solidroad scores the section, manual when a person does."
                },
                "folder": {
                  "description": "The name of the folder the section sits in.",
                  "type": "string"
                },
                "position": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991,
                  "description": "The section’s place in the scorecard, from 0."
                }
              },
              "required": [
                "name",
                "type",
                "passFail",
                "scoringMode",
                "position"
              ],
              "additionalProperties": false
            }
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "object",
          "scorecardId",
          "version",
          "publishedAt",
          "sections",
          "createdAt"
        ],
        "additionalProperties": false
      },
      "ScorecardVersionLastPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ScorecardVersion"
            }
          },
          "hasMore": {
            "type": "boolean",
            "const": false
          }
        },
        "required": [
          "data",
          "hasMore"
        ],
        "additionalProperties": false
      },
      "ScorecardVersionPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ScorecardVersion"
            }
          },
          "hasMore": {
            "type": "boolean",
            "const": true
          },
          "nextCursor": {
            "type": "string"
          }
        },
        "required": [
          "data",
          "hasMore",
          "nextCursor"
        ],
        "additionalProperties": false
      },
      "Simulation": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^sim_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
          },
          "object": {
            "type": "string",
            "const": "simulation"
          },
          "kind": {
            "type": "string",
            "enum": [
              "role_play",
              "system"
            ],
            "description": "role_play for a conversation with an AI persona; system for a system simulation."
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "channel": {
            "description": "Role plays only.",
            "type": "string",
            "enum": [
              "phone",
              "email",
              "chat",
              "video"
            ]
          },
          "interactionType": {
            "description": "Role plays only.",
            "type": "string",
            "enum": [
              "roleplay",
              "interview",
              "coaching",
              "walkthrough",
              "knowledge_check",
              "expert_qa"
            ]
          },
          "language": {
            "description": "Role plays only: the language code.",
            "type": "string"
          },
          "difficulty": {
            "description": "Role plays only.",
            "type": "string"
          },
          "personaName": {
            "description": "Role plays only: the name of the AI persona.",
            "type": "string"
          },
          "personaTitle": {
            "description": "Role plays only: the persona’s job title.",
            "type": "string"
          },
          "status": {
            "description": "System simulations only.",
            "type": "string",
            "enum": [
              "draft",
              "published",
              "archived"
            ]
          },
          "appName": {
            "description": "System simulations only: the app the simulation runs in.",
            "type": "string"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "object",
          "kind",
          "name",
          "createdAt",
          "updatedAt"
        ],
        "additionalProperties": false
      },
      "SimulationLastPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Simulation"
            }
          },
          "hasMore": {
            "type": "boolean",
            "const": false
          }
        },
        "required": [
          "data",
          "hasMore"
        ],
        "additionalProperties": false
      },
      "SimulationPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Simulation"
            }
          },
          "hasMore": {
            "type": "boolean",
            "const": true
          },
          "nextCursor": {
            "type": "string"
          }
        },
        "required": [
          "data",
          "hasMore",
          "nextCursor"
        ],
        "additionalProperties": false
      },
      "SimulationVersion": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^smv_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
          },
          "object": {
            "type": "string",
            "const": "simulation_version"
          },
          "simulationId": {
            "type": "string",
            "pattern": "^sim_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
          },
          "version": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "The version number, counting up from 1 within the simulation. An attempt names the version it ran on."
          },
          "cause": {
            "type": "string",
            "enum": [
              "first_version",
              "simulation_edited",
              "persona_edited",
              "scorecard_published",
              "restored",
              "edited_elsewhere"
            ],
            "description": "What made the version: first_version for the first one recorded, simulation_edited for an edit to the simulation, persona_edited for an edit to the persona it uses, scorecard_published for a new version of its scorecard, restored for an earlier version brought back, and edited_elsewhere for a change made outside the simulation editor."
          },
          "changedParts": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "prompt",
                "persona",
                "settings",
                "system_simulations",
                "simulation_apps",
                "scoring"
              ]
            },
            "description": "What differs from the version before: prompt, persona, settings, system_simulations, simulation_apps or scoring. Empty on the first version."
          },
          "restoredFromId": {
            "description": "The version this one brought back. Only on a restored version.",
            "type": "string",
            "pattern": "^smv_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "object",
          "simulationId",
          "version",
          "cause",
          "changedParts",
          "createdAt"
        ],
        "additionalProperties": false
      },
      "SimulationVersionLastPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SimulationVersion"
            }
          },
          "hasMore": {
            "type": "boolean",
            "const": false
          }
        },
        "required": [
          "data",
          "hasMore"
        ],
        "additionalProperties": false
      },
      "SimulationVersionPage": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SimulationVersion"
            }
          },
          "hasMore": {
            "type": "boolean",
            "const": true
          },
          "nextCursor": {
            "type": "string"
          }
        },
        "required": [
          "data",
          "hasMore",
          "nextCursor"
        ],
        "additionalProperties": false
      }
    }
  }
}
