---
title: "POST /2fa/setup-method"
method: POST
path: "/2fa/setup-method"
tags: ["twoFactorAuth"]
---

# POST /2fa/setup-method

`POST /2fa/setup-method`

## Request

- Base URL: `https://api.outdoorsy.com/v0`
- URL: `https://api.outdoorsy.com/v0/2fa/setup-method`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `API-Key`
- TypeScript: <https://skmtc.dev/outdoorsy/apis/outdoorsy-api-documentation/docs/2fa/setup-method/post.ts> (a function with typed inputs; its response is checked against the schema)

Setup preferred method

## Request body

- TwoFASetupMethod
  - `preferred_2fa_method` string
  - `session_id_2fa` string

## Response `201`

## Other responses

- `400`: Invalid input or state means you're bad
- `401`: Unauthorized error

---

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