跳到主要内容

aiPromptsExport

AiPromptBundle aiPromptsExport()

GET /api/2.0/ai/prompts/export

Export the prompt library

Builds a versioned bundle of every prompt and folder in the caller's library and returns it, with no parameters. The bundle is self-contained: it carries its own format version so an older export can still be read back, and it is the input POST api/2.0/ai/prompts/import-bundle expects. This is also the only way to read the whole library at once, since listing is folder-scoped. Nothing is changed by the call.

Parameters​

This endpoint does not need any parameter.

Responses​

Status codeDescriptionTypeResponse headers
200The whole library as a versioned bundle, ready to import.AiPromptBundle-
401Missing asc_auth_key cookie or Authorization header.AiErrorResponse-
403AI is disabled for this portal, the caller is a guest, or the room named by entityId is one the caller cannot open. Relayed from the DocSpace AI service or the Files API.AiErrorResponse-
500Unhandled failure. The reason is logged server-side and never echoed back.AiErrorResponse-

Return type​

AiPromptBundle

Authorization​

cookieAuth, bearerAuth

HTTP request headers​

  • Content-Type: Not defined
  • Accept: application/json