OnlyFans API icon

OnlyFans API

Consume the OnlyFans API

Actions147

Connect OnlyFans Account → Submit 2FA

AI-generated

Summary

Submit a two-factor authentication (2FA) code along with its associated attempt ID to authenticate an OnlyFans account connection.

Inputs

  • The Attempt ID (required) — The unique identifier for the current authentication attempt.
  • The 2FA Code You Received on Your Phone (required) — The 2FA code sent to your phone to verify identity.

Output shape

a single JSON object representing the result of the 2FA submission attempt

The output includes the API response to the 2FA submission; errors during execution return an error message object if 'continueOnFail' is enabled.

Examples

Example 1: Submit 2FA with valid attempt ID and code

Provide 'attempt_id' as the attempt identifier and 'code' as the received 2FA code in string format.

Discussion