# Where Google sends the browser back

> Page: https://docs.plotwork.dev/api/get-storage-google-callback. Index of every page: https://docs.plotwork.dev/llms.txt

Checks the state, keeps the access Google gave, and redirects to the portal’s storage page, with an error word when it did not work.

`GET /storage/google/callback`

## TL;DR

| Question | Answer |
|---|---|
| What does it do? | Where Google sends the browser back. |
| What does it take? | `code`, `state`, `error` in the query string. |
| What does it return? | Status 200 with no body. |
| What can go wrong? | `302` to the portal; `401` not signed in; `503` this server has no portal address. Every failure uses the one error envelope. |

## What it does

Checks the state, keeps the access Google gave, and redirects to the portal’s storage page, with an error word when it did not work.

## Query parameters

| Field | Type | Required | Description |
|---|---|---|---|
| `code` | `string` | no |  |
| `state` | `string` | no |  |
| `error` | `string` | no |  |

## Responses

| Status | Meaning | Body |
|---|---|---|
| 302 | To the portal. | none |
| 401 | Not signed in. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 503 | This server has no portal address. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |

## See also

| Doc | Why |
|---|---|
| [API reference](https://docs.plotwork.dev/api/reference.md) | Every endpoint, and the error envelope |
| [Schemas](https://docs.plotwork.dev/api/schemas.md) | Every request and response type |
| [Tool reference](https://docs.plotwork.dev/mcp/tools.md) | The operations as callable tools |
