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>"
}List knowledge
Can only be called for the workspace associated with the provided API key. Response is paginated. Default page size is 20, with a maximum of 50. If page_size exceeds the maximum or is invalid, the server will reset it to the default value.
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
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. You can create a key in one command with the Inworld CLI: inworld workspace add-key.
Path Parameters
The workspace that owns the knowledge collections. Format: workspaces/{workspace}.
workspaces/[^/]+Query Parameters
Maximum number of items to retrieve per page. Default is 20, maximum is 50.
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.
Was this page helpful?