Pages

Get document labels.

Changed on

Returns 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

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

status'error' | 'success'

The status of the response

Example response

{
  "status": "success",
  "data": [
    {
      "id": 1,
      "name": "Pricing"
    }
  ]
}

Changes