---
title: "Submit 2FA"
method: PUT
path: "/api/authenticate/{attempt_id}"
tags: ["Connect OnlyFans Account"]
---

# Submit 2FA

`PUT /api/authenticate/{attempt_id}`

Submit the 2FA code, or Selfie Verification status, for the authentication process.

## Request body

- object
  - `code` string — The 2FA code you received on your phone. Must be empty if `selfie_verification_completed` is `true`.
  - `selfie_verification_completed` boolean — This field is required when <code>code</code> is not present.

## Response `200`

- object
  - `message` string

---

[API](https://skmtc.net/onlyfansapi/apis/onlyfans-api.md) · [All operations](https://skmtc.net/onlyfansapi/apis/onlyfans-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/onlyfansapi/onlyfans-api/revisions/4a99d36f28a3/schema)
