---
title: "The page's session, rotated from its http-only cookie"
method: POST
path: "/v1/auth/page/refresh"
tags: ["auth"]
---

# The page's session, rotated from its http-only cookie

`POST /v1/auth/page/refresh`

## Request

- Base URL: `https://api.sixminute.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sixminute.ai/v1/auth/page/refresh`
- Auth: none declared

Spends the refresh token in the cookie once and sets the rotated one. Requires X-Six-Minute-Page: 1 from an allowed Origin; no cookie or a refused token is a 401.

## Request body

- object
  - `organization_id` string, nullable

## Response `200`

The session without its refresh token, which is in the http-only cookie.

- object
  - `access_token` string, required
  - `organization_id` string, nullable
  - `user` object, required
    - `id` string, required
    - `email` string, required
    - `first_name` string, nullable
    - `last_name` string, nullable

## Other responses

- `400`: The body, query or path did not validate; `errors` lists the fields.
- `401`: No bearer token, or one that does not verify or has expired.
- `403`: The token verified but may not do this: no organisation, not provisioned, wrong role, or a device problem.
- `429`: Too many requests; `Retry-After` says how long to wait.
- `502`: An upstream this service depends on failed or answered nonsense.

---

[API](https://skmtc.dev/sixminute/apis/sixminute-api.md) - [All operations](https://skmtc.dev/sixminute/apis/sixminute-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sixminute/apis/sixminute-api/revisions/605577eadc10?raw)
