Google Cloud Pub/Sub Projects API

The Projects API from Google Cloud Pub/Sub — 35 operation(s) for projects.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 46

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

PUT /v1/projects/{projectsId}/snapshots/{snapshotsId} Create a snapshot of a subscription · Create snapshots #
Ask an LLM
“How do I take a snapshot of a subscription's backlog at a point in time?”
“Does creating a snapshot fail if the backlog is too old?”
Tell an agent
Create snapshot {snapshotsId} for subscription {subscription} in project {projectsId}.
Create snapshot {snapshotsId} in {projectsId} labeled {labels}.
DELETE /v1/projects/{projectsId}/snapshots/{snapshotsId} Delete a snapshot · Delete snapshots #
Ask an LLM
“How do I delete a snapshot I no longer need?”
“What happens to messages in a snapshot when it is deleted?”
Tell an agent destructive · confirm first
Delete snapshot {snapshot} in project {project}.
Remove snapshot {snapshot}.
PATCH /v1/projects/{projectsId}/snapshots/{snapshotsId} Update a snapshot · Patch snapshots #
Ask an LLM
“Can I change the labels on an existing snapshot?”
“How do I update fields on a snapshot?”
Tell an agent
Update snapshot {snapshot} in project {project} with {changes}.
Patch snapshot {snapshot}.
GET /v1/projects/{projectsId}/snapshots/{snapshotsId} Get a snapshot · Get snapshots #
Ask an LLM
“What topic and subscription backlog does a snapshot capture?”
“Can I look up a snapshot's configuration?”
Tell an agent
Get snapshot {snapshot} in project {project}.
Show the configuration of snapshot {snapshot}.
POST /v1/projects/{projectsId}/snapshots/{snapshotsId}:testIamPermissions Check IAM permissions on a snapshot · Test iam permissions snapshots #
Ask an LLM
“Which IAM permissions does my account have on a snapshot?”
“Can I test permissions on a snapshot without an error if it doesn't exist?”
Tell an agent
Test permissions {permissions} on snapshot {snapshot} in project {project}.
Check what I can do with snapshot {snapshot}.
GET /v1/projects/{projectsId}/snapshots/{snapshotsId}:getIamPolicy Get the IAM policy of a snapshot · Get iam policy snapshots #
Ask an LLM
“What access control policy is set on a snapshot?”
“Can I get a snapshot's IAM policy for a specific policy version?”
Tell an agent
Get the IAM policy for snapshot {snapshot} in project {project}.
Show snapshot {snapshot}'s access policy.
GET /v1/projects/{projectsId}/snapshots List snapshots in a project · List snapshots #
Ask an LLM
“Which snapshots exist in my project?”
“Can I page through all snapshots?”
Tell an agent
List snapshots in project {project}.
Show the first {page_size} snapshots in {project}.
POST /v1/projects/{projectsId}/snapshots/{snapshotsId}:setIamPolicy Set the IAM policy of a snapshot · Set iam policy snapshots #
Ask an LLM
“How do I replace the access policy on a snapshot?”
“Can I grant a service account full control over a snapshot?”
Tell an agent
Set the IAM policy on snapshot {snapshot} in project {project} to {policy}.
Replace snapshot {snapshot}'s access policy with {policy}.
POST /v1/projects/{projectsId}/subscriptions/{subscriptionsId}:seek Seek a subscription to a snapshot or time · Seek subscriptions #
Ask an LLM
“How do I reset a subscription's ack state to a snapshot?”
“Can I seek a subscription to a point in time?”
Tell an agent
Seek subscription {subscription} in project {project} to snapshot {snapshot}.
Seek subscription {subscription} to {time}.
GET /v1/projects/{projectsId}/subscriptions/{subscriptionsId} Get a subscription · Get subscriptions #
Ask an LLM
“What are the settings of a subscription?”
“Can I look up one subscription's configuration?”
Tell an agent
Get subscription {subscription} in project {project}.
Show the configuration of subscription {subscription}.
PUT /v1/projects/{projectsId}/subscriptions/{subscriptionsId} Create a subscription to a topic · Create subscriptions #
Ask an LLM
“How do I subscribe a service to a topic?”
“Can I create a subscription that only receives messages matching a filter?”
Tell an agent
Create subscription {subscription} to topic {topic} in project {project}.
Subscribe {subscription} to {topic} with filter {filter}.
DELETE /v1/projects/{projectsId}/subscriptions/{subscriptionsId} Delete a subscription · Delete subscriptions #
Ask an LLM
“How do I delete a subscription?”
“What happens to messages in a subscription when it is deleted?”
Tell an agent destructive · confirm first
Delete subscription {subscription} in project {project}.
Remove subscription {subscription}.
PATCH /v1/projects/{projectsId}/subscriptions/{subscriptionsId} Update a subscription · Patch subscriptions #
Ask an LLM
“Can I change a subscription's ack deadline or retry policy?”
“How do I update only some fields of an existing subscription?”
Tell an agent
Update subscription {subscription} in project {project} with {changes}.
Patch subscription {subscription}.
POST /v1/projects/{projectsId}/subscriptions/{subscriptionsId}:modifyAckDeadline Change the ack deadline for messages · Modify ack deadline subscriptions #
Ask an LLM
“How do I give a subscriber more time to acknowledge messages?”
“Can I extend the ack deadline for specific messages?”
Tell an agent
Extend the ack deadline for messages {ack_ids} on subscription {subscription} in project {project} to {seconds} seconds.
Reset the ack deadline for {ack_ids} to {seconds} seconds.
POST /v1/projects/{projectsId}/subscriptions/{subscriptionsId}:acknowledge Acknowledge messages on a subscription · Acknowledge subscriptions #
Ask an LLM
“How do I tell Pub/Sub I've processed a batch of messages?”
“Can I acknowledge messages whose ack deadline has already expired?”
Tell an agent
Acknowledge messages {ack_ids} on subscription {subscription} in project {project}.
Mark {ack_ids} as processed.
POST /v1/projects/{projectsId}/subscriptions/{subscriptionsId}:pull Pull messages from a subscription · Pull subscriptions #
Ask an LLM
“How do I fetch the next batch of messages from a subscription?”
“Can I pull messages immediately even if none are available?”
Tell an agent
Pull up to {max} messages from subscription {subscription} in project {project}.
Pull {max} messages from {subscription} without waiting ({wait}).
GET /v1/projects/{projectsId}/subscriptions List subscriptions in a project · List subscriptions #
Ask an LLM
“Which subscriptions exist in my project?”
“Can I list only the subscriptions that match a filter?”
Tell an agent
List subscriptions in project {project}.
Show the first {page_size} subscriptions in {project}.
GET /v1/projects/{projectsId}/subscriptions/{subscriptionsId}:getIamPolicy Get the IAM policy of a subscription · Get iam policy subscriptions #
Ask an LLM
“What access control policy is set on a subscription?”
“Can I get a subscription's IAM policy for a specific policy version?”
Tell an agent
Get the IAM policy for subscription {subscription} in project {project}.
Show subscription {subscription}'s access policy.
POST /v1/projects/{projectsId}/subscriptions/{subscriptionsId}:setIamPolicy Set the IAM policy of a subscription · Set iam policy subscriptions #
Ask an LLM
“How do I replace the access policy on a subscription?”
“Can I grant a service account full control over a subscription?”
Tell an agent
Set the IAM policy on subscription {subscription} in project {project} to {policy}.
Replace subscription {subscription}'s access policy with {policy}.
POST /v1/projects/{projectsId}/subscriptions/{subscriptionsId}:testIamPermissions Check IAM permissions on a subscription · Test iam permissions subscriptions #
Ask an LLM
“What permissions does my service account have on a subscription?”
“Do I get an empty set if the subscription doesn't exist?”
Tell an agent
Test permissions {permissions} on subscription {subscriptionsId} in project {projectsId}.
List the permissions I hold on subscription {subscriptionsId}.
POST /v1/projects/{projectsId}/subscriptions/{subscriptionsId}:modifyPushConfig Change a subscription's push endpoint · Modify push config subscriptions #
Ask an LLM
“How do I turn a push subscription into a pull subscription?”
“Can I change the endpoint URL of an existing push subscription?”
Tell an agent
Set push config {pushConfig} on subscription {subscription} in project {project}.
Make subscription {subscription} in project {project} a pull subscription by clearing its push endpoint.
POST /v1/projects/{projectsId}/subscriptions/{subscriptionsId}:detach Detach a subscription from its topic · Detach subscriptions #
Ask an LLM
“How do I stop a subscription from receiving messages from its topic?”
“What happens to messages in a subscription I detach?”
Tell an agent destructive · confirm first
Detach subscription {subscription} from its topic in project {project}.
Stop subscription {subscription} in project {project} from pulling messages.
POST /v1/projects/{projectsId}/topics/{topicsId}:testIamPermissions Check IAM permissions on a topic · Test iam permissions topics #
Ask an LLM
“Which permissions does my account have on a Pub/Sub topic?”
“Can I test topic permissions without checking the full policy?”
Tell an agent
Test permissions {permissions} on topic {topic} in project {project}.
Check whether I can manage topic {topic} in project {project}.
GET /v1/projects/{projectsId}/topics List topics in a project · List topics #
Ask an LLM
“What topics exist in my Cloud Pub/Sub project?”
“Can I page through all topics in a project?”
Tell an agent
List topics in project {project}.
Show the first {page_size} topics in project {project}.
PUT /v1/projects/{projectsId}/topics/{topicsId} Create a topic · Create topics #
Ask an LLM
“How do I create a new Cloud Pub/Sub topic?”
“Can I set message retention and storage policy when creating a topic?”
Tell an agent
Create topic {topic} in project {project}.
Create topic {topic} in project {project} with retention {retention}.
PATCH /v1/projects/{projectsId}/topics/{topicsId} Update a topic · Patch topics #
Ask an LLM
“Can I change a topic's message retention settings?”
“Which fields of a topic are not modifiable?”
Tell an agent
Update topic {topicsId} in project {projectsId} with topic {topic} using update mask {updateMask}.
Set message retention on existing topic {topicsId} in {projectsId}.
GET /v1/projects/{projectsId}/topics/{topicsId} Get a topic's configuration · Get topics #
Ask an LLM
“What are the settings of a particular topic?”
“Can I see a topic's retention duration and storage policy?”
Tell an agent
Get topic {topic} in project {project}.
Show the configuration of topic {topic} in project {project}.
DELETE /v1/projects/{projectsId}/topics/{topicsId} Delete a topic · Delete topics #
Ask an LLM
“How do I delete a topic I no longer need?”
“What happens to subscriptions when I delete their topic?”
Tell an agent destructive · confirm first
Delete topic {topic} in project {project}.
Remove the {topic} topic from project {project}.
POST /v1/projects/{projectsId}/topics/{topicsId}:publish Publish messages to a topic · Publish topics #
Ask an LLM
“How do I publish messages to a topic?”
“Can I publish several messages to a topic in one call?”
Tell an agent
Publish messages {messages} to topic {topic} in project {project}.
Send {messages} to the {topic} topic in project {project}.
GET /v1/projects/{projectsId}/topics/{topicsId}:getIamPolicy Get a topic's IAM policy · Get iam policy topics #
Ask an LLM
“What access control policy is set on a topic?”
“Can I get the policy version for a topic?”
Tell an agent
Get the IAM policy for topic {topic} in project {project}.
Show the policy version {version} on topic {topic} in project {project}.
POST /v1/projects/{projectsId}/topics/{topicsId}:setIamPolicy Set a topic's IAM policy · Set iam policy topics #
Ask an LLM
“How do I grant a service account permission to publish to a topic?”
“Can I replace a topic's access policy entirely?”
Tell an agent
Set the IAM policy {policy} on topic {topic} in project {project}.
Replace the access policy on topic {topic} in project {project} with {policy}.
GET /v1/projects/{projectsId}/topics/{topicsId}/snapshots List snapshots on a topic · List snapshots #
Ask an LLM
“What snapshots exist for a topic?”
“Can I see the snapshot names attached to a topic?”
Tell an agent
List snapshots on topic {topic} in project {project}.
Show up to {page_size} snapshots for topic {topic} in project {project}.
GET /v1/projects/{projectsId}/topics/{topicsId}/subscriptions List subscriptions attached to a topic · List subscriptions #
Ask an LLM
“Which subscriptions are attached to a given topic?”
“Can I list only the subscription names on a topic?”
Tell an agent
List subscriptions on topic {topic} in project {project}.
Show the first {page_size} subscriptions attached to topic {topic} in project {project}.
GET /v1/projects/{projectsId}/schemas List schemas in a project · List schemas #
Ask an LLM
“What schemas are defined in my project?”
“Can I list only the schema names without their definitions?”
Tell an agent
List schemas in project {project}.
Show {view} schemas in project {project}.
POST /v1/projects/{projectsId}/schemas Create a schema · Create schemas #
Ask an LLM
“How do I register a compiled Protocol Buffer schema?”
“Can I create a schema from a JSON Schema definition?”
Tell an agent
Create schema {schemaId} in project {projectsId} with type {type} and definition {definition}.
Create a compiled Proto schema {schemaId} from {compiledProtoSchema}.
POST /v1/projects/{projectsId}/schemas/{schemasId}:rollback Roll back a schema to an earlier revision · Rollback schemas #
Ask an LLM
“How do I revert a schema to a previous revision?”
“Can I restore a schema to a specific revision ID?”
Tell an agent
Roll back schema {schema} in project {project} to revision {revision}.
Restore schema {schema} in project {project} to revision {revision}.
POST /v1/projects/{projectsId}/schemas:validate Validate a schema definition · Validate schemas #
Ask an LLM
“Is a schema definition I wrote valid?”
“Can I check a schema before creating it?”
Tell an agent
Validate schema {schema} in project {project}.
Check that {schema} is a valid schema definition.
GET /v1/projects/{projectsId}/schemas/{schemasId} Get a schema · Get schemas #
Ask an LLM
“What does a particular schema definition contain?”
“Can I fetch a schema revision by its ID?”
Tell an agent
Get schema {schema} in project {project}.
Show schema {schema} in project {project} with view {view}.
DELETE /v1/projects/{projectsId}/schemas/{schemasId} Delete a schema · Delete schemas #
Ask an LLM
“How do I delete a schema I no longer use?”
“Can I remove a schema from my project?”
Tell an agent destructive · confirm first
Delete schema {schema} in project {project}.
Remove the {schema} schema from project {project}.
DELETE /v1/projects/{projectsId}/schemas/{schemasId}:deleteRevision Delete a schema revision · Delete revision schemas #
Ask an LLM
“How do I remove an old revision of a schema?”
“Can I delete one specific revision of a schema?”
Tell an agent destructive · confirm first
Delete revision {revision} of schema {schema} in project {project}.
Remove revision {revision} from schema {schema} in project {project}.
GET /v1/projects/{projectsId}/schemas/{schemasId}:listRevisions List revisions of a schema · List revisions schemas #
Ask an LLM
“What revisions of a schema have been committed?”
“Can I see the full history of schema changes?”
Tell an agent
List revisions of schema {schema} in project {project}.
Show the last {page_size} revisions of {schema} in {project}.
POST /v1/projects/{projectsId}/schemas/{schemasId}:commit Commit a new revision to a schema · Commit schemas #
Ask an LLM
“How do I publish a new revision of an Avro schema?”
“Can I commit a schema revision without a name?”
Tell an agent
Commit schema {schema} in project {project} with definition {definition}.
Publish a new revision of {schema} in {project}.
POST /v1/projects/{projectsId}/schemas/{schemasId}:setIamPolicy Set the IAM policy on a schema · Set iam policy schemas #
Ask an LLM
“Who has access to a schema?”
“Can I replace a schema's access policy?”
Tell an agent
Set the IAM policy on schema {schema} in project {project} to {policy}.
Replace the access policy for {schema} in {project}.
POST /v1/projects/{projectsId}/schemas/{schemasId}:testIamPermissions Check permissions on a schema · Test iam permissions schemas #
Ask an LLM
“Does my service account have permission to read a schema?”
“What permissions does a caller have on a schema?”
Tell an agent
Test permissions {permissions} on schema {schema} in project {project}.
Check if I can read schema {schema} in {project}.
GET /v1/projects/{projectsId}/schemas/{schemasId}:getIamPolicy Get the IAM policy on a schema · Get iam policy schemas #
Ask an LLM
“What access policy is set on a schema?”
“Does a schema have an IAM policy at all?”
Tell an agent
Get the IAM policy on schema {schema} in project {project}.
Show the access policy for {schema} in {project} at version {version}.
POST /v1/projects/{projectsId}/schemas:validateMessage Validate a message against a schema · Validate message schemas #
Ask an LLM
“Is a message valid against my Avro schema?”
“Can I check a message payload before publishing it?”
Tell an agent
Validate message {message} against schema {schema} in project {project}.
Check {encoding} message {message} against {schema} in {project}.

Work with this as data

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-cloud-pubsub:google-cloud-pubsub-projects-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 Specification

google-cloud-pubsub-projects-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cloud Pub/Sub Projects API
  version: v1
  description: Generated from Google's published Discovery document for Cloud Pub/Sub API (pubsub v1, revision 20261106). 46 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://pubsub.googleapis.com
tags:


# --- truncated at 32 KB (164 KB total) ---
# Full source: https://artifacts.apis.io/google-cloud-pubsub/openapi/google-cloud-pubsub-projects-api-openapi.yml