V2
V2Totp
Store and retrieve TOTP codes for agent 2FA (authenticator app replacement)
Get current TOTP code
client.v2.totp.getCode(stringsecretID, RequestOptionsoptions?): TotpGetCodeResponse { code, expires_in, status }
GET/api/v2/totp/code/{secret_id}
V2TotpSecrets
Store and retrieve TOTP codes for agent 2FA (authenticator app replacement)
Register a TOTP secret
client.v2.totp.secrets.create(SecretCreateParams { algorithm, digits, issuer, 4 more } body, RequestOptionsoptions?): SecretCreateResponse { status, totp_secret }
POST/api/v2/totp/secrets
List TOTP secrets
client.v2.totp.secrets.list(RequestOptionsoptions?): SecretListResponse { status, totp_secrets }
GET/api/v2/totp/secrets
Delete a TOTP secret
client.v2.totp.secrets.delete(stringsecretID, RequestOptionsoptions?): SecretDeleteResponse { status }
DELETE/api/v2/totp/secrets/{secret_id}