跳转到主要内容
POST
/
space
/
{spaceId}
/
integration
cURL
curl --request POST \
  --url http://127.0.0.1:3000/api/space/{spaceId}/integration \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "AI",
  "config": {
    "llmProviders": [],
    "embeddingModel": "<string>",
    "translationModel": "<string>",
    "chatModel": {
      "lg": "<string>",
      "md": "<string>",
      "sm": "<string>",
      "ability": {
        "image": true,
        "pdf": true,
        "webSearch": true
      }
    },
    "capabilities": {
      "disableActions": [
        "<string>"
      ]
    },
    "appConfig": {
      "apiKey": "<string>",
      "vercelToken": "<string>",
      "customDomain": "<string>",
      "creditCount": 1,
      "v0BaseUrl": "<string>",
      "vercelBaseUrl": "<string>",
      "aiGatewayApiKey": "<string>"
    },
    "webSearchConfig": {
      "apiKey": "<string>"
    }
  },
  "enable": true
}
'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

spaceId
string
required

Body

application/json
type
enum<string>
required
可用选项:
AI
config
object
required
enable
boolean

Response

200

Successful response.

Last modified on December 10, 2025