---
title: "Send Code for unified sign in verify."
method: POST
path: "/us-verify/send-code"
---

# Send Code for unified sign in verify.

`POST /us-verify/send-code`

## Request body

- UsSigninVerifySendCode
  - `chosen_method` string, required — which method should be used to send the code, as configured with SECURITY_US_ENABLED_METHODS

## Response `200`

Send code response

- DefaultJsonResponse
  - `meta` object, required
    - `code` integer, required — Http status code
  - `response` object, required
    - `user` object — By default an empty dictionary is returned. However by overriding _User::get_security_payload()_ any attributes of the User model can be returned.
    - `csrf_token` string — Session CSRF token

## Other responses

- `400` — Errors while validating attributes.
- `500` — Error when trying to send code.

## Changes

- **2024-05-19** `b2c59e839c03` — 1 info
  - added `#/components/schemas/BaseJsonResponse, subschema #2` to the response body `allOf` list for the response status `200`
- **2023-10-22** `b647a0e917e6` — 2 breaking, 6 info
  - the response's body type/format changed from ``/`` to `object`/`` for status `400`
  - the response's body type/format changed from ``/`` to `object`/`` for status `500`
  - removed `#/components/schemas/BaseJsonResponse, subschema #2` from the response body `allOf` list for the response status `400`
  - removed `#/components/schemas/BaseJsonResponse, subschema #2` from the response body `allOf` list for the response status `500`
  - …4 more
- **2022-07-22** `4b3ea48a957a` — 2 breaking, 4 warning, 4 info
  - the `allOf[subschema #2]/response/errors` response's property type/format changed from `object`/`` to `array`/`` for status `400`
  - the `allOf[subschema #2]/response/errors` response's property type/format changed from `object`/`` to `array`/`` for status `500`
  - removed the optional property `allOf[subschema #2]/response/error` from the response with the `400` status
  - removed the optional property `allOf[subschema #2]/response/error` from the response with the `500` status
  - …6 more
- …earlier changes not shown

[Full history](https://skmtc.dev/pallets-eco/apis/flask-security-external-api/changes/us-verify/send-code/post.md)

---

[API](https://skmtc.dev/pallets-eco/apis/flask-security-external-api.md) · [All operations](https://skmtc.dev/pallets-eco/apis/flask-security-external-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pallets-eco/flask-security-external-api/revisions/ee92f388dafa/schema)
