Dokumentation
ReferenzSkills

List skill libraries.

GET
/skill-libraries

List the skill libraries the calling user can see: the libraries of the platform and of the integrations the tenant uses, those the organization prescribes, those colleagues shared with the user, the user's own, and those of the assistants the user may use.

A library is the unit this API works with. Skills and files inside it are read here and changed only by importing a new library (POST /skill-library-imports). Which libraries apply in a chat is decided by activated: libraries of the levels shared and user are switched by the user, every other level applies by itself.

The answer is a paginated envelope, the same as the user list: count says how many libraries match, and next and previous lead through the pages.

Authorization

apiKey
headerX-API-Key<token>

API key issued in the Galilea settings.

Query Parameters

level?string

Only libraries of this level.

Value in"system""integration""organization""shared""agent""user"
activated?boolean

Only libraries that currently apply (true) or do not apply (false) for the calling user.

limit?integer

Number of libraries per page.

Range1 <= value
Default20
offset?integer

Index of the first library of the page.

Range0 <= value
Default0

Response Body

The visible skill libraries, one page of them.

application/json
  1. response
count*integer

Total number of libraries matching the filter.

next?|

URL of the next page, or null on the last one.

previous?|

URL of the previous page, or null on the first one.

results*array<>
curl -X GET "https://example.com/skill-libraries"
{  "count": 0,  "next": "string",  "previous": "string",  "results": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "Vertriebsregeln",      "level": "system",      "activated": true,      "numberOfSkills": 0,      "numberOfFiles": 0,      "sizeInBytes": 0,      "userPermissions": [        "skill.view"      ],      "lastModifiedAt": "2019-08-24T14:15:22Z"    }  ]}