Search pages
GET/wiki/search/pages
History
Version | Changes |
---|---|
v6.2.16 | Added in: v6.2.16 |
Search pages.
Request
Query Parameters
The team ID
User ID, this parameter can only be passed when calling as an Oauth bot. It is used to perform operations as the specified user
Possible values: <= 100
Default value: 50
The number returned by this request.The default value is 50, exceeding 100 will be truncated to 100
The starting location of this request
Possible values: <= 100 characters
The search keyword
The space ID list split by commas. An empty string searches all spaces.
Default false, true: Search include archived pages, false: Search exclude archived pages.
Responses
- 200
- 401
- 403
- 404
- 500
Request is successful.
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
data
object
Whether has more result
The start of next page
The total number of matched pages
pages
object[]
fields
object
The page ID
The page title
highlightFields
object
Matched title
Matched content
The result of this request.
The error code of this request.
Error message for this request.
Error meta data for this request.
{
"data": {
"hasNext": true,
"nextCursor": "string",
"total": 0,
"pages": [
{
"fields": {
"id": "string",
"title": "string"
},
"highlightFields": {
"title": [
"string"
],
"content": [
"string"
]
}
}
]
},
"result": "string",
"errorCode": "string",
"errorMsg": "string",
"errorData": {}
}
Returned if the authentication credentials are incorrect or missing.
- application/json
- Schema
- Example (from schema)
Schema
The result of this request.
The error code of this request.
Error message for this request.
{
"result": "FAIL",
"errorCode": "Unauthorized",
"errorMsg": "Access token is invalid"
}
Returns if the scope check fails.
- application/json
- Schema
- Example (from schema)
Schema
The result of this request.
The error code of this request.
Error message for this request.
{
"result": "FAIL",
"errorCode": "Forbidden",
"errorMsg": "Scope is invalid"
}
Returned if the resource object was not found.
- application/json
- Schema
- Example (from schema)
Schema
The result of this request.
The error code of this request.
Error message for this request.
{
"result": "FAIL",
"errorCode": "NotFound",
"errorMsg": "Not Found"
}
Internal Server Error.
- application/json
- Schema
- Example (from schema)
Schema
The result of this request.
The error code of this request.
Error message for this request.
{
"result": "FAIL",
"errorCode": "Internal Server Error",
"errorMsg": "Internal Server Error"
}