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

# Send Code for unified sign in.

`POST /us-signin/send-code`

## Request body

- UsSigninSendCode
  - `identity` string, required — Configured by SECURITY_USER_IDENTITY_ATTRIBUTES
  - `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.

---

[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)
