Skip to main content
POST
/
user
/
2fa
/
enable
Enable 2FA
curl --request POST \
  --url https://api.spike.ac/user/2fa/enable \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "code": "<string>"
}
'
{
  "success": true,
  "message": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://doc.spike.ac/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Authentication using either a Supabase JWT token or an API key (prefixed with sk_). Both token types are passed as Bearer tokens in the Authorization header.

Body

application/json
code
string
required

TOTP code from authenticator app

Required string length: 6
Pattern: ^\d+$

Response

2FA enabled successfully

success
boolean
required
message
string