OpenAPI 3.1.0
API for spaces, pages, publication and search.
/healthcurl --request GET \
--url "https://0.0.0.0:3000/api/health" \
--header 'Accept: application/json'Параметры не требуются
/searchcurl --request GET \
--url "https://0.0.0.0:3000/api/search" \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_TOKEN'/spacescurl --request POST \
--url "https://0.0.0.0:3000/api/spaces" \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_TOKEN'Параметры не требуются
/v1/pagescurl --request GET \
--url "https://0.0.0.0:3000/api/v1/pages" \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_TOKEN'/v1/pagescurl --request POST \
--url "https://0.0.0.0:3000/api/v1/pages" \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_TOKEN' \
--header 'Content-Type: application/json' \
--data '{"example":"value"}'Параметры не требуются
{
"type": "object",
"required": [
"spaceId",
"title",
"slug"
],
"properties": {
"slug": {
"type": "string"
},
"title": {
"type": "string"
},
"content": {
"type": "object"
},
"spaceId": {
"type": "string"
},
"parentId": {
"type": [
"string",
"null"
]
}
}
}/v1/spacescurl --request GET \
--url "https://0.0.0.0:3000/api/v1/spaces" \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_TOKEN'Параметры не требуются
/pages/{id}curl --request GET \
--url "https://0.0.0.0:3000/api/pages/{id}" \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_TOKEN'/pages/{id}curl --request PATCH \
--url "https://0.0.0.0:3000/api/pages/{id}" \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_TOKEN'/v1/ai/queryRequires an organization API token with the ai:query scope. The answer includes numbered citations and source URLs.
curl --request POST \
--url "https://0.0.0.0:3000/api/v1/ai/query" \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_TOKEN' \
--header 'Content-Type: application/json' \
--data '{"example":"value"}'Параметры не требуются
{
"question": {
"value": {
"query": "Как подключить API?",
"spaceId": "cm123example"
}
}
}{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"answer": {
"type": "string"
},
"sources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"index": {
"type": "integer"
},
"title": {
"type": "string"
}
}
}
}
}
}
}
}/v1/pages/{id}curl --request PATCH \
--url "https://0.0.0.0:3000/api/v1/pages/{id}" \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_TOKEN'