Lists all Corpora
owned by the user.
HTTP request
GET https://generativelanguage.googleapis.com/v1beta/corpora
Query parameters
Parameters | |
---|---|
pageSize |
Optional. The maximum number of If unspecified, at most 10 |
pageToken |
Optional. A page token, received from a previous Provide the When paginating, all other parameters provided to |
Request body
The request body must be empty.
Response body
Response from corpora.list
containing a paginated list of Corpora
. The results are sorted by ascending corpus.create_time
.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"corpora": [
{
object ( |
Fields | |
---|---|
corpora[] |
The returned corpora. |
nextPageToken |
A token, which can be sent as |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/generative-language.retriever
https://www.googleapis.com/auth/generative-language.retriever.readonly
For more information, see the Authentication Overview.