Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.inplain.app/llms.txt

Use this file to discover all available pages before exploring further.

Plain API 还在 beta,字段可能变。锁版本生产用建议先 email hi@inplain.app

Base URL

https://inplain.app/api

Auth

所有非公开端点要 Bearer token。两种:
  1. Cookie session — Web app 自动带,无需手动
  2. API key (PAT)Authorization: Bearer plain_pk_xxx(给 CLI / 第三方集成)
PAT 在 inplain.app/account → API Keys 创建。

主要端点

Endpoint用途Auth
POST /api/agent自然语言 → deck/doc/sheet,流式 NDJSON
POST /api/agent/demo公开 demo(landing 用),5/天/IP 限流
POST /api/render任意 source → HTML
POST /api/exportsource → .pptx/.docx/.xlsx/.pdf
GET/POST /api/workspace/documentsCRUD documents
POST /api/brands上传 .pptx 模板
POST /api/brands/[id]/generate用 brand 模板生成单份 deck
POST /api/brands/[id]/batch批量生成 N 份 → zip
POST /api/showcase/fork把 showcase demo 复制到自己工作区
POST /api/onboarding/seed现场为新用户生成三件套
POST /api/onboarding/reset清空工作区 + 重弹 welcome

Errors

{ "error": "rate_limit_minute", "message": "请稍等一分钟再试" }
HTTPerror code含义
400invalid_json / prompt_too_short请求参数不合法
401unauthorized没带 cookie 或 PAT
413prompt_too_long / file_too_large超长
429rate_limit_minute / rate_limit_day触发限流
5xxinternal_error我们的锅,带 trace 联系我们

详细 endpoint 文档

继续看: