Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
find_apisBrowse and filter every API in the catalog.
get_api_artifactsOne API's artifacts, grouped by type.
get_openapiThe primary OpenAPI for this API.
find_similar_apisAPIs that look like this one.
apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
resolveTurn a domain, URL or GitHub org into the provider it belongs to.
find_cohortsEvery scored population of providers in the catalog.
All 92 tools →
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/google-gemini:google-gemini-corpora-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Gemini Corpora API
version: v1beta
description: Generated from Google's published Discovery document for Gemini API (generativelanguage v1beta, revision 20261111). 10 operation(s).
contact:
name: Google
url: https://developers.google.com/
termsOfService: https://developers.google.com/terms
servers:
- url: https://generativelanguage.googleapis.com
tags:
- name: Corpora
paths:
/v1beta/corpora:
get:
operationId: generativelanguage.corpora.list
summary: List corpora
description: Lists all `Corpora` owned by the user.
parameters:
- name: pageSize
in: query
required: false
description: Optional. The maximum number of `Corpora` to return (per page). The service may return fewer `Corpora`. If unspecified, at most 10 `Corpora` will be returned. The maximum size limit is 20 `Corpora` per page.
schema:
type: integer
format: int32
- name: pageToken
in: query
required: false
description: Optional. A page token, received from a previous `ListCorpora` call. Provide the `next_page_token` returned in the response as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListCorpora` must match the call that provided the page token.
schema:
type: string
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/ListCorporaResponse'
4XX:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: Error response (google.rpc.Status)
security:
- apiKey: []
deprecated: true
tags:
- Corpora
post:
operationId: generativelanguage.corpora.create
summary: Create corpora
description: Creates an empty `Corpus`.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/Corpus'
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/Corpus'
4XX:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: Error response (google.rpc.Status)
security:
- apiKey: []
deprecated: true
tags:
- Corpora
/v1beta/corpora/{corporaId}:
delete:
operationId: generativelanguage.corpora.delete
summary: Delete corpora
description: Deletes a `Corpus`.
parameters:
- name: corporaId
in: path
required: true
description: Resource name segment (corporaId).
schema:
type: string
- name: force
in: query
required: false
description: Optional. If set to true, any `Document`s and objects related to this `Corpus` will also be deleted. If false (the default), a `FAILED_PRECONDITION` error will be returned if `Corpus` contains any `Document`s.
schema:
type: boolean
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/Empty'
4XX:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: Error response (google.rpc.Status)
security:
- apiKey: []
deprecated: true
tags:
- Corpora
get:
operationId: generativelanguage.corpora.get
summary: Get corpora
description: Gets information about a specific `Corpus`.
parameters:
- name: corporaId
in: path
required: true
description: Resource name segment (corporaId).
schema:
type: string
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/Corpus'
4XX:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: Error response (google.rpc.Status)
security:
- apiKey: []
deprecated: true
tags:
- Corpora
/v1beta/corpora/{corporaId}/permissions:
post:
operationId: generativelanguage.corpora.permissions.create
summary: Create permissions
description: Create a permission to a specific resource.
parameters:
- name: corporaId
in: path
required: true
description: Resource name segment (corporaId).
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/Permission'
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/Permission'
4XX:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: Error response (google.rpc.Status)
security:
- apiKey: []
tags:
- Corpora
get:
operationId: generativelanguage.corpora.permissions.list
summary: List permissions
description: Lists permissions for the specific resource.
parameters:
- name: corporaId
in: path
required: true
description: Resource name segment (corporaId).
schema:
type: string
- name: pageSize
in: query
required: false
description: Optional. The maximum number of `Permission`s to return (per page). The service may return fewer permissions. If unspecified, at most 10 permissions will be returned. This method returns at most 1000 permissions per page, even if you pass larger page_size.
schema:
type: integer
format: int32
- name: pageToken
in: query
required: false
description: Optional. A page token, received from a previous `ListPermissions` call. Provide the `page_token` returned by one request as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListPermissions` must match the call that provided the page token.
schema:
type: string
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/ListPermissionsResponse'
4XX:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: Error response (google.rpc.Status)
security:
- apiKey: []
tags:
- Corpora
/v1beta/corpora/{corporaId}/permissions/{permissionsId}:
patch:
operationId: generativelanguage.corpora.permissions.patch
summary: Patch permissions
description: Updates the permission.
parameters:
- name: corporaId
in: path
required: true
description: Resource name segment (corporaId).
schema:
type: string
- name: permissionsId
in: path
required: true
description: Resource name segment (permissionsId).
schema:
type: string
- name: updateMask
in: query
required: false
description: 'Required. The list of fields to update. Accepted ones: - role (`Permission.role` field)'
schema:
format: google-fieldmask
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/Permission'
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/Permission'
4XX:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: Error response (google.rpc.Status)
security:
- apiKey: []
tags:
- Corpora
delete:
operationId: generativelanguage.corpora.permissions.delete
summary: Delete permissions
description: Deletes the permission.
parameters:
- name: corporaId
in: path
required: true
description: Resource name segment (corporaId).
schema:
type: string
- name: permissionsId
in: path
required: true
description: Resource name segment (permissionsId).
schema:
type: string
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/Empty'
4XX:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: Error response (google.rpc.Status)
security:
- apiKey: []
tags:
- Corpora
get:
operationId: generativelanguage.corpora.permissions.get
summary: Get permissions
description: Gets information about a specific Permission.
parameters:
- name: corporaId
in: path
required: true
description: Resource name segment (corporaId).
schema:
type: string
- name: permissionsId
in: path
required: true
description: Resource name segment (permissionsId).
schema:
type: string
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/Permission'
4XX:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: Error response (google.rpc.Status)
security:
- apiKey: []
tags:
- Corpora
/v1beta/corpora/{corporaId}/operations/{operationsId}:
get:
operationId: generativelanguage.corpora.operations.get
summary: Get operations
description: Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
parameters:
- name: corporaId
in: path
required: true
description: Resource name segment (corporaId).
schema:
type: string
- name: operationsId
in: path
required: true
description: Resource name segment (operationsId).
schema:
type: string
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/Operation'
4XX:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: Error response (google.rpc.Status)
security:
- apiKey: []
tags:
- Corpora
components:
schemas:
Status:
properties:
details:
description: A list of messages that carry the error details. There is a common set of message types for APIs to use.
type: array
items:
type: object
additionalProperties:
description: Properties of the object. Contains field @type with type URL.
message:
description: A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
type: string
code:
description: The status code, which should be an enum value of google.rpc.Code.
format: int32
type: integer
type: object
description: 'The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).'
Corpus:
type: object
properties:
updateTime:
type: string
description: Output only. The Timestamp of when the `Corpus` was last updated.
format: google-datetime
readOnly: true
displayName:
type: string
description: 'Optional. The human-readable display name for the `Corpus`. The display name must be no more than 512 characters in length, including spaces. Example: "Docs on Semantic Retriever"'
name:
description: 'Output only. Immutable. Identifier. The `Corpus` resource name. The ID (name excluding the "corpora/" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a unique name will be derived from `display_name` along with a 12 character random suffix. Example: `corpora/my-awesome-corpora-123a456b789c`'
type: string
readOnly: true
createTime:
description: Output only. The Timestamp of when the `Corpus` was created.
format: google-datetime
type: string
readOnly: true
description: A `Corpus` is a collection of `Document`s. A project can create up to 10 corpora.
ListPermissionsResponse:
description: Response from `ListPermissions` containing a paginated list of permissions.
type: object
properties:
nextPageToken:
description: A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages.
type: string
permissions:
items:
$ref: '#/components/schemas/Permission'
description: Returned permissions.
type: array
Permission:
description: 'Permission resource grants user, group or the rest of the world access to the PaLM API resource (e.g. a tuned model, corpus). A role is a collection of permitted operations that allows users to perform specific actions on PaLM API resources. To make them available to users, groups, or service accounts, you assign roles. When you assign a role, you grant permissions that the role contains. There are three concentric roles. Each role is a superset of the previous role''s permitted operations: - reader can use the resource (e.g. tuned model, corpus) for inference - writer has reader''s permissions and additionally can edit and share - owner has writer''s permissions and additionally can delete'
type: object
properties:
name:
readOnly: true
type: string
description: 'Output only. Identifier. The permission name. A unique name will be generated on create. Examples: tunedModels/{tuned_model}/permissions/{permission} corpora/{corpus}/permissions/{permission} Output only.'
granteeType:
enum:
- GRANTEE_TYPE_UNSPECIFIED
- USER
- GROUP
- EVERYONE
type: string
description: Optional. Immutable. The type of the grantee.
emailAddress:
type: string
description: Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE.
role:
enum:
- ROLE_UNSPECIFIED
- OWNER
- WRITER
- READER
description: Required. The role granted by this permission.
type: string
Empty:
type: object
description: 'A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }'
properties: {}
GoogleRpcError:
type: object
description: The error envelope every Google API returns.
properties:
error:
type: object
properties:
code:
type: integer
message:
type: string
status:
type: string
details:
type: array
items:
type: object
ListCorporaResponse:
properties:
corpora:
items:
$ref: '#/components/schemas/Corpus'
description: The returned corpora.
type: array
nextPageToken:
description: A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages.
type: string
description: Response from `ListCorpora` containing a paginated list of `Corpora`. The results are sorted by ascending `corpus.create_time`.
type: object
Operation:
description: This resource represents a long-running operation that is the result of a network API call.
type: object
properties:
metadata:
type: object
description: Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
additionalProperties:
description: Properties of the object. Contains field @type with type URL.
name:
description: The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
type: string
error:
$ref: '#/components/schemas/Status'
description: The error result of the operation in case of failure or cancellation.
done:
description: If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
type: boolean
response:
description: The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
additionalProperties:
description: Properties of the object. Contains field @type with type URL.
type: object
securitySchemes:
apiKey:
type: apiKey
in: query
name: key
description: API key; accepted by methods that do not need user data.
oauth2:
type: oauth2
flows:
authorizationCode:
authorizationUrl: https://accounts.google.com/o/oauth2/auth
tokenUrl: https://oauth2.googleapis.com/token
scopes:
https://www.googleapis.com/auth/devstorage.read_only: View your data in Google Cloud Storage
externalDocs:
url: https://developers.generativeai.google/api
x-provenance:
method: harvested
publisher: Google
source: https://generativelanguage.googleapis.com/$discovery/rest?version=v1beta
note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261111)