Skip to content
Get Started

Secrets

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}