Google Play Developer Accesstokens API

The Accesstokens API from Google Play Developer — 2 operation(s) for accesstokens.

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 /games/v1/accesstokens/generatePlayGroupingApiToken Generate a Play Grouping API token · Generate play grouping api token accesstokens #
Ask an LLM
“How do I get a Play Grouping API token for a PGS user?”
“Can I generate a grouping token for a persona in my game?”
Tell an agent
Generate a Play Grouping API token for {packageName} for persona {persona}.
Create a grouping token for {packageName} under persona {persona}.
POST /games/v1/accesstokens/generateRecallPlayGroupingApiToken Generate a Play Grouping API token from a recall session · Generate recall play grouping api token accesstokens #
Ask an LLM
“Can I generate a grouping token from a Recall session ID?”
“How do I get a Play Grouping API token for a player from a recall session?”
Tell an agent
Generate a Play Grouping API token for {packageName} from recall session {recallSessionId}.
Create a grouping token for {packageName} using recall session {recallSessionId}.

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-play:google-play-accesstokens-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-play-accesstokens-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Google Play Games Services Accesstokens API
  version: v1
  description: Generated from Google's published Discovery document for Google Play Games Services API (games v1, revision 20261106). 2 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://games.googleapis.com
tags:
- name: Accesstokens
paths:
  /games/v1/accesstokens/generatePlayGroupingApiToken:
    post:
      operationId: games.accesstokens.generatePlayGroupingApiToken
      summary: Generate play grouping api token accesstokens
      description: Generates a Play Grouping API token for the PGS user identified by the attached credential.
      parameters:
      - name: packageName
        in: query
        required: false
        description: Required. App package name to generate the token for (e.g. com.example.mygame).
        schema:
          type: string
      - name: persona
        in: query
        required: false
        description: Required. Persona to associate with the token. Persona is a developer-provided stable identifier of the user. Must be deterministically generated (e.g. as a one-way hash) from the user account ID and user profile ID (if the app has the concept), according to the developer's own user identity system.
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GeneratePlayGroupingApiTokenResponse'
        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/games
      - apiKey: []
      tags:
      - Accesstokens
  /games/v1/accesstokens/generateRecallPlayGroupingApiToken:
    post:
      operationId: games.accesstokens.generateRecallPlayGroupingApiToken
      summary: Generate recall play grouping api token accesstokens
      description: Generates a Play Grouping API token for the PGS user identified by the Recall session ID provided in the request.
      parameters:
      - name: packageName
        in: query
        required: false
        description: Required. App package name to generate the token for (e.g. com.example.mygame).
        schema:
          type: string
      - name: persona
        in: query
        required: false
        description: Required. Persona to associate with the token. Persona is a developer-provided stable identifier of the user. Must be deterministically generated (e.g. as a one-way hash) from the user account ID and user profile ID (if the app has the concept), according to the developer's own user identity system.
        schema:
          type: string
      - name: recallSessionId
        in: query
        required: false
        description: Required. Opaque server-generated string that encodes all the necessary information to identify the PGS player / Google user and application. See https://developer.android.com/games/pgs/recall/recall-setup on how to integrate with Recall and get session ID.
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenerateRecallPlayGroupingApiTokenResponse'
        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/androidpublisher
      - apiKey: []
      tags:
      - Accesstokens
components:
  schemas:
    GenerateRecallPlayGroupingApiTokenResponse:
      description: Response for the GenerateRecallPlayGroupingApiToken RPC.
      properties:
        token:
          $ref: '#/components/schemas/PlayGroupingApiToken'
          description: Token for accessing the Play Grouping API.
      type: object
    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
    GeneratePlayGroupingApiTokenResponse:
      properties:
        token:
          $ref: '#/components/schemas/PlayGroupingApiToken'
          description: Token for accessing the Play Grouping API.
      type: object
      description: Response for the GeneratePlayGroupingApiToken RPC.
    PlayGroupingApiToken:
      type: object
      properties:
        tokenValue:
          description: Value of the token.
          type: string
      description: Token data returned from GeneratePlayGroupingApiToken RPC.
  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/games: Create, edit, and delete your Google Play Games activity
            https://www.googleapis.com/auth/androidpublisher: View and manage your Google Play Developer account
            https://www.googleapis.com/auth/drive.appdata: See, create, and delete its own configuration data in your Google Drive
externalDocs:
  url: https://developers.google.com/games/
x-provenance:
  method: harvested
  publisher: Google
  source: https://games.googleapis.com/$discovery/rest?version=v1
  note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261106)