The caller's own prompts and the prompts shared with them, as summaries
A person's prompt library (ADR 0070, prompts-v1.md): the prompts the caller owns and the ones shared with a role of theirs. It needs no permission of its own. Summaries only: no body and no variables (variableCount says how many), so the answer is small; getPrompt has the whole. Ordered by id, bytewise, not by name: a client sorts for display. scope is all (the default: the caller's own, and the shared ones), mine or shared (the caller's own are left out). held is how many prompts the caller owns, whatever the scope. A page holds at most limit (100); nextCursor is there when more follow, and is sent back as cursor (a position, never a capability: it is the id of the last prompt of the page before). A shared prompt has no audience, no owner and no created time: it never names its author. Never cached.
Client recipe: using a prompt. (1) If getConfig has no prompts, offer no library. (2) List, and page with nextCursor until it is absent. (3) getPrompt for the one chosen. (4) Draw its variables as a Choices form with the client's own catalog renderer and collect the catalog's answer (answers); a client that cannot draw a kind of question does not offer the prompt. With no variables send answers: []. (5) renderPrompt with the answers and the revision; a 409 stale_revision means read the prompt again. (6) Put the text in the message box for the person to edit, and send it as an ordinary message: nothing here sends it. Draw a shared prompt's words as plain text, never as Markdown or HTML.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Parameters
Query Parameters
all (the default), mine or shared; anything else is 400 bad_scope
"all""mine""shared""all"The nextCursor of the page before: a prompt id; anything else is 400 bad_cursor
Responses
One page of summaries