Google Cloud Pub/Sub Cursor API

The Cursor API from Google Cloud Pub/Sub — 2 operation(s) for cursor.

GitHub OpenAPI

Operations 2

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

POST /v1/cursor/projects/{projectsId}/locations/{locationsId}/subscriptions/{subscriptionsId}:commitCursor Commit a subscription cursor · Commit cursor subscriptions #
Ask an LLM
“How do I commit a cursor so a subscription picks up where it left off?”
“Can I commit a cursor for just one partition of a subscription?”
Tell an agent
Commit cursor {cursor} for subscription {subscription} in {project}/{location}.
Commit cursor {cursor} for partition {partition} of subscription {subscription} in {project}/{location}.
GET /v1/cursor/projects/{projectsId}/locations/{locationsId}/subscriptions/{subscriptionsId}/cursors List committed cursors for a subscription · List cursors #
Ask an LLM
“What cursor positions have been committed for my subscription?”
“Can I page through all committed cursors for a subscription?”
Tell an agent
List committed cursors for subscription {subscription} in {project}/{location}.
Show {page_size} committed cursors per page for subscription {subscription} in {project}/{location}.

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-cursor-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-cursor-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Pub/Sub Lite Cursor API
  version: v1
  description: Generated from Google's published Discovery document for Pub/Sub Lite API (pubsublite v1, revision 20261106). 2 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://pubsublite.googleapis.com
tags:
- name: Cursor
paths:
  /v1/cursor/projects/{projectsId}/locations/{locationsId}/subscriptions/{subscriptionsId}:commitCursor:
    post:
      operationId: pubsublite.cursor.projects.locations.subscriptions.commitCursor
      summary: Commit cursor subscriptions
      description: Updates the committed cursor.
      parameters:
      - name: projectsId
        in: path
        required: true
        description: Resource name segment (projectsId).
        schema:
          type: string
      - name: locationsId
        in: path
        required: true
        description: Resource name segment (locationsId).
        schema:
          type: string
      - name: subscriptionsId
        in: path
        required: true
        description: Resource name segment (subscriptionsId).
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CommitCursorRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommitCursorResponse'
        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:
      - oauth2:
        - https://www.googleapis.com/auth/cloud-platform
      - apiKey: []
      tags:
      - Cursor
  /v1/cursor/projects/{projectsId}/locations/{locationsId}/subscriptions/{subscriptionsId}/cursors:
    get:
      operationId: pubsublite.cursor.projects.locations.subscriptions.cursors.list
      summary: List cursors
      description: Returns all committed cursor information for a subscription.
      parameters:
      - name: projectsId
        in: path
        required: true
        description: Resource name segment (projectsId).
        schema:
          type: string
      - name: locationsId
        in: path
        required: true
        description: Resource name segment (locationsId).
        schema:
          type: string
      - name: subscriptionsId
        in: path
        required: true
        description: Resource name segment (subscriptionsId).
        schema:
          type: string
      - name: pageSize
        in: query
        required: false
        description: The maximum number of cursors to return. The service may return fewer than this value. If unset or zero, all cursors for the parent will be returned.
        schema:
          format: int32
          type: integer
      - name: pageToken
        in: query
        required: false
        description: A page token, received from a previous `ListPartitionCursors` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListPartitionCursors` must match the call that provided the page token.
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListPartitionCursorsResponse'
        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:
      - oauth2:
        - https://www.googleapis.com/auth/cloud-platform
      - apiKey: []
      tags:
      - Cursor
components:
  schemas:
    PartitionCursor:
      properties:
        partition:
          description: The partition this is for.
          format: int64
          type: string
        cursor:
          $ref: '#/components/schemas/Cursor'
          description: The value of the cursor.
      type: object
      description: A pair of a Cursor and the partition it is for.
    CommitCursorResponse:
      properties: {}
      description: Response for CommitCursor.
      type: object
    Cursor:
      type: object
      properties:
        offset:
          description: The offset of a message within a topic partition. Must be greater than or equal 0.
          format: int64
          type: string
      description: A cursor that describes the position of a message within a topic partition.
    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
    ListPartitionCursorsResponse:
      properties:
        nextPageToken:
          type: string
          description: A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
        partitionCursors:
          items:
            $ref: '#/components/schemas/PartitionCursor'
          description: The partition cursors from this request.
          type: array
      description: Response for ListPartitionCursors
      type: object
    CommitCursorRequest:
      description: Request for CommitCursor.
      type: object
      properties:
        cursor:
          $ref: '#/components/schemas/Cursor'
          description: The new value for the committed cursor.
        partition:
          format: int64
          description: The partition for which to update the cursor. Partitions are zero indexed, so `partition` must be in the range [0, topic.num_partitions).
          type: string
  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/cloud-platform: See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
externalDocs:
  url: https://cloud.google.com/pubsub/lite/docs
x-provenance:
  method: harvested
  publisher: Google
  source: https://pubsublite.googleapis.com/$discovery/rest?version=v1
  note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261106)