Documentation Index
Fetch the complete documentation index at: https://mintlify.com/diced/zipline/llms.txt
Use this file to discover all available pages before exploring further.
TOTP (Time-based One-Time Password)
TOTP provides two-factor authentication using authenticator apps like Google Authenticator, Authy, or 1Password.Get TOTP Status
GET /api/user/mfa/totp
Check if TOTP is enabled and generate setup credentials if needed.
Request
Response (TOTP Not Enabled)
If you haven’t set up TOTP yet:Base32-encoded secret key to enter manually
Data URL containing QR code image for scanning
Example Response
Response (TOTP Already Enabled)
If TOTP is already configured:Enable TOTP
POST /api/user/mfa/totp
Verify and activate TOTP authentication.
Request
6-digit verification code from your authenticator app
The secret key returned from GET
/api/user/mfa/totpResponse
Returns the updated user object with TOTP enabled.Errors
- 400 Bad Request: Invalid verification code or TOTP disabled on server
Disable TOTP
DELETE /api/user/mfa/totp
Remove TOTP authentication from your account.
Request
Current 6-digit TOTP code to confirm removal
Response
Returns the updated user object with TOTP disabled.Errors
- 400 Bad Request: Invalid code, TOTP not enabled, or TOTP disabled on server
Passkeys (WebAuthn)
Passkeys provide passwordless authentication using biometrics, security keys, or device authentication.List Passkeys
GET /api/user/mfa/passkey
Get all registered passkeys for your account.
Request
Response
Returns an array of passkey objects (without sensitive registration data).Example Response
Get Registration Options
GET /api/user/mfa/passkey/options
Generate WebAuthn registration options for creating a new passkey.
Request
Response
Returns WebAuthnPublicKeyCredentialCreationOptions for the browser’s navigator.credentials.create() API.
Example Response
Registration options are cached for 3 minutes. Requesting options again within this period returns the same challenge.
Rate Limiting
This endpoint is rate-limited to 1 request per second.Register Passkey
POST /api/user/mfa/passkey
Complete passkey registration with the WebAuthn credential.
Request
WebAuthn
RegistrationResponseJSON from navigator.credentials.create()Friendly name for this passkey (e.g., “YubiKey 5C”, “iPhone 15”)
Response
Returns the updated user object.Errors
- 400 Bad Request: Invalid registration response, expired challenge, or verification failed
- 429 Too Many Requests: Rate limit exceeded (1 request per second)
Delete Passkey
DELETE /api/user/mfa/passkey
Remove a registered passkey from your account.
Request
ID of the passkey to delete