---
title: "POST /v1/users/{usersId}:generatePlatformSiteTokens"
method: POST
path: "/v1/users/{usersId}:generatePlatformSiteTokens"
tags: ["users"]
---

# POST /v1/users/{usersId}:generatePlatformSiteTokens

`POST /v1/users/{usersId}:generatePlatformSiteTokens`

## Request

- Base URL: `https://webcontentpublisher.googleapis.com`
- URL: `https://webcontentpublisher.googleapis.com/v1/users/{usersId}:generatePlatformSiteTokens`
- Auth: none declared

Returns user tokens mapped to their canonical domains for all publications the authenticated user is entitled to.

## Path parameters

- `usersId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string

## Request body

- GeneratePlatformSiteTokensRequest: Request message for `GeneratePlatformSiteTokens`.

## Response `200`

Successful response

- GeneratePlatformSiteTokensResponse: Response message for `GeneratePlatformSiteTokens`.
  - `siteTokens` SiteToken[]: List of domain-scoped secure token mappings.
    - `domain` string: The domain scope this token is valid for.
    - `token` string: The domain-scoped secure token value (ESUT).

---

[API](https://skmtc.dev/google/apis/webcontentpublisher.md) - [All operations](https://skmtc.dev/google/apis/webcontentpublisher/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/webcontentpublisher/revisions/6b6edf75eb40?raw)
