Skip to main content
GET
/
knowledge
/
v1alpha
/
{parent}
/
knowledge
List knowledge
curl --request GET \
  --url https://api.inworld.ai/knowledge/v1alpha/{parent}/knowledge \
  --header 'Authorization: <api-key>'
{
  "knowledge": [
    {
      "name": "<string>",
      "records": [
        {
          "text": "<string>"
        }
      ],
      "language": "LANGUAGE_CODE_UNSPECIFIED"
    }
  ],
  "nextPageToken": "<string>"
}

Authorizations

Authorization
string
header
required

Should follow the format Basic {credentials}. The {credentials} consists of the Base64-encoded string of the API key and the secret in the format key:secret

Path Parameters

parent
string
required

The workspace that owns the knowledge collections. Format: workspaces/{workspace}.

Query Parameters

pageSize
integer

Maximum number of items to retrieve per page. Default is 20, maximum is 50.

pageToken
string

A page token, received from a previous ListKnowledgeRequest call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListKnowledgeRequest must stay the same.

Response

A successful response.

Response containing a paginated list of knowledge collections.

knowledge
object[]

List of knowledge collections.

nextPageToken
string

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.