- [JSON representation](https://docs.cloud.google.com/iam/docs/reference/cloudoauth/rest/v1/ExchangeTokenResponse#SCHEMA_REPRESENTATION)

Response message for `https://docs.cloud.google.com/iam/docs/reference/cloudoauth/rest/v1/common/token#google.cloud.identity.oauth.v1.CloudOAuthService.ExchangeToken`. see [Response](https://www.rfc-editor.org/rfc/rfc6749#section-5.1)

| JSON representation |
|---|
| ``` { "access_token": string, "refresh_token": string, "expires_in": integer, "token_type": string, "scope": string, "id_token": string } ``` |

| Fields ||
|---|---|
| `access_token` | `string` An OAuth 2.0 security token, issued by Google, in response to the OAuth token exchange request for the authorization code and refresh token flows. The returned [access token](https://www.rfc-editor.org/rfc/rfc6749#section-4.1.4). Tokens can vary in size, depending, in part, on the size of mapped claims, up to a maximum of 12288 bytes (12 KB). Google reserves the right to change the token size and the maximum length at any time. |
| `refresh_token` | `string` A refresh token, issued by Google, in response to the OAuth token exchange request for the refresh token flow. |
| `expires_in` | `integer` The amount of time, in seconds, between the time when the access token was issued and the time when the access token will expire. |
| `token_type` | `string` The type of token. Field reserved for RFC compliance. See [Token Type](https://www.rfc-editor.org/rfc/rfc6749#section-5.1) |
| `scope` | `string` A list of scopes associated with the returned token. |
| `id_token` | `string` Google issued ID token in response to the OAuth token exchange request for ID token flow. |