Pages
Get document labels.
Changed onReturns all labels assigned to a document. Labels control which users can access answers derived from this document - users only see answers from documents matching their assigned labels.
Notes: Requires Custom plan. Documents without labels are accessible to all users.
get/api/v1/projects/{projectId}/pages/{pageId}/labels
Request
- Base URLhttps://app.customgpt.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
projectIdinteger required
The unique identifier of the agent.
pageIdinteger required
The unique identifier of the page/document.
Response
List labels attached to a page
Example response
{
"status": "success",
"data": [
{
"id": 1,
"name": "Pricing"
}
]
}Changes
- info
endpoint added
- info