# List Knowledge Bases

Call the API endpoint to list the knowledge bases that are available to you.

## Explore legal data Knowledge Bases for use with Generative AI (PREVIEW).

> Get details of Laws.Africa's Knowledge Bases.\
> \
> Note: this API is a preview and may change in future.

```json
{"openapi":"3.0.3","info":{"title":"Laws.Africa Content API","version":"20.0.0 (v1)"},"security":[{"cookieAuth":[]},{"tokenAuth":[]}],"components":{"securitySchemes":{"cookieAuth":{"type":"apiKey","in":"cookie","name":"sessionid"},"tokenAuth":{"type":"apiKey","in":"header","name":"Authorization","description":"Token-based authentication with required prefix \"Token\""}},"schemas":{"PaginatedKnowledgeBaseList":{"type":"object","required":["count","results"],"properties":{"count":{"type":"integer"},"next":{"type":"string","nullable":true,"format":"uri"},"previous":{"type":"string","nullable":true,"format":"uri"},"results":{"type":"array","items":{"$ref":"#/components/schemas/KnowledgeBase"}}}},"KnowledgeBase":{"type":"object","properties":{"code":{"type":"string","description":"Unique code identifying this knowledge base","maxLength":50,"pattern":"^[-a-zA-Z0-9_]+$"},"name":{"type":"string","description":"Name of the knowledge base","maxLength":255},"description":{"type":"string","description":"Description of the knowledge base"},"url":{"type":"string","format":"uri","readOnly":true}},"required":["code","description","name","url"]}}},"paths":{"/ai/v1/knowledge-bases":{"get":{"operationId":"knowledge_bases_list","description":"Get details of Laws.Africa's Knowledge Bases.\n\nNote: this API is a preview and may change in future.","summary":"Explore legal data Knowledge Bases for use with Generative AI (PREVIEW).","parameters":[{"name":"page","required":false,"in":"query","description":"A page number within the paginated result set.","schema":{"type":"integer"}},{"name":"page_size","required":false,"in":"query","description":"Number of results to return per page.","schema":{"type":"integer"}}],"tags":["knowledge-bases"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedKnowledgeBaseList"}}},"description":""}}}}}}
```
