Skip to main content
POST
/
user
/
2fa
/
setup
Set up 2FA
curl --request POST \
  --url https://api.spike.ac/user/2fa/setup \
  --header 'Authorization: Bearer <token>'
{
  "secret": "<string>",
  "otpauthUrl": "<string>",
  "backupCodes": [
    "<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.

Response

2FA setup information

secret
string
required
otpauthUrl
string
required
backupCodes
string[]
required