Skip to main content
POST
/
user
/
2fa
/
verify
Verify 2FA code
curl --request POST \
  --url https://api.spike.ac/user/2fa/verify \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "code": "<string>"
}
'
{
  "success": true,
  "valid": true,
  "backupCodeUsed": true,
  "remainingBackupCodes": 123,
  "error": "<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 or backup code

Minimum string length: 1

Response

Verification result

success
boolean
required
valid
boolean
required
backupCodeUsed
boolean
remainingBackupCodes
number
error
string