workflow-code API
workflow-code Workflow Server 的 REST API。管理端支持邮箱密码会话、管理员密钥恢复会话与 browser device flow 批准页;CLI / Desktop 使用 device flow 换取每设备 API Key,自动化调用也可以使用 Authorization: Bearer <token>。Embed 和 Webhook 使用各自独立 token/secret。
Authentication
- HTTP: Bearer Auth
- HTTP: Bearer Auth
- API Key: WorkflowSessionCookie
- API Key: EmbedToken
- API Key: WebhookSecret
- HTTP: Bearer Auth
- API Key: Sub2ApiLLMProxyApiKey
- API Key: GitLabWebhookSecret
使用 WORKFLOW_SERVER_ADMIN_KEY 或已创建的账号 API Key。
Security Scheme Type: | http |
|---|---|
HTTP Authorization Scheme: | bearer |
当前用户和 Conversation 项目专属的 wfpk_* Key;不能使用管理员或账号 API Key 代替。
Security Scheme Type: | http |
|---|---|
HTTP Authorization Scheme: | bearer |
通过密码登录或管理员密钥登录建立的 httpOnly 浏览器会话。
Security Scheme Type: | apiKey |
|---|---|
Cookie parameter name: | workflow_auth_session |
Embed token;也可通过 query/body 的 token 传入。
Security Scheme Type: | apiKey |
|---|---|
Header parameter name: | x-workflow-embed-token |
Webhook Secret。
Security Scheme Type: | apiKey |
|---|---|
Header parameter name: | x-workflow-webhook-secret |
GET /api/auth/sub2api/llm-credentials 签发的一小时 wfllm_ 短凭据。
Security Scheme Type: | http |
|---|---|
HTTP Authorization Scheme: | bearer |
Anthropic SDK 兼容入口;值同样是一小时 wfllm_ 短凭据,不是真实 Sub2API Key。
Security Scheme Type: | apiKey |
|---|---|
Header parameter name: | x-api-key |
GitLab Project Hook 兼容 header。
Security Scheme Type: | apiKey |
|---|---|
Header parameter name: | x-gitlab-token |