BunShip supports TOTP-based two-factor authentication (2FA) using authenticator apps such as Google Authenticator, Authy, or 1Password. The setup flow has three steps: initiate setup, scan the QR code, then verify a code to activate.Documentation Index
Fetch the complete documentation index at: https://docs.bunship.com/llms.txt
Use this file to discover all available pages before exploring further.
Setup 2FA
Requires a valid Bearer token.
Request Body
Current account password to confirm identity.
Response
TOTP secret string for manual entry into the authenticator app.
Base64-encoded data URL of the QR code image.
One-time backup codes for account recovery if the authenticator device is lost.
Errors
| Status | Code | Description |
|---|---|---|
401 | AUTHENTICATION_ERROR | Invalid password |
409 | CONFLICT | 2FA is already enabled on this account |
Example
Verify and Enable 2FA
Requires a valid Bearer token.
Request Body
6-digit code from the authenticator app. Must be exactly 6 numeric digits.
Response
Confirmation message.
Errors
| Status | Code | Description |
|---|---|---|
401 | AUTHENTICATION_ERROR | Invalid TOTP code |
404 | NOT_FOUND | No pending 2FA setup found — call setup first |
409 | CONFLICT | 2FA is already active |
Example
Disable 2FA
Requires a valid Bearer token.
Request Body
Current account password.
Current 6-digit code from the authenticator app. Must be exactly 6 numeric digits.
Response
Confirmation message.
Errors
| Status | Code | Description |
|---|---|---|
400 | VALIDATION_ERROR | Invalid TOTP code |
401 | AUTHENTICATION_ERROR | Invalid password |
404 | NOT_FOUND | 2FA is not enabled on this account |

