---
title: "Validate passcode sent and store setup method."
method: POST
path: "/us-setup/{token}"
---

# Validate passcode sent and store setup method.

`POST /us-setup/{token}`

## Request body

- UsSetupValidateRequest
  - `passcode` string, required — Code/Passcode as received from method being setup.

## Response `200`

Successfully validated and persisted sign in method.

- UsSetupValidateJsonResponse
  - `meta` object, required
    - `code` integer, required — Http status code
  - `response` object, required
    - `chosen_method` string — The chosen_method as passed into API.
    - `phone` string — Phone number if set.

## Other responses

- `302` — Redirect based on success or failure.
- `400` — Failed - bad code, expired token, bad token.

---

[API](https://skmtc.net/pallets-eco/apis/flask-security-external-api.md) · [All operations](https://skmtc.net/pallets-eco/apis/flask-security-external-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pallets-eco/flask-security-external-api/versions/5ee7c28d6e1e/schema)
