v97

latestOpenAPI 3.1.0raw.githubusercontent.com2026-07-31135175384.2 KB
Credentials

Generate TOTP code

Returns the current 6-digit TOTP code for a credential with a configured totp_secret. Use this to complete 2FA setup on sites or when you need a fresh code.

get/credentials/{id_or_name}/totp-code

Path parameters

id_or_namestring required

Credential ID or name

Response

TOTP code generated successfully

codestring required

Current 6-digit TOTP code

expires_atstring date-time required

When this code expires (ISO 8601 timestamp)

Example response

{
  "code": "847291",
  "expires_at": "2025-01-15T10:30:30Z"
}