{
  "components": {
    "schemas": {
      "AssistantEnablementDto": {
        "description": "Whether the caller has enabled the assistant: a hosted agent of theirs, and a\ndelegation in force for it.",
        "example": {
          "enabled": true,
          "agentId": "019cadc6-9a80-76ce-a468-4c4f0fd784b4",
          "delegationId": "019cadc6-9a80-7fed-bccd-fd9c96a18897",
          "expiresAt": "2026-04-01T09:00:00\u002B00:00",
          "_links": {
            "self": "/v1/assistant",
            "conversations": "/v1/conversations"
          }
        },
        "properties": {
          "_links": {
            "additionalProperties": {
              "format": "uri-reference",
              "type": "string"
            },
            "description": "Hypermedia links: a map from an operation name to the URI that performs it, listing only the operations the caller may perform on this resource now \u2014 the set varies with the token\u0027s permissions and the resource\u0027s state. Follow these rather than building URIs.",
            "type": "object"
          },
          "agentId": {
            "description": "The caller\u0027s hosted agent, once there is one.",
            "format": "uuid",
            "type": [
              "null",
              "string"
            ]
          },
          "delegationId": {
            "description": "The delegation in force for it, if one is.",
            "format": "uuid",
            "type": [
              "null",
              "string"
            ]
          },
          "enabled": {
            "description": "True when both exist and the delegation has not expired.",
            "type": "boolean"
          },
          "expiresAt": {
            "description": "When that delegation expires; enable again after it does.",
            "format": "date-time",
            "type": [
              "null",
              "string"
            ]
          }
        },
        "required": [
          "enabled",
          "agentId",
          "delegationId",
          "expiresAt",
          "_links"
        ],
        "type": "object"
      },
      "AssistantErasureDto": {
        "description": "What an erasure removed: how many of the user\u0027s conversations, each with\neverything under it. A repeat finds none and answers 0.",
        "example": {
          "conversationsDeleted": 3
        },
        "properties": {
          "conversationsDeleted": {
            "description": "The number of the user\u0027s conversations deleted by this request.",
            "format": "int32",
            "type": "integer"
          }
        },
        "required": [
          "conversationsDeleted"
        ],
        "type": "object"
      },
      "ConversationDto": {
        "description": "One of the author\u0027s conversations: the course it drafts (once it has one),\nits title (the brief\u0027s topic) and its most recent run.",
        "example": {
          "id": "019cadcb-2e60-7aca-a056-7ef80dedf5cb",
          "courseId": null,
          "title": "Fire safety awareness in 30 minutes",
          "lastActivityAt": "2026-03-02T09:11:00\u002B00:00",
          "createdAt": "2026-03-02T09:05:00\u002B00:00",
          "currentRun": {
            "id": "019cadcd-ed80-7000-b5d8-c8503fa207b1",
            "conversationId": "019cadcb-2e60-7aca-a056-7ef80dedf5cb",
            "kind": "build",
            "phase": "outline",
            "state": "awaiting_author",
            "failureCode": null,
            "plannedSteps": null,
            "doneSteps": 0,
            "createdAt": "2026-03-02T09:08:00\u002B00:00",
            "updatedAt": "2026-03-02T09:11:00\u002B00:00",
            "finishedAt": null,
            "continuesRunId": null
          },
          "kind": "course_draft",
          "_links": {
            "self": "/v1/conversations/019cadcb-2e60-7aca-a056-7ef80dedf5cb",
            "list": "/v1/conversations",
            "turns": "/v1/conversations/019cadcb-2e60-7aca-a056-7ef80dedf5cb/turns",
            "events": "/v1/conversations/019cadcb-2e60-7aca-a056-7ef80dedf5cb/events",
            "delete": "/v1/conversations/019cadcb-2e60-7aca-a056-7ef80dedf5cb",
            "cancel": "/v1/conversations/019cadcb-2e60-7aca-a056-7ef80dedf5cb/runs/019cadcd-ed80-7000-b5d8-c8503fa207b1:cancel"
          }
        },
        "properties": {
          "_links": {
            "additionalProperties": {
              "format": "uri-reference",
              "type": "string"
            },
            "description": "Hypermedia links: a map from an operation name to the URI that performs it, listing only the operations the caller may perform on this resource now \u2014 the set varies with the token\u0027s permissions and the resource\u0027s state. Follow these rather than building URIs.",
            "type": "object"
          },
          "courseId": {
            "description": "The course the conversation drafts, once it has one: given when the conversation was opened from a course, or set when its build creates one.",
            "format": "uuid",
            "type": [
              "null",
              "string"
            ]
          },
          "createdAt": {
            "description": "When the conversation was started.",
            "format": "date-time",
            "type": "string"
          },
          "currentRun": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/RunDto",
                "description": "The conversation\u0027s most recent run, in whatever state, or null before the first."
              }
            ]
          },
          "id": {
            "description": "The conversation\u0027s id.",
            "format": "uuid",
            "type": "string"
          },
          "kind": {
            "description": "What the conversation is for: \u0060course_draft\u0060, drafting or revising a course with the assistant, or \u0060skills_suggest\u0060, a skills identification for its course, which takes no message and is not in the conversation list.",
            "type": "string"
          },
          "lastActivityAt": {
            "description": "When the author or the assistant last added to the conversation. It is deleted 90 days after this.",
            "format": "date-time",
            "type": "string"
          },
          "title": {
            "description": "The brief\u0027s topic, once the author has one; the author\u0027s own words.",
            "type": [
              "null",
              "string"
            ]
          }
        },
        "required": [
          "id",
          "courseId",
          "title",
          "lastActivityAt",
          "createdAt",
          "currentRun",
          "kind",
          "_links"
        ],
        "type": "object"
      },
      "CreateConversationCommand": {
        "description": "The body of \u0060POST /v1/conversations\u0060: starts a conversation with the\nassistant, optionally about an existing course. Requires \u0060content:write\u0060\nand the tenant\u0027s \u0060authoring_assistant\u0060 entitlement.\nThe conversation is the caller\u0027s own; nobody else can read it.",
        "example": {
          "courseId": null
        },
        "properties": {
          "courseId": {
            "description": "The course the conversation is about, when it is opened from one. Without it, the conversation\u0027s build creates a course.",
            "format": "uuid",
            "type": [
              "null",
              "string"
            ]
          }
        },
        "type": "object"
      },
      "CursorPageInfo": {
        "description": "Where a page sits in its list. \u0060limit\u0060 is the page size that was applied. While\n\u0060hasMore\u0060 is true, pass \u0060nextCursor\u0060 as \u0060after\u0060 to get the next page; on\nthe last page \u0060hasMore\u0060 is false and \u0060nextCursor\u0060 is null. \u0060totalCount\u0060\nis the number of items in the whole list when the request asked for it with\n\u0060includeCount=true\u0060, and null otherwise.",
        "example": {
          "limit": 25,
          "hasMore": true,
          "nextCursor": "MDE5Y2FkYzYtOWE4MC03ZGFmLWE3MDYtZGQyZjRkMTk3ZTZm",
          "totalCount": null
        },
        "properties": {
          "hasMore": {
            "type": "boolean"
          },
          "limit": {
            "format": "int32",
            "type": "integer"
          },
          "nextCursor": {
            "type": [
              "null",
              "string"
            ]
          },
          "totalCount": {
            "format": "int32",
            "type": [
              "null",
              "integer"
            ]
          }
        },
        "required": [
          "limit",
          "hasMore",
          "nextCursor"
        ],
        "type": "object"
      },
      "CursorPageOfConversationDto": {
        "description": "One page of a list. \u0060data\u0060 holds the items in order, \u0060pagination\u0060 says whether\nmore follow and how to ask for them, and \u0060_links\u0060 lists what the caller may do with\nthe collection.",
        "example": {
          "data": [
            {
              "id": "019cadcb-2e60-7aca-a056-7ef80dedf5cb",
              "courseId": null,
              "title": "Fire safety awareness in 30 minutes",
              "lastActivityAt": "2026-03-02T09:11:00\u002B00:00",
              "createdAt": "2026-03-02T09:05:00\u002B00:00",
              "currentRun": {
                "id": "019cadcd-ed80-7000-b5d8-c8503fa207b1",
                "conversationId": "019cadcb-2e60-7aca-a056-7ef80dedf5cb",
                "kind": "build",
                "phase": "outline",
                "state": "awaiting_author",
                "failureCode": null,
                "plannedSteps": null,
                "doneSteps": 0,
                "createdAt": "2026-03-02T09:08:00\u002B00:00",
                "updatedAt": "2026-03-02T09:11:00\u002B00:00",
                "finishedAt": null,
                "continuesRunId": null
              },
              "kind": "course_draft",
              "_links": {
                "self": "/v1/conversations/019cadcb-2e60-7aca-a056-7ef80dedf5cb",
                "list": "/v1/conversations",
                "turns": "/v1/conversations/019cadcb-2e60-7aca-a056-7ef80dedf5cb/turns",
                "events": "/v1/conversations/019cadcb-2e60-7aca-a056-7ef80dedf5cb/events",
                "delete": "/v1/conversations/019cadcb-2e60-7aca-a056-7ef80dedf5cb",
                "cancel": "/v1/conversations/019cadcb-2e60-7aca-a056-7ef80dedf5cb/runs/019cadcd-ed80-7000-b5d8-c8503fa207b1:cancel"
              }
            }
          ],
          "pagination": {
            "limit": 25,
            "hasMore": true,
            "nextCursor": "MDE5Y2FkY2ItMmU2MC03YWNhLWEwNTYtN2VmODBkZWRmNWNi",
            "totalCount": null
          },
          "_links": {
            "self": "/v1/conversations",
            "create": "/v1/conversations"
          }
        },
        "properties": {
          "_links": {
            "additionalProperties": {
              "format": "uri-reference",
              "type": "string"
            },
            "description": "Hypermedia links: a map from an operation name to the URI that performs it, listing only the operations the caller may perform on this resource now \u2014 the set varies with the token\u0027s permissions and the resource\u0027s state. Follow these rather than building URIs.",
            "type": "object"
          },
          "data": {
            "items": {
              "$ref": "#/components/schemas/ConversationDto"
            },
            "type": "array"
          },
          "pagination": {
            "$ref": "#/components/schemas/CursorPageInfo"
          }
        },
        "required": [
          "data",
          "pagination",
          "_links"
        ],
        "type": "object"
      },
      "CursorPageOfEventDto": {
        "description": "One page of a list. \u0060data\u0060 holds the items in order, \u0060pagination\u0060 says whether\nmore follow and how to ask for them, and \u0060_links\u0060 lists what the caller may do with\nthe collection.",
        "example": {
          "data": [
            {
              "seq": 8,
              "type": "source.found",
              "runId": "019cadcd-ed80-7000-b5d8-c8503fa207b1",
              "body": {
                "sourceId": "018f0000-0000-7000-8000-000000000001",
                "url": "https://example.org/fire-safety",
                "title": "Fire safety guidance",
                "supplied": true
              },
              "createdAt": "2026-03-02T09:11:00\u002B00:00"
            },
            {
              "seq": 9,
              "type": "source.unavailable",
              "runId": "019cadcd-ed80-7000-b5d8-c8503fa207b1",
              "body": {
                "sourceId": "018f0000-0000-7000-8000-000000000002",
                "url": "https://example.org/missing",
                "reason": "url_not_accessible"
              },
              "createdAt": "2026-03-02T09:11:00\u002B00:00"
            },
            {
              "seq": 10,
              "type": "build.checked",
              "runId": "019cadcd-ed80-7000-b5d8-c8503fa207b1",
              "body": {
                "runId": "019cadcd-ed80-7000-b5d8-c8503fa207b1",
                "outlineTurnNumber": 4,
                "pagePublications": [
                  {
                    "subject": {
                      "kind": "lesson",
                      "lessonVersionId": "019cadd8-ea00-709d-91ff-a96fc4c62cce"
                    },
                    "pageState": "live",
                    "hasDraft": false
                  }
                ],
                "lessons": [
                  {
                    "item": "m1.l1",
                    "lesson": "saved",
                    "page": "saved",
                    "quiz": "saved",
                    "lessonId": "019cadd8-ea00-709d-91ff-a96fc4c62cce",
                    "quizId": "019cadd8-ea00-7f03-b768-4def5c5a04ab",
                    "questions": 3,
                    "questionsSaved": 3,
                    "code": null,
                    "sourceIds": [
                      "018f0000-0000-7000-8000-000000000001"
                    ]
                  },
                  {
                    "item": "m1.l2",
                    "lesson": "saved",
                    "page": "not_written",
                    "quiz": "none",
                    "lessonId": "019cadd8-ea00-7aff-80ae-c5607512fa54",
                    "quizId": null,
                    "questions": 0,
                    "questionsSaved": 0,
                    "code": null,
                    "sourceIds": []
                  }
                ]
              },
              "createdAt": "2026-03-02T09:20:00\u002B00:00"
            },
            {
              "seq": 11,
              "type": "revision.checked",
              "runId": "019cadeb-3980-763e-b159-bafcd7d6aae4",
              "body": {
                "runId": "019cadeb-3980-763e-b159-bafcd7d6aae4",
                "planTurnNumber": 12,
                "pagePublications": [
                  {
                    "subject": {
                      "kind": "lesson",
                      "lessonVersionId": "019cadd8-ea00-709d-91ff-a96fc4c62cce"
                    },
                    "pageState": "draft",
                    "hasDraft": true
                  }
                ],
                "changes": [
                  {
                    "n": 1,
                    "kind": "block.update",
                    "state": "applied",
                    "code": null,
                    "targetId": "019cadd8-ea00-7005-8ed5-e97795646137",
                    "items": [
                      {
                        "key": "c1",
                        "state": "committed"
                      }
                    ],
                    "placedAtEnd": false
                  },
                  {
                    "n": 2,
                    "kind": "lesson.update",
                    "state": "conflicted",
                    "code": "assistant.changed_since_proposed",
                    "targetId": "019cadd8-ea00-7aff-80ae-c5607512fa54",
                    "items": [
                      {
                        "key": "c2",
                        "state": "not_sent"
                      }
                    ],
                    "placedAtEnd": false
                  }
                ]
              },
              "createdAt": "2026-03-02T09:40:00\u002B00:00"
            }
          ],
          "pagination": {
            "limit": 50,
            "hasMore": false,
            "nextCursor": null,
            "totalCount": null
          },
          "_links": {
            "self": "/v1/conversations/019cadcb-2e60-7aca-a056-7ef80dedf5cb/events",
            "conversation": "/v1/conversations/019cadcb-2e60-7aca-a056-7ef80dedf5cb",
            "turns": "/v1/conversations/019cadcb-2e60-7aca-a056-7ef80dedf5cb/turns"
          }
        },
        "properties": {
          "_links": {
            "additionalProperties": {
              "format": "uri-reference",
              "type": "string"
            },
            "description": "Hypermedia links: a map from an operation name to the URI that performs it, listing only the operations the caller may perform on this resource now \u2014 the set varies with the token\u0027s permissions and the resource\u0027s state. Follow these rather than building URIs.",
            "type": "object"
          },
          "data": {
            "items": {
              "$ref": "#/components/schemas/EventDto"
            },
            "type": "array"
          },
          "pagination": {
            "$ref": "#/components/schemas/CursorPageInfo"
          }
        },
        "required": [
          "data",
          "pagination",
          "_links"
        ],
        "type": "object"
      },
      "CursorPageOfTurnDto": {
        "description": "One page of a list. \u0060data\u0060 holds the items in order, \u0060pagination\u0060 says whether\nmore follow and how to ask for them, and \u0060_links\u0060 lists what the caller may do with\nthe collection.",
        "example": {
          "data": [
            {
              "id": "019cadcc-18c0-7636-8442-e4266c0ac966",
              "number": 2,
              "author": "assistant",
              "text": "Here is a brief for your course. Confirm it and I will start the research.",
              "action": null,
              "payloadKind": "brief",
              "payload": {
                "topic": "Fire safety awareness",
                "audience": "Office staff",
                "objectives": [
                  "Leave the building safely when the alarm sounds",
                  "Report a fire hazard"
                ],
                "scope": "What to do when the alarm sounds, and how to report a hazard. Fighting a fire is out.",
                "size": "30 minutes, one module",
                "tone": "Plain and practical",
                "assumptions": [
                  "Staff work in one building"
                ],
                "sources": [
                  "https://example.org/fire-safety"
                ],
                "sites": [
                  "example.org"
                ],
                "sourcesOnly": false
              },
              "runId": "019cadcb-2e60-735a-bad6-e24671254235",
              "createdAt": "2026-03-02T09:06:00\u002B00:00",
              "planTurnNumber": null
            }
          ],
          "pagination": {
            "limit": 25,
            "hasMore": true,
            "nextCursor": "2",
            "totalCount": null
          },
          "_links": {
            "self": "/v1/conversations/019cadcb-2e60-7aca-a056-7ef80dedf5cb/turns",
            "conversation": "/v1/conversations/019cadcb-2e60-7aca-a056-7ef80dedf5cb"
          }
        },
        "properties": {
          "_links": {
            "additionalProperties": {
              "format": "uri-reference",
              "type": "string"
            },
            "description": "Hypermedia links: a map from an operation name to the URI that performs it, listing only the operations the caller may perform on this resource now \u2014 the set varies with the token\u0027s permissions and the resource\u0027s state. Follow these rather than building URIs.",
            "type": "object"
          },
          "data": {
            "items": {
              "$ref": "#/components/schemas/TurnDto"
            },
            "type": "array"
          },
          "pagination": {
            "$ref": "#/components/schemas/CursorPageInfo"
          }
        },
        "required": [
          "data",
          "pagination",
          "_links"
        ],
        "type": "object"
      },
      "EventDto": {
        "description": "One entry in a conversation\u0027s event log: what happened, in order. Bodies hold\nids, counts and states; the text is in the turns.",
        "example": {
          "seq": 7,
          "type": "run.state",
          "runId": "019cadcd-ed80-7000-b5d8-c8503fa207b1",
          "body": {
            "runId": "019cadcd-ed80-7000-b5d8-c8503fa207b1",
            "kind": "build",
            "phase": "outline",
            "state": "awaiting_author",
            "failureCode": null,
            "continuesRunId": null
          },
          "createdAt": "2026-03-02T09:11:00\u002B00:00"
        },
        "properties": {
          "body": {
            "$ref": "#/components/schemas/JsonElement",
            "description": "The event\u0027s details."
          },
          "createdAt": {
            "description": "When the event was logged.",
            "format": "date-time",
            "type": "string"
          },
          "runId": {
            "description": "The run the event is about, if it is about one.",
            "format": "uuid",
            "type": [
              "null",
              "string"
            ]
          },
          "seq": {
            "description": "The event\u0027s place in the conversation\u0027s log, from 1. Ask for \u0060after=\u0060 the last one read.",
            "format": "int64",
            "type": "integer"
          },
          "type": {
            "description": "\u0060turn.appended\u0060, \u0060run.state\u0060 (runId, kind, phase, state, failureCode, and continuesRunId for a run that carries on from a stopped one), \u0060run.progress\u0060, \u0060run.resumed\u0060 (runId, phase), \u0060tool.receipt\u0060 (toolCallId, tool, stepKey, state, targetId, placementId \u2014 the placement a lesson, quiz or question create made beside it in its parent, or null \u2014 correlationId, item \u2014 the outline item a build\u0027s own write was for, such as m2.l1.page, or the plan item an apply\u0027s was for, such as c2.rm1, or null for the assistant\u0027s other changes \u2014 and reconciled when a later check wrote it), \u0060source.found\u0060 (sourceId, url, title, supplied), \u0060source.unavailable\u0060 (sourceId, url, reason), \u0060assistant.text\u0060, or \u0060build.checked\u0060 (runId, outlineTurnNumber, and lessons: for each lesson of the approved outline its item, lesson, page and quiz states, lessonId, lessonPlacementId, quizId, quizRequired \u2014 whether its quiz ended required, or null with no quiz in it \u2014 questions, questionsSaved, the code of the first part not saved, and sourceIds \u2014 the sources its text cites, by the ids source.found gave them), or \u0060revision.checked\u0060 (runId, planTurnNumber, and changes: for each change of the approved plan its n, kind, state \u2014 applied, conflicted, partial, refused, not_known, skipped or not_attempted \u2014 the code saying why when it was not applied, targetId, items with each one\u0027s key and state, and placedAtEnd). An apply\u0027s tool.receipt names its item, such as c2.add. Both checked events may carry \u0060pagePublications\u0060: the page subject descriptor, \u0060pageState\u0060 and \u0060hasDraft\u0060 from successful completion-check reads. Missing observations make no publication claim. Optional \u0060pagePublicationsOmitted\u0060 counts page observations left out to keep the event within its size limit; outcomes and refusal codes are retained. Empty source lists, null codes and a null quizRequired may be omitted.",
            "type": "string"
          }
        },
        "required": [
          "seq",
          "type",
          "runId",
          "body",
          "createdAt"
        ],
        "type": "object"
      },
      "HttpValidationProblemDetails": {
        "example": {
          "type": "https://errors.serenapp.io/validation.failed",
          "title": "One or more validation errors occurred.",
          "status": 422,
          "errors": {
            "limit": [
              "\u0027Limit\u0027 must be between 1 and 100. You entered 500."
            ]
          },
          "code": "validation.failed",
          "correlationId": "4bf92f3577b34da6a3ce929d0e0e4736"
        },
        "properties": {
          "code": {
            "description": "Stable, machine-readable error code (area.reason, e.g. question.not_found). Branch on this \u2014 not on status or type. Framework status responses carry an http.* code.",
            "type": "string"
          },
          "correlationId": {
            "description": "Request correlation id, also echoed on the X-Correlation-Id response header and in logs.",
            "type": "string"
          },
          "detail": {
            "type": [
              "null",
              "string"
            ]
          },
          "errors": {
            "additionalProperties": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "type": "object"
          },
          "fields": {
            "description": "Submitted members the caller may not set; present on a field-denial 403.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "instance": {
            "type": [
              "null",
              "string"
            ]
          },
          "referencing": {
            "description": "Entities holding this resource in use, or holding its existing lesson placement; present on the corresponding 409 conflicts, except where listing them would show what the caller may not read (the LTI registration delete).",
            "items": {
              "properties": {
                "entityType": {
                  "type": "string"
                },
                "id": {
                  "format": "uuid",
                  "type": "string"
                }
              },
              "type": "object"
            },
            "type": "array"
          },
          "status": {
            "format": "int32",
            "type": [
              "null",
              "integer"
            ]
          },
          "title": {
            "type": [
              "null",
              "string"
            ]
          },
          "type": {
            "type": [
              "null",
              "string"
            ]
          },
          "unmet": {
            "description": "Unmet prerequisites blocking a completion; present on a prerequisite 409.",
            "items": {
              "properties": {
                "entityType": {
                  "type": "string"
                },
                "id": {
                  "format": "uuid",
                  "type": "string"
                }
              },
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "code",
          "correlationId"
        ],
        "type": "object"
      },
      "JsonElement": {},
      "ProblemDetails": {
        "properties": {
          "code": {
            "description": "Stable, machine-readable error code (area.reason, e.g. question.not_found). Branch on this \u2014 not on status or type. Framework status responses carry an http.* code.",
            "type": "string"
          },
          "correlationId": {
            "description": "Request correlation id, also echoed on the X-Correlation-Id response header and in logs.",
            "type": "string"
          },
          "detail": {
            "type": [
              "null",
              "string"
            ]
          },
          "fields": {
            "description": "Submitted members the caller may not set; present on a field-denial 403.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "instance": {
            "type": [
              "null",
              "string"
            ]
          },
          "referencing": {
            "description": "Entities holding this resource in use, or holding its existing lesson placement; present on the corresponding 409 conflicts, except where listing them would show what the caller may not read (the LTI registration delete).",
            "items": {
              "properties": {
                "entityType": {
                  "type": "string"
                },
                "id": {
                  "format": "uuid",
                  "type": "string"
                }
              },
              "type": "object"
            },
            "type": "array"
          },
          "status": {
            "format": "int32",
            "type": [
              "null",
              "integer"
            ]
          },
          "title": {
            "type": [
              "null",
              "string"
            ]
          },
          "type": {
            "type": [
              "null",
              "string"
            ]
          },
          "unmet": {
            "description": "Unmet prerequisites blocking a completion; present on a prerequisite 409.",
            "items": {
              "properties": {
                "entityType": {
                  "type": "string"
                },
                "id": {
                  "format": "uuid",
                  "type": "string"
                }
              },
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "code",
          "correlationId"
        ],
        "type": "object"
      },
      "RunDto": {
        "description": "One run: what it is for, where it is, and how far it has got. It carries no\ntext; what the assistant said is in the conversation\u0027s turns.",
        "example": {
          "id": "019cadcd-ed80-7000-b5d8-c8503fa207b1",
          "conversationId": "019cadcb-2e60-7aca-a056-7ef80dedf5cb",
          "kind": "build",
          "phase": "outline",
          "state": "awaiting_author",
          "failureCode": null,
          "plannedSteps": null,
          "doneSteps": 0,
          "createdAt": "2026-03-02T09:08:00\u002B00:00",
          "updatedAt": "2026-03-02T09:11:00\u002B00:00",
          "finishedAt": null,
          "continuesRunId": null
        },
        "properties": {
          "continuesRunId": {
            "description": "The run this one carries on from, when the author retried a build or revision that had failed or been cancelled; null for any other run.",
            "format": "uuid",
            "type": [
              "null",
              "string"
            ]
          },
          "conversationId": {
            "description": "The conversation the run belongs to.",
            "format": "uuid",
            "type": "string"
          },
          "createdAt": {
            "description": "When the run was queued.",
            "format": "date-time",
            "type": "string"
          },
          "doneSteps": {
            "description": "How many of them are done.",
            "format": "int32",
            "type": "integer"
          },
          "failureCode": {
            "description": "Why it failed, when \u0060state\u0060 is \u0060failed\u0060: \u0060authority_refused\u0060, \u0060budget_exhausted\u0060, \u0060provider_refused\u0060, \u0060provider_error\u0060, \u0060tool_error\u0060, \u0060timeout\u0060 or \u0060unavailable\u0060.",
            "type": [
              "null",
              "string"
            ]
          },
          "finishedAt": {
            "description": "When it ended, if it has.",
            "format": "date-time",
            "type": [
              "null",
              "string"
            ]
          },
          "id": {
            "description": "The run\u0027s id.",
            "format": "uuid",
            "type": "string"
          },
          "kind": {
            "description": "What the run is for: \u0060brief\u0060, \u0060build\u0060, \u0060revision\u0060 or \u0060suggest\u0060 (a skills identification).",
            "type": "string"
          },
          "phase": {
            "description": "The phase it is in or ended in: \u0060brief\u0060, \u0060research\u0060, \u0060outline\u0060, \u0060lessons\u0060, \u0060draft\u0060, \u0060review\u0060, \u0060revision\u0060, \u0060apply\u0060 or \u0060suggest\u0060.",
            "type": "string"
          },
          "plannedSteps": {
            "description": "How many draft steps the approved outline plans, once there is one.",
            "format": "int32",
            "type": [
              "null",
              "integer"
            ]
          },
          "state": {
            "description": "\u0060queued\u0060, \u0060running\u0060, \u0060awaiting_author\u0060, \u0060completed\u0060, \u0060failed\u0060 or \u0060cancelled\u0060.",
            "type": "string"
          },
          "updatedAt": {
            "description": "When its state last changed.",
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "id",
          "conversationId",
          "kind",
          "phase",
          "state",
          "failureCode",
          "plannedSteps",
          "doneSteps",
          "createdAt",
          "updatedAt",
          "finishedAt",
          "continuesRunId"
        ],
        "type": "object"
      },
      "SkillTargetDto": {
        "description": "Something a proposed skill would be tagged on.",
        "example": {
          "kind": "course",
          "id": "019cadd0-aca0-7fca-97e7-57f16cfb68cf"
        },
        "properties": {
          "id": {
            "description": "The course version\u0027s id, or the activity version\u0027s id.",
            "format": "uuid",
            "type": "string"
          },
          "kind": {
            "description": "\u0060course\u0060 or \u0060activity\u0060.",
            "type": "string"
          }
        },
        "required": [
          "kind",
          "id"
        ],
        "type": "object"
      },
      "SkillsCoverageDto": {
        "description": "What the run read, and what it left out and why. Lessons are counted three\nways that add up to \u0060lessons\u0060; \u0060partial\u0060 is true whenever a lesson,\nan activity or a question was left out, failed to read, or was clipped. A\nshortlist smaller than the catalogue does not make it partial: only the best\nword matches are ever offered.",
        "example": {
          "partial": false,
          "lessons": 2,
          "lessonsRead": 2,
          "lessonsTitleOnly": 0,
          "lessonsNotRead": 0,
          "readingClipped": false,
          "activities": 1,
          "activitiesOffered": 1,
          "activitiesTitleOnly": 0,
          "activitiesClipped": 0,
          "questionsRead": 3,
          "questionsFailed": 0,
          "questionsNotRead": 0,
          "skillsInCatalogue": 412,
          "skillsOffered": 100
        },
        "properties": {
          "activities": {
            "description": "The activities in the course\u0027s outline.",
            "format": "int32",
            "type": "integer"
          },
          "activitiesClipped": {
            "description": "Activities shown whose text was cut.",
            "format": "int32",
            "type": "integer"
          },
          "activitiesOffered": {
            "description": "Activities shown to the assistant, which a skill may name.",
            "format": "int32",
            "type": "integer"
          },
          "activitiesTitleOnly": {
            "description": "Activities shown, for which no read gave text; the title stood in.",
            "format": "int32",
            "type": "integer"
          },
          "lessons": {
            "description": "The lessons in the course\u0027s outline.",
            "format": "int32",
            "type": "integer"
          },
          "lessonsNotRead": {
            "description": "Lessons past the most the run reads; the outline\u0027s title stood in.",
            "format": "int32",
            "type": "integer"
          },
          "lessonsRead": {
            "description": "Lessons whose page was read and gave text.",
            "format": "int32",
            "type": "integer"
          },
          "lessonsTitleOnly": {
            "description": "Lessons whose page could not be read or held no text; the title stood in.",
            "format": "int32",
            "type": "integer"
          },
          "partial": {
            "description": "True when anything the course holds was left out, could not be read, or was clipped.",
            "type": "boolean"
          },
          "questionsFailed": {
            "description": "Questions that could not be read.",
            "format": "int32",
            "type": "integer"
          },
          "questionsNotRead": {
            "description": "Questions past the most the run reads, for one activity or in all.",
            "format": "int32",
            "type": "integer"
          },
          "questionsRead": {
            "description": "Questions read for the activities shown.",
            "format": "int32",
            "type": "integer"
          },
          "readingClipped": {
            "description": "True when the course\u0027s reading was longer than the run hands on, and was cut.",
            "type": "boolean"
          },
          "skillsInCatalogue": {
            "description": "The skills in the tenant\u0027s catalogue, switched on or off.",
            "format": "int32",
            "type": "integer"
          },
          "skillsOffered": {
            "description": "The skills shown to the assistant: the best word matches.",
            "format": "int32",
            "type": "integer"
          }
        },
        "required": [
          "partial",
          "lessons",
          "lessonsRead",
          "lessonsTitleOnly",
          "lessonsNotRead",
          "readingClipped",
          "activities",
          "activitiesOffered",
          "activitiesTitleOnly",
          "activitiesClipped",
          "questionsRead",
          "questionsFailed",
          "questionsNotRead",
          "skillsInCatalogue",
          "skillsOffered"
        ],
        "type": "object"
      },
      "SkillsIdentificationDto": {
        "description": "One of the caller\u0027s own skills identifications: where its run is, and once it\nhas completed, the proposal it made for the author to review.",
        "example": {
          "identificationId": "019cadf4-6140-7207-a894-cbac52abf6e5",
          "conversationId": "019cadf4-6140-7207-a894-cbac52abf6e5",
          "runId": "019cadf4-6140-7363-9d71-3761adfd2070",
          "courseId": "019cadd0-aca0-7fca-97e7-57f16cfb68cf",
          "state": "completed",
          "proposal": {
            "skills": [
              {
                "skillId": "019cadc6-9a80-7032-9077-253e2e304e03",
                "sourceId": "SAF.FIRE.01",
                "name": "Fire evacuation",
                "groupPath": [
                  "Safety",
                  "Fire"
                ],
                "enabled": true,
                "confidence": "strong",
                "reason": "Every lesson walks through leaving the building by the nearest exit, and the quiz asks where to go.",
                "targets": [
                  {
                    "kind": "course",
                    "id": "019cadd0-aca0-7fca-97e7-57f16cfb68cf"
                  },
                  {
                    "kind": "activity",
                    "id": "019cadd8-ea00-7f03-b768-4def5c5a04ab"
                  }
                ]
              },
              {
                "skillId": "019cadc6-9a80-7a44-8e41-b126400c4e72",
                "sourceId": null,
                "name": "Hazard reporting",
                "groupPath": [
                  "Safety"
                ],
                "enabled": false,
                "confidence": "brief",
                "reason": "The second lesson says who to tell about a blocked fire door.",
                "targets": [
                  {
                    "kind": "course",
                    "id": "019cadd0-aca0-7fca-97e7-57f16cfb68cf"
                  }
                ]
              }
            ],
            "coverage": {
              "partial": false,
              "lessons": 2,
              "lessonsRead": 2,
              "lessonsTitleOnly": 0,
              "lessonsNotRead": 0,
              "readingClipped": false,
              "activities": 1,
              "activitiesOffered": 1,
              "activitiesTitleOnly": 0,
              "activitiesClipped": 0,
              "questionsRead": 3,
              "questionsFailed": 0,
              "questionsNotRead": 0,
              "skillsInCatalogue": 412,
              "skillsOffered": 100
            }
          },
          "failure": null,
          "_links": {
            "self": "/v1/skills/identifications/019cadf4-6140-7207-a894-cbac52abf6e5",
            "conversation": "/v1/conversations/019cadf4-6140-7207-a894-cbac52abf6e5"
          }
        },
        "properties": {
          "_links": {
            "additionalProperties": {
              "format": "uri-reference",
              "type": "string"
            },
            "description": "Hypermedia links: a map from an operation name to the URI that performs it, listing only the operations the caller may perform on this resource now \u2014 the set varies with the token\u0027s permissions and the resource\u0027s state. Follow these rather than building URIs.",
            "type": "object"
          },
          "conversationId": {
            "description": "Its conversation.",
            "format": "uuid",
            "type": "string"
          },
          "courseId": {
            "description": "The course whose skills were identified: the course version the identification was started for.",
            "format": "uuid",
            "type": "string"
          },
          "failure": {
            "description": "Why the run failed, present only when \u0060state\u0060 is \u0060failed\u0060: \u0060authority_refused\u0060, \u0060budget_exhausted\u0060, \u0060provider_refused\u0060, \u0060provider_error\u0060 (the model could not give a usable answer), \u0060tool_error\u0060 (the course or the catalogue could not be read), \u0060timeout\u0060 or \u0060unavailable\u0060.",
            "type": [
              "null",
              "string"
            ]
          },
          "identificationId": {
            "description": "The identification\u0027s id: the id of its conversation.",
            "format": "uuid",
            "type": "string"
          },
          "proposal": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/SkillsProposalDto",
                "description": "The skills the assistant proposes, present only once \u0060state\u0060 is \u0060completed\u0060."
              }
            ]
          },
          "runId": {
            "description": "Its run.",
            "format": "uuid",
            "type": "string"
          },
          "state": {
            "description": "Where the run is: \u0060queued\u0060, \u0060running\u0060, \u0060completed\u0060, \u0060failed\u0060 or \u0060cancelled\u0060.",
            "type": "string"
          }
        },
        "required": [
          "identificationId",
          "conversationId",
          "runId",
          "courseId",
          "state",
          "proposal",
          "failure",
          "_links"
        ],
        "type": "object"
      },
      "SkillsIdentificationStartedDto": {
        "description": "What a start of skills identification queued, or joined: the identification,\nits conversation and its run. Read its progress and its proposal from the\n\u0060Location\u0060 the answer names.",
        "example": {
          "identificationId": "019cadf4-6140-7207-a894-cbac52abf6e5",
          "conversationId": "019cadf4-6140-7207-a894-cbac52abf6e5",
          "runId": "019cadf4-6140-7363-9d71-3761adfd2070"
        },
        "properties": {
          "conversationId": {
            "description": "The conversation the identification is, which is read, cancelled and deleted like any other.",
            "format": "uuid",
            "type": "string"
          },
          "identificationId": {
            "description": "The identification\u0027s id: the id of its conversation.",
            "format": "uuid",
            "type": "string"
          },
          "runId": {
            "description": "The run that identifies the skills, which is cancelled through the conversation\u0027s run cancel.",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "identificationId",
          "conversationId",
          "runId"
        ],
        "type": "object"
      },
      "SkillsProposalDto": {
        "description": "The skills the assistant proposes for a course, strongest first, at most\ntwelve, and what it read to propose them. Each skill\u0027s name, source id, group\npath and switch are as the run read them: read the catalogue again for their\ncurrent values before applying a tag.",
        "example": {
          "skills": [
            {
              "skillId": "019cadc6-9a80-7032-9077-253e2e304e03",
              "sourceId": "SAF.FIRE.01",
              "name": "Fire evacuation",
              "groupPath": [
                "Safety",
                "Fire"
              ],
              "enabled": true,
              "confidence": "strong",
              "reason": "Every lesson walks through leaving the building by the nearest exit, and the quiz asks where to go.",
              "targets": [
                {
                  "kind": "course",
                  "id": "019cadd0-aca0-7fca-97e7-57f16cfb68cf"
                },
                {
                  "kind": "activity",
                  "id": "019cadd8-ea00-7f03-b768-4def5c5a04ab"
                }
              ]
            },
            {
              "skillId": "019cadc6-9a80-7a44-8e41-b126400c4e72",
              "sourceId": null,
              "name": "Hazard reporting",
              "groupPath": [
                "Safety"
              ],
              "enabled": false,
              "confidence": "brief",
              "reason": "The second lesson says who to tell about a blocked fire door.",
              "targets": [
                {
                  "kind": "course",
                  "id": "019cadd0-aca0-7fca-97e7-57f16cfb68cf"
                }
              ]
            }
          ],
          "coverage": {
            "partial": false,
            "lessons": 2,
            "lessonsRead": 2,
            "lessonsTitleOnly": 0,
            "lessonsNotRead": 0,
            "readingClipped": false,
            "activities": 1,
            "activitiesOffered": 1,
            "activitiesTitleOnly": 0,
            "activitiesClipped": 0,
            "questionsRead": 3,
            "questionsFailed": 0,
            "questionsNotRead": 0,
            "skillsInCatalogue": 412,
            "skillsOffered": 100
          }
        },
        "properties": {
          "coverage": {
            "$ref": "#/components/schemas/SkillsCoverageDto",
            "description": "What the run read of the course and the catalogue, and what it left out."
          },
          "skills": {
            "description": "The proposed skills, ordered by confidence (\u0060strong\u0060, then \u0060clear\u0060, then \u0060brief\u0060). Empty when the catalogue is empty or nothing in it matched the course\u0027s words.",
            "items": {
              "$ref": "#/components/schemas/SuggestedSkillDto"
            },
            "type": "array"
          }
        },
        "required": [
          "skills",
          "coverage"
        ],
        "type": "object"
      },
      "StartSkillsIdentificationCommand": {
        "description": "The body of \u0060POST /v1/skills/identifications\u0060: asks the assistant which\nskills of the tenant\u0027s catalogue a course teaches. The identification is the\ncaller\u0027s own. The course is read by the run, on the caller\u0027s delegation,\nnever here.",
        "example": {
          "courseId": "019cadd0-aca0-7fca-97e7-57f16cfb68cf"
        },
        "properties": {
          "courseId": {
            "description": "The course version whose skills to identify.",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "courseId"
        ],
        "type": "object"
      },
      "SuggestedSkillDto": {
        "description": "One proposed skill of the tenant\u0027s catalogue.",
        "example": {
          "skillId": "019cadc6-9a80-7032-9077-253e2e304e03",
          "sourceId": "SAF.FIRE.01",
          "name": "Fire evacuation",
          "groupPath": [
            "Safety",
            "Fire"
          ],
          "enabled": true,
          "confidence": "strong",
          "reason": "Every lesson walks through leaving the building by the nearest exit, and the quiz asks where to go.",
          "targets": [
            {
              "kind": "course",
              "id": "019cadd0-aca0-7fca-97e7-57f16cfb68cf"
            },
            {
              "kind": "activity",
              "id": "019cadd8-ea00-7f03-b768-4def5c5a04ab"
            }
          ]
        },
        "properties": {
          "confidence": {
            "description": "How clearly the course covers it: \u0060strong\u0060 (explained and practised across the course), \u0060clear\u0060 (explained in one place) or \u0060brief\u0060 (covered briefly).",
            "type": "string"
          },
          "enabled": {
            "description": "Whether the skill was switched on when the run read it. A skill switched off can still be proposed.",
            "type": "boolean"
          },
          "groupPath": {
            "description": "The names of the groups the skill sits in, from the top level down; empty for a skill in no group.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "name": {
            "description": "The skill\u0027s name, as the run read it.",
            "type": "string"
          },
          "reason": {
            "description": "One sentence, the assistant\u0027s, saying why the course teaches it.",
            "type": "string"
          },
          "skillId": {
            "description": "The skill\u0027s id in the catalogue.",
            "format": "uuid",
            "type": "string"
          },
          "sourceId": {
            "description": "The identifier an imported framework gives the skill, or null.",
            "type": [
              "null",
              "string"
            ]
          },
          "targets": {
            "description": "Where to tag it: the course first, then each activity that practises it, in the course\u0027s order.",
            "items": {
              "$ref": "#/components/schemas/SkillTargetDto"
            },
            "type": "array"
          }
        },
        "required": [
          "skillId",
          "sourceId",
          "name",
          "groupPath",
          "enabled",
          "confidence",
          "reason",
          "targets"
        ],
        "type": "object"
      },
      "TurnAcceptedDto": {
        "description": "What a turn started: the turn\u0027s id, and the run now queued (or continued) for\nit. The work happens after the response; follow it on the event log.",
        "example": {
          "turnId": "019cadcd-ed80-7064-a58d-f79ac22c328e",
          "runId": "019cadcd-ed80-7000-b5d8-c8503fa207b1"
        },
        "properties": {
          "runId": {
            "description": "The run the turn queued or continued.",
            "format": "uuid",
            "type": "string"
          },
          "turnId": {
            "description": "The author\u0027s new turn.",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "turnId",
          "runId"
        ],
        "type": "object"
      },
      "TurnBody": {
        "description": "The body of \u0060POST /v1/conversations/{id}/turns\u0060: the author\u0027s message, or\nan action. The conversation comes from the route.",
        "example": {
          "text": "A 30-minute fire safety course for office staff, one module.",
          "action": null,
          "planTurnNumber": null
        },
        "properties": {
          "action": {
            "description": "\u0060confirm_brief\u0060, \u0060approve_outline\u0060, \u0060retry\u0060 or \u0060approve_revision\u0060, or absent for a plain message.",
            "type": [
              "null",
              "string"
            ]
          },
          "planTurnNumber": {
            "description": "With \u0060approve_revision\u0060, and only then: the number of the turn that showed the plan being approved, which must be the waiting revision\u0027s newest.",
            "format": "int32",
            "type": [
              "null",
              "integer"
            ]
          },
          "text": {
            "description": "What the author says, up to 8,000 characters. Required unless an action is given.",
            "type": [
              "null",
              "string"
            ]
          }
        },
        "type": "object"
      },
      "TurnDto": {
        "description": "One message in a conversation, from the author or the assistant.",
        "example": {
          "id": "019cadcc-18c0-7636-8442-e4266c0ac966",
          "number": 2,
          "author": "assistant",
          "text": "Here is a brief for your course. Confirm it and I will start the research.",
          "action": null,
          "payloadKind": "brief",
          "payload": {
            "topic": "Fire safety awareness",
            "audience": "Office staff",
            "objectives": [
              "Leave the building safely when the alarm sounds",
              "Report a fire hazard"
            ],
            "scope": "What to do when the alarm sounds, and how to report a hazard. Fighting a fire is out.",
            "size": "30 minutes, one module",
            "tone": "Plain and practical",
            "assumptions": [
              "Staff work in one building"
            ],
            "sources": [
              "https://example.org/fire-safety"
            ],
            "sites": [
              "example.org"
            ],
            "sourcesOnly": false
          },
          "runId": "019cadcb-2e60-735a-bad6-e24671254235",
          "createdAt": "2026-03-02T09:06:00\u002B00:00",
          "planTurnNumber": null
        },
        "properties": {
          "action": {
            "description": "The author\u0027s action, when the turn was one: \u0060confirm_brief\u0060, \u0060approve_outline\u0060, \u0060retry\u0060 or \u0060approve_revision\u0060.",
            "type": [
              "null",
              "string"
            ]
          },
          "author": {
            "description": "\u0060author\u0060 or \u0060assistant\u0060.",
            "type": "string"
          },
          "createdAt": {
            "description": "When the turn was added.",
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "description": "The turn\u0027s id.",
            "format": "uuid",
            "type": "string"
          },
          "number": {
            "description": "Its place in the conversation, from 1.",
            "format": "int32",
            "type": "integer"
          },
          "payload": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/JsonElement",
                "description": "The structured brief or outline the assistant proposed; a revision\u0027s proposed changes (\u0060revision_plan\u0060: a summary, each change with its kind, its targets by id with their titles, a short excerpt of each block it changes as it was, and its new text, the requests it cannot carry out with what to do instead, and the gaps \u2014 each question shown as its prompt and its options, never with which option is right or its explanation); or, on a build\u0027s closing turn, each lesson with what it could not support (\u0060review\u0060: \u0060lessons\u0060, each its \u0060item\u0060 and \u0060gaps\u0060)."
              }
            ]
          },
          "payloadKind": {
            "description": "What \u0060payload\u0060 holds, when the assistant\u0027s turn carried one: \u0060brief\u0060, \u0060outline\u0060, \u0060revision_plan\u0060, \u0060review\u0060 or \u0060skills_proposal\u0060 (a skills identification\u0027s proposal, read through its own route).",
            "type": [
              "null",
              "string"
            ]
          },
          "planTurnNumber": {
            "description": "On an \u0060approve_revision\u0060 turn, and only there: the number of the turn that showed the plan the author approved.",
            "format": "int32",
            "type": [
              "null",
              "integer"
            ]
          },
          "runId": {
            "description": "The run the turn started, or the run it came from.",
            "format": "uuid",
            "type": [
              "null",
              "string"
            ]
          },
          "text": {
            "description": "What was said; the author\u0027s own words, or the assistant\u0027s reply.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "number",
          "author",
          "text",
          "action",
          "payloadKind",
          "payload",
          "runId",
          "createdAt",
          "planTurnNumber"
        ],
        "type": "object"
      }
    },
    "securitySchemes": {
      "bearer": {
        "bearerFormat": "at\u002Bjwt",
        "description": "A Duende-issued OAuth2 access token (RFC 9068 at\u002Bjwt). Sent as \u0060Authorization: Bearer \u003Ctoken\u003E\u0060; carries the caller\u0027s permission claims and active tenant claim, cross-checked against the X-Tenant-Id header \u2014 or, for a platform-service caller, its capability scopes, with the tenant named by X-Seren-Tenant on the operations that admit one.",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "description": "The Seren Assistant API is the hosted course-drafting assistant: an author describes a course, the assistant researches it, proposes an outline and, once the author approves it, drafts the course in Seren. It writes as the author\u0027s hosted agent, under a delegation the author granted and can revoke, and never publishes. Conversations belong to their author alone; an administrator cannot read another author\u0027s.\n\nA message is answered by a run that works after the response, so sending one returns 202 and the conversation\u0027s event log says what happened. Poll the log with \u0060after=\u0060 the last sequence number read.\n\n## Authentication\n\nEvery operation needs an OAuth 2.0 access token unless it says otherwise. Send it as \u0060Authorization: Bearer \u003Ctoken\u003E\u0060. The token carries the caller\u0027s permissions and the tenant it was issued for; an operation the token does not permit answers 403.\n\nEach API accepts only tokens issued for it: request scope \u0060platform-api\u0060 for the Platform API, \u0060lms-api\u0060 for the LMS API and \u0060assistant-api\u0060 for the Assistant API. A token issued for one answers 401 at the others.\n\n## Tenant context\n\nEvery request acts in exactly one tenant, named in a header rather than the hostname:\n\n- \u0060X-Tenant-Id\u0060 for user, integration and agent callers. It is checked against the token\u0027s tenant: a missing header is 400, a mismatch is 403.\n- \u0060X-Seren-Tenant\u0060 for platform-service callers, on the few operations that admit one. Their credentials carry no tenant, so the header is authoritative there \u2014 and a platform-service token is accepted only when it is bound to a client certificate and the request presents that certificate. Otherwise the answer is 401 with code \u0060token.certificate_binding\u0060, before the header is read.\n\n## Errors\n\nEvery error is an RFC 7807 problem document (\u0060application/problem\u002Bjson\u0060). Branch on its \u0060code\u0060 \u2014 a stable, machine-readable key such as \u0060course.not_found\u0060 \u2014 rather than on the status or the \u0060type\u0060 URI. \u0060correlationId\u0060 identifies the request; quote it when you ask for support. Some errors add members: \u0060errors\u0060 on a field-validation 422, \u0060referencing\u0060 on a 409 for a resource still in use (unless listing what holds it would show what the caller may not read), \u0060unmet\u0060 on a 409 for an unmet prerequisite, and \u0060fields\u0060 on a 403 that refuses a member the caller may not set.\n\n### Reading a refusal\n\n- **400** \u0060tenant.header_missing\u0060: the tenant header is missing or is not a single valid id. It is checked before the token, so a request with neither answers 400, not 401. A malformed id in the path answers 400 \u0060request.malformed_id\u0060.\n- **401** \u0060http.unauthorized\u0060: no token, an expired one, or one issued for another API.\n- **403** \u0060tenant.mismatch\u0060: the tenant header names a tenant other than the token\u0027s. \u0060tenant.unavailable\u0060: the tenant is unknown or not active.\n- **403** \u0060authorisation.forbidden\u0060: the token lacks the permission the operation requires.\n- **403** with a code ending \u0060out_of_reach\u0060: the operation, or the user it names, needs a wider reach than the token grants.\n- **404** \u0060{area}.not_found\u0060, such as \u0060course.not_found\u0060: no such resource here. Another tenant\u0027s resource, and a user\u0027s resource the caller may not reach, answer the same way, so a 404 never confirms that an id exists elsewhere.\n- **409**: a well-formed request is blocked by the resource\u0027s current state, such as a lifecycle transition that is not allowed now or a resource still in use (\u0060referencing\u0060 lists what holds it, except where that would show what the caller may not read: the LMS API\u0027s LTI registration delete answers \u0060lti.registration_in_use\u0060 without it).\n- **422** \u0060validation.failed\u0060: the request itself is invalid; \u0060errors\u0060 names each field and what is wrong with it.\n\n## Correlation\n\nEvery response carries an \u0060X-Correlation-Id\u0060 header, and every problem document repeats it as \u0060correlationId\u0060. You may send your own: 1 to 128 characters, each a letter, a digit, \u0060-\u0060 or \u0060_\u0060. A missing or invalid value is replaced rather than refused: by the trace id of a W3C \u0060traceparent\u0060 header when the request carries one, otherwise by a generated id. Sending your own lets you find a request again when you ask for support.\n\n## Paging\n\nLists are paged by cursor. Pass \u0060limit\u0060 (1 to 100, default 25) and, for every page after the first, the previous page\u0027s \u0060pagination.nextCursor\u0060 as \u0060after\u0060. \u0060pagination.hasMore\u0060 is false on the last page. Cursors are opaque: never build or edit one. Where a list offers \u0060includeCount=true\u0060, \u0060pagination.totalCount\u0060 carries the total; it is otherwise null, so no count is run unless you ask for it.\n\n## Links\n\nResources and lists carry \u0060_links\u0060: a map from an operation name to the URI that performs it. The map lists only what the caller may do to that resource now, so it changes with the token\u0027s permissions and the resource\u0027s state. Follow these links rather than building URIs, and treat a missing link as \u0022not available to you\u0022.\n\n## Retrying writes\n\nOperations that change stored data through \u0060POST\u0060, \u0060PUT\u0060, \u0060PATCH\u0060 or \u0060DELETE\u0060 accept an optional \u0060Idempotency-Key\u0060 header where their contract lists it. Read-only POST queries do not store or replay a response. Mint one key for each logical submission and resend it only with the identical request. For 24 hours a resend from the same caller returns the original response without running the write again; the same key with a different request, or from another caller, is refused with 422 \u0060idempotency.key_reuse\u0060. A resend that arrives while the first is still running answers 409 with \u0060Retry-After\u0060.\n\n## Rate limits\n\nEach tenant has a request budget per window (by default 1000 requests a minute), which its users share. A delegated agent has a budget of its own (by default 300 requests a minute), and so has each integration (by default 600 requests a minute): their requests do not spend the tenant\u0027s budget, and the tenant\u0027s people using theirs up do not limit them. Every integration\u0027s requests also count against one budget that all of its tenant\u0027s integrations share (by default 6000 requests a minute), so an integration\u0027s request is admitted only while both its own budget and the shared one have room. An operation may instead count each signed-in user\u0027s requests in a budget of the user\u0027s own (by default 30 requests a minute), and says so in its description; those requests do not spend the tenant\u0027s budget either. Responses counted against a budget carry \u0060X-RateLimit-Limit\u0060, \u0060X-RateLimit-Remaining\u0060 and \u0060X-RateLimit-Reset\u0060 (Unix epoch seconds), describing the budget that counted the request; for an integration, whichever of its two budgets has fewer requests left. Over a budget, a request answers 429 with \u0060Retry-After\u0060, and its \u0060detail\u0060 says which budget was spent. Platform-service callers are not counted.\n\n## Request size\n\nA request body may be at most 1 MiB (1,048,576 bytes) unless its operation says it accepts more. A larger body, with or without a \u0060Content-Length\u0060, answers 413 with the code \u0060http.payload_too_large\u0060 before the request is otherwise read, so nothing it asked for is done.\n\n## Versions\n\nVersioned routes start with their major version, \u0060/v1\u0060, and the same path without it answers 404. The document\u0027s \u0060info.version\u0060 is the release number, separate from the route\u0027s major version. While it is \u00600.x\u0060, before the first stable release, any operation may still change; from the first stable release on, a breaking change is published under a new major version rather than made to \u0060/v1\u0060.",
    "title": "Seren Assistant API",
    "version": "0.1.0"
  },
  "openapi": "3.1.1",
  "paths": {
    "/v1/assistant": {
      "get": {
        "description": "Says whether the caller has enabled the assistant: a hosted agent of theirs and a delegation in force for it, read from the Platform with the caller\u0027s own token, and when that delegation expires. Requires content:write. An author the Platform refuses \u2014 without agents:delegate, or suspended \u2014 has not enabled it.",
        "operationId": "GetAssistantEnablement",
        "parameters": [
          {
            "description": "The tenant the request acts in. Cross-checked against the token\u0027s tenant claim: a mismatch is 403, a missing header 400.",
            "in": "header",
            "name": "X-Tenant-Id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssistantEnablementDto"
                }
              }
            },
            "description": "OK",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ],
        "summary": "Get the assistant\u0027s enablement",
        "tags": [
          "Enablement"
        ]
      }
    },
    "/v1/assistant:enable": {
      "post": {
        "description": "Creates the caller\u0027s hosted agent if they have none, and a delegation for it if none is in force, through the Platform\u0027s agent routes with the caller\u0027s own token. The delegation allows reading and writing draft content, and reading answer keys when the caller may; it lasts 30 days, and the caller revokes it on Your agents like any other. Repeating it while enabled changes nothing. Requires agents:delegate. 403 assistant.not_entitled when the tenant\u0027s plan does not include the assistant (the \u0060authoring_assistant\u0060 entitlement), before any agent or delegation is made; a refusal from the Platform is a 403 assistant.enable_refused.",
        "operationId": "EnableAssistant",
        "parameters": [
          {
            "description": "The tenant the request acts in. Cross-checked against the token\u0027s tenant claim: a mismatch is 403, a missing header 400.",
            "in": "header",
            "name": "X-Tenant-Id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Optional client-supplied key that makes this mutation safe to retry. Mint one key per logical submission and resend it only with the identical request \u2014 the same route, body and any condition the operation accepts (If-Match, If-None-Match). For 24 hours a resend from the same caller returns the original stored response without running again; the same key with a different request, or from another caller, is refused with 422 idempotency.key_reuse. Honoured on POST/PUT/PATCH/DELETE; on a DELETE it is what lets a retry after a lost response receive the original 204 rather than a 404.",
            "in": "header",
            "name": "Idempotency-Key",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Required for supported delegated-agent mutations: unpadded base64url UTF-8 reason, nonblank and at most 500 characters after decoding. Do not include secrets, answer keys or personal data; the reason is kept in the audit log when a user is erased. Ignored for ordinary callers; supplying this header grants no agent authority.",
            "in": "header",
            "name": "X-Seren-Agent-Reason",
            "schema": {
              "maxLength": 2668,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssistantEnablementDto"
                }
              }
            },
            "description": "OK",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem\u002Bjson": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Forbidden",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ],
        "summary": "Enable the assistant",
        "tags": [
          "Enablement"
        ]
      }
    },
    "/v1/conversations": {
      "get": {
        "description": "Returns the caller\u0027s own conversations, newest first, cursor-paginated (\u0060limit\u0060, \u0060after\u0060), each with its most recent run. Course drafts only: a skills identification\u0027s conversation (\u0060kind\u0060 \u0060skills_suggest\u0060) is not listed; read it by its id, or through \u0060/v1/skills/identifications/{id}\u0060. Requires content:write. A cursor that names no conversation of the caller\u0027s is a 422 conversation.invalid_cursor.",
        "operationId": "ListConversations",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "after",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The tenant the request acts in. Cross-checked against the token\u0027s tenant claim: a mismatch is 403, a missing header 400.",
            "in": "header",
            "name": "X-Tenant-Id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CursorPageOfConversationDto"
                }
              }
            },
            "description": "OK",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem\u002Bjson": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Forbidden",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/problem\u002Bjson": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            },
            "description": "Unprocessable Entity",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ],
        "summary": "List conversations",
        "tags": [
          "Conversations"
        ]
      },
      "post": {
        "description": "Starts a conversation with the assistant, optionally about an existing course (\u0060courseId\u0060). The conversation is the caller\u0027s own: nobody else, an administrator included, can read it. Requires content:write and a signed-in user; any other caller is a 403 assistant.subject_out_of_reach. 403 assistant.not_entitled when the tenant\u0027s plan does not include the assistant (the \u0060authoring_assistant\u0060 entitlement).",
        "operationId": "CreateConversation",
        "parameters": [
          {
            "description": "The tenant the request acts in. Cross-checked against the token\u0027s tenant claim: a mismatch is 403, a missing header 400.",
            "in": "header",
            "name": "X-Tenant-Id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Optional client-supplied key that makes this mutation safe to retry. Mint one key per logical submission and resend it only with the identical request \u2014 the same route, body and any condition the operation accepts (If-Match, If-None-Match). For 24 hours a resend from the same caller returns the original stored response without running again; the same key with a different request, or from another caller, is refused with 422 idempotency.key_reuse. Honoured on POST/PUT/PATCH/DELETE; on a DELETE it is what lets a retry after a lost response receive the original 204 rather than a 404.",
            "in": "header",
            "name": "Idempotency-Key",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Required for supported delegated-agent mutations: unpadded base64url UTF-8 reason, nonblank and at most 500 characters after decoding. Do not include secrets, answer keys or personal data; the reason is kept in the audit log when a user is erased. Ignored for ordinary callers; supplying this header grants no agent authority.",
            "in": "header",
            "name": "X-Seren-Agent-Reason",
            "schema": {
              "maxLength": 2668,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateConversationCommand"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConversationDto"
                }
              }
            },
            "description": "Created",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem\u002Bjson": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Forbidden",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/problem\u002Bjson": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            },
            "description": "Unprocessable Entity",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ],
        "summary": "Start a conversation",
        "tags": [
          "Conversations"
        ]
      }
    },
    "/v1/conversations/{id}": {
      "delete": {
        "description": "Permanently deletes one of the caller\u0027s own conversations and everything under it: its turns, runs, tool calls, sources, usage records and event log. The course the assistant drafted is not touched. Requires content:write; another author\u0027s conversation is a 404.",
        "operationId": "DeleteConversation",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The tenant the request acts in. Cross-checked against the token\u0027s tenant claim: a mismatch is 403, a missing header 400.",
            "in": "header",
            "name": "X-Tenant-Id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Optional client-supplied key that makes this mutation safe to retry. Mint one key per logical submission and resend it only with the identical request \u2014 the same route, body and any condition the operation accepts (If-Match, If-None-Match). For 24 hours a resend from the same caller returns the original stored response without running again; the same key with a different request, or from another caller, is refused with 422 idempotency.key_reuse. Honoured on POST/PUT/PATCH/DELETE; on a DELETE it is what lets a retry after a lost response receive the original 204 rather than a 404.",
            "in": "header",
            "name": "Idempotency-Key",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Required for supported delegated-agent mutations: unpadded base64url UTF-8 reason, nonblank and at most 500 characters after decoding. Do not include secrets, answer keys or personal data; the reason is kept in the audit log when a user is erased. Ignored for ordinary callers; supplying this header grants no agent authority.",
            "in": "header",
            "name": "X-Seren-Agent-Reason",
            "schema": {
              "maxLength": 2668,
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/problem\u002Bjson": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Bad Request",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem\u002Bjson": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Forbidden",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/problem\u002Bjson": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Not Found",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ],
        "summary": "Delete a conversation",
        "tags": [
          "Conversations"
        ]
      },
      "get": {
        "description": "Returns one of the caller\u0027s own conversations with its most recent run. Its links offer \u0060retry\u0060 when that run is a build or revision that failed or was cancelled, which is when a \u0060retry\u0060 message is accepted, and \u0060approveRevision\u0060 while that run is a revision waiting for its proposed plan to be approved, which is when an \u0060approve_revision\u0060 message is accepted. Requires content:write. Another author\u0027s conversation is a 404 conversation.not_found, the same answer as one that does not exist.",
        "operationId": "GetConversation",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The tenant the request acts in. Cross-checked against the token\u0027s tenant claim: a mismatch is 403, a missing header 400.",
            "in": "header",
            "name": "X-Tenant-Id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConversationDto"
                }
              }
            },
            "description": "OK",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/problem\u002Bjson": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Bad Request",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem\u002Bjson": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Forbidden",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/problem\u002Bjson": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Not Found",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ],
        "summary": "Get a conversation",
        "tags": [
          "Conversations"
        ]
      }
    },
    "/v1/conversations/{id}/events": {
      "get": {
        "description": "Returns the conversation\u0027s event log after the sequence number given in \u0060after\u0060, in order: turns appended, run state changes, progress, tool receipts, sources found and addresses that could not be opened. Entries are numbered in the order they committed, so asking for what follows the last number read never misses one. Poll it while a run works. A run whose work was interrupted and picked up again logs \u0060run.resumed\u0060. A write whose outcome was not known when its receipt was logged is checked afterwards, and the check logs a second receipt with the same \u0060toolCallId\u0060 and \u0060reconciled: true\u0060: read it in place of the first. Requires content:write; another author\u0027s conversation is a 404.",
        "operationId": "ListConversationEvents",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "after",
            "schema": {
              "format": "int64",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          },
          {
            "description": "The tenant the request acts in. Cross-checked against the token\u0027s tenant claim: a mismatch is 403, a missing header 400.",
            "in": "header",
            "name": "X-Tenant-Id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CursorPageOfEventDto"
                }
              }
            },
            "description": "OK",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/problem\u002Bjson": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Bad Request",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem\u002Bjson": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Forbidden",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/problem\u002Bjson": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Not Found",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/problem\u002Bjson": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            },
            "description": "Unprocessable Entity",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ],
        "summary": "Read the event log",
        "tags": [
          "Conversations"
        ]
      }
    },
    "/v1/conversations/{id}/runs/{runId}:cancel": {
      "post": {
        "description": "Stops a run. A queued run, or one waiting on the author, is cancelled at once; a running run stops at its next step and its model call is cancelled. What it already wrote to the course stays. Cancelling a run that has ended changes nothing and returns it as it stands. Requires content:write; another author\u0027s conversation, or a run not in it, is a 404.",
        "operationId": "CancelAssistantRun",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "runId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The tenant the request acts in. Cross-checked against the token\u0027s tenant claim: a mismatch is 403, a missing header 400.",
            "in": "header",
            "name": "X-Tenant-Id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Optional client-supplied key that makes this mutation safe to retry. Mint one key per logical submission and resend it only with the identical request \u2014 the same route, body and any condition the operation accepts (If-Match, If-None-Match). For 24 hours a resend from the same caller returns the original stored response without running again; the same key with a different request, or from another caller, is refused with 422 idempotency.key_reuse. Honoured on POST/PUT/PATCH/DELETE; on a DELETE it is what lets a retry after a lost response receive the original 204 rather than a 404.",
            "in": "header",
            "name": "Idempotency-Key",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Required for supported delegated-agent mutations: unpadded base64url UTF-8 reason, nonblank and at most 500 characters after decoding. Do not include secrets, answer keys or personal data; the reason is kept in the audit log when a user is erased. Ignored for ordinary callers; supplying this header grants no agent authority.",
            "in": "header",
            "name": "X-Seren-Agent-Reason",
            "schema": {
              "maxLength": 2668,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunDto"
                }
              }
            },
            "description": "OK",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/problem\u002Bjson": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Bad Request",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem\u002Bjson": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Forbidden",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/problem\u002Bjson": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Not Found",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ],
        "summary": "Cancel a run",
        "tags": [
          "Conversations"
        ]
      }
    },
    "/v1/conversations/{id}/turns": {
      "get": {
        "description": "Returns the conversation\u0027s messages from the author and the assistant, in order, after the turn number given in \u0060after\u0060. Requires content:write; another author\u0027s conversation is a 404.",
        "operationId": "ListTurns",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "after",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          },
          {
            "description": "The tenant the request acts in. Cross-checked against the token\u0027s tenant claim: a mismatch is 403, a missing header 400.",
            "in": "header",
            "name": "X-Tenant-Id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CursorPageOfTurnDto"
                }
              }
            },
            "description": "OK",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/problem\u002Bjson": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Bad Request",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem\u002Bjson": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Forbidden",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/problem\u002Bjson": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Not Found",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/problem\u002Bjson": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            },
            "description": "Unprocessable Entity",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ],
        "summary": "List messages",
        "tags": [
          "Conversations"
        ]
      },
      "post": {
        "description": "Adds the author\u0027s message, or an action (\u0060confirm_brief\u0060, \u0060approve_outline\u0060, \u0060retry\u0060, \u0060approve_revision\u0060), and queues the run it starts; the run works after the response, so the answer is 202 with the turn and run ids, and progress is read from the event log. Before a build a message is answered as a brief and \u0060confirm_brief\u0060 starts the build; while the build waits on its outline a message revises the outline and \u0060approve_outline\u0060 continues the build, which writes the lessons and then drafts the course, once this build has proposed an outline; after a build a message is a revision, which reads the course and proposes a plan of changes. While a revision waits on its proposed plan, a message asks again, continuing the same run, which proposes again; and \u0060approve_revision\u0060, with \u0060planTurnNumber\u0060 naming the turn that showed the plan, continues the same run, which then makes exactly the approved changes. Each change is made only if what it changes is as the plan read it, so an edit made since then leaves that change unmade and the others are still made; nothing is ever published. \u0060retry\u0060 carries on a build or revision that failed or was cancelled: it queues a new run of the same kind, starting at the phase that stopped and naming the stopped run in \u0060continuesRunId\u0060, with the outline, the sources, the course and the approved plan the stopped run had. Nothing the stopped run saved is removed or made again. It is accepted only when the conversation\u0027s newest run is such a run. Requires content:write. 422 turn.address_has_credential refuses an address holding a password or key before storing the message; 422 validation.failed for \u0060approve_revision\u0060 without \u0060planTurnNumber\u0060, or \u0060planTurnNumber\u0060 with anything else. 409 run.in_progress while a run is queued or running; 409 turn.action_not_available for an action the conversation does not offer now, among them \u0060approve_revision\u0060 when no revision is waiting on a plan it proposed, and for any message or action on a skills identification\u0027s conversation (\u0060kind\u0060 \u0060skills_suggest\u0060), which takes none; 409 turn.plan_superseded for an approval naming a plan the author has since asked to change; 409 assistant.not_enabled when the author has no hosted agent or no delegation in force; 403 assistant.disabled when the assistant is switched off; 403 assistant.not_entitled when the tenant\u0027s plan does not include the assistant (the \u0060authoring_assistant\u0060 entitlement); 402 plan.limit_reached when the author\u0027s or the tenant\u0027s allowance for the day is used up.",
        "operationId": "AppendTurn",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The tenant the request acts in. Cross-checked against the token\u0027s tenant claim: a mismatch is 403, a missing header 400.",
            "in": "header",
            "name": "X-Tenant-Id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Optional client-supplied key that makes this mutation safe to retry. Mint one key per logical submission and resend it only with the identical request \u2014 the same route, body and any condition the operation accepts (If-Match, If-None-Match). For 24 hours a resend from the same caller returns the original stored response without running again; the same key with a different request, or from another caller, is refused with 422 idempotency.key_reuse. Honoured on POST/PUT/PATCH/DELETE; on a DELETE it is what lets a retry after a lost response receive the original 204 rather than a 404.",
            "in": "header",
            "name": "Idempotency-Key",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Required for supported delegated-agent mutations: unpadded base64url UTF-8 reason, nonblank and at most 500 characters after decoding. Do not include secrets, answer keys or personal data; the reason is kept in the audit log when a user is erased. Ignored for ordinary callers; supplying this header grants no agent authority.",
            "in": "header",
            "name": "X-Seren-Agent-Reason",
            "schema": {
              "maxLength": 2668,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TurnBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TurnAcceptedDto"
                }
              }
            },
            "description": "Accepted",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/problem\u002Bjson": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Bad Request",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "402": {
            "content": {
              "application/problem\u002Bjson": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Payment Required",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem\u002Bjson": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Forbidden",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/problem\u002Bjson": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Not Found",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/problem\u002Bjson": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Conflict",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/problem\u002Bjson": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            },
            "description": "Unprocessable Entity",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ],
        "summary": "Send a message",
        "tags": [
          "Conversations"
        ]
      }
    },
    "/v1/skills/identifications": {
      "post": {
        "description": "Asks the assistant which skills of the tenant\u0027s catalogue a course teaches. The answer is 202 with the identification\u0027s id, its conversation\u0027s and its run\u0027s, and a \u0060Location\u0060 naming the read; the run works after the response. It reads the course and the whole catalogue, enabled and disabled skills alike, on the caller\u0027s own delegation, offers the model the best word matches and stores at most twelve proposed skills; it changes nothing in the course or the catalogue. A second start for the same course while the caller\u0027s first is still queued or running answers 202 with the first one\u0027s ids. Matching is by English words split on spaces, so a course in a script written without spaces gets no suggestions. Requires content:write and a signed-in user; any other caller is a 403 assistant.subject_out_of_reach. 422 validation.failed without \u0060courseId\u0060; 409 assistant.not_enabled when the caller has no hosted agent or no delegation in force; 403 assistant.disabled when the assistant is switched off; 403 assistant.not_entitled when the tenant\u0027s plan does not include the assistant (the \u0060authoring_assistant\u0060 entitlement); 402 plan.limit_reached when the caller\u0027s or the tenant\u0027s allowance for the day is used up. A course that cannot be read fails the run with \u0060tool_error\u0060.",
        "operationId": "StartSkillsIdentification",
        "parameters": [
          {
            "description": "The tenant the request acts in. Cross-checked against the token\u0027s tenant claim: a mismatch is 403, a missing header 400.",
            "in": "header",
            "name": "X-Tenant-Id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Optional client-supplied key that makes this mutation safe to retry. Mint one key per logical submission and resend it only with the identical request \u2014 the same route, body and any condition the operation accepts (If-Match, If-None-Match). For 24 hours a resend from the same caller returns the original stored response without running again; the same key with a different request, or from another caller, is refused with 422 idempotency.key_reuse. Honoured on POST/PUT/PATCH/DELETE; on a DELETE it is what lets a retry after a lost response receive the original 204 rather than a 404.",
            "in": "header",
            "name": "Idempotency-Key",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Required for supported delegated-agent mutations: unpadded base64url UTF-8 reason, nonblank and at most 500 characters after decoding. Do not include secrets, answer keys or personal data; the reason is kept in the audit log when a user is erased. Ignored for ordinary callers; supplying this header grants no agent authority.",
            "in": "header",
            "name": "X-Seren-Agent-Reason",
            "schema": {
              "maxLength": 2668,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StartSkillsIdentificationCommand"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillsIdentificationStartedDto"
                }
              }
            },
            "description": "Accepted",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "402": {
            "content": {
              "application/problem\u002Bjson": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Payment Required",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem\u002Bjson": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Forbidden",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "409": {
            "content": {
              "application/problem\u002Bjson": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Conflict",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/problem\u002Bjson": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            },
            "description": "Unprocessable Entity",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ],
        "summary": "Identify a course\u0027s skills",
        "tags": [
          "Skills"
        ]
      }
    },
    "/v1/skills/identifications/{id}": {
      "get": {
        "description": "Returns one of the caller\u0027s own skills identifications: its run\u0027s state (\u0060queued\u0060, \u0060running\u0060, \u0060completed\u0060, \u0060failed\u0060 or \u0060cancelled\u0060); once completed, the proposal \u2014 each skill with its name, source id, group path and whether it was enabled, as the run read them, its confidence, the assistant\u0027s reason, and its targets, the course first and then each activity that practises it \u2014 and \u0060coverage\u0060, saying what of the course and the catalogue was read and what was left out; once failed, the failure code. Its links offer \u0060cancel\u0060 while the run is queued or running, and \u0060conversation\u0060, which a delete uses. Requires content:write. Another author\u0027s identification, or an id that is not an identification, is a 404 skills_identification.not_found.",
        "operationId": "GetSkillsIdentification",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The tenant the request acts in. Cross-checked against the token\u0027s tenant claim: a mismatch is 403, a missing header 400.",
            "in": "header",
            "name": "X-Tenant-Id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillsIdentificationDto"
                }
              }
            },
            "description": "OK",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/problem\u002Bjson": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Bad Request",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem\u002Bjson": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Forbidden",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/problem\u002Bjson": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Not Found",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ],
        "summary": "Get a skills identification",
        "tags": [
          "Skills"
        ]
      }
    },
    "/v1/users/{id}:erase": {
      "post": {
        "description": "Permanently deletes every assistant conversation of the named user and everything under it: messages, runs, tool calls, sources, usage records and event logs, and the user\u0027s daily spend totals. The tenant\u0027s daily spend totals are kept, since they name no user, so the tenant\u0027s daily limit still counts what the user spent. The courses the assistant drafted are not touched. It is the assistant\u0027s half of a user\u0027s erasure, called after the Platform\u0027s own. Requires users:erase and users:erase:tenant, and the X-Confirm-Destructive: true header, without which it answers 422 and deletes nothing; the caller\u0027s own account is refused with 403 assistant.subject_is_self. Repeating it deletes nothing more and answers 0.",
        "operationId": "EraseAssistantData",
        "parameters": [
          {
            "description": "A user id, or \u0060me\u0060 for the caller\u0027s own user.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The tenant the request acts in. Cross-checked against the token\u0027s tenant claim: a mismatch is 403, a missing header 400.",
            "in": "header",
            "name": "X-Tenant-Id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Optional client-supplied key that makes this mutation safe to retry. Mint one key per logical submission and resend it only with the identical request \u2014 the same route, body and any condition the operation accepts (If-Match, If-None-Match). For 24 hours a resend from the same caller returns the original stored response without running again; the same key with a different request, or from another caller, is refused with 422 idempotency.key_reuse. Honoured on POST/PUT/PATCH/DELETE; on a DELETE it is what lets a retry after a lost response receive the original 204 rather than a 404.",
            "in": "header",
            "name": "Idempotency-Key",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Required for supported delegated-agent mutations: unpadded base64url UTF-8 reason, nonblank and at most 500 characters after decoding. Do not include secrets, answer keys or personal data; the reason is kept in the audit log when a user is erased. Ignored for ordinary callers; supplying this header grants no agent authority.",
            "in": "header",
            "name": "X-Seren-Agent-Reason",
            "schema": {
              "maxLength": 2668,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssistantErasureDto"
                }
              }
            },
            "description": "OK",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem\u002Bjson": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Forbidden",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/problem\u002Bjson": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            },
            "description": "Unprocessable Entity",
            "headers": {
              "X-Correlation-Id": {
                "description": "The request correlation id, echoed on every response and matching the problem body\u0027s correlationId; supply it as X-Correlation-Id to correlate your own traces.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "The limit of the window this request was counted in: the tenant\u0027s, which its users share (by default 1000 per minute), a delegated agent\u0027s own (by default 300 per minute), an integration\u0027s own (by default 600 per minute), or, on an operation that says so, the signed-in user\u0027s own (by default 30 per minute). An integration\u0027s request is also counted in a window all of its tenant\u0027s integrations share (by default 6000 per minute); this header then describes whichever of the two has fewer requests left, or, on a 429, the one that refused it. Absent when the request was not counted \u2014 a platform-service system caller is exempt.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window. At zero, the next request is rejected with 429 and a Retry-After.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ],
        "summary": "Erase a user\u0027s assistant data",
        "tags": [
          "Erasure"
        ]
      }
    }
  },
  "tags": [
    {
      "description": "An author\u0027s conversations with the assistant: messages, the runs they start, the event log to follow, and cancelling a run.",
      "name": "Conversations"
    },
    {
      "description": "Skills identification: which skills of the tenant\u0027s catalogue a course teaches, proposed by the assistant for the author to review.",
      "name": "Skills"
    },
    {
      "description": "Whether the author has enabled the assistant, and enabling it.",
      "name": "Enablement"
    },
    {
      "description": "Erasing a user\u0027s assistant data, the assistant\u0027s half of a GDPR erasure.",
      "name": "Erasure"
    }
  ]
}
