---
title: "POST /user/totp"
method: POST
path: "/user/totp"
tags: ["users"]
---

# POST /user/totp

`POST /user/totp`

Set up MFA for the current user

## Response `200`

Response

- object
  - `url` string, required
  - `secret` string, required

## Other responses

- `400` — Bad request
- `401` — Requires authentication
- `403` — Forbidden
- `404` — Resource not found
- `405` — Method not allowed
- `422` — UnprocessableEntity
- `500` — Internal Error

---

[API](https://skmtc.dev/cloudquery/apis/cloudquery-openapi-spec.md) · [All operations](https://skmtc.dev/cloudquery/apis/cloudquery-openapi-spec/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cloudquery/cloudquery-openapi-spec/revisions/ef9782a3ed5e/schema)
