List all stored TOTP secrets for the account. The encrypted secret values are never returned.
List TOTP secrets
import os
from sendblue_api import SendblueAPI
client = SendblueAPI(
api_key=os.environ.get("SENDBLUE_API_API_KEY"), # This is the default and can be omitted
api_secret=os.environ.get("SENDBLUE_API_API_SECRET"), # This is the default and can be omitted
)
secrets = client.v2.totp.secrets.list()
print(secrets.status){
"status": "OK",
"totp_secrets": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"algorithm": "SHA1",
"created_at": "2026-04-05T12:00:00Z",
"digits": 6,
"issuer": "GitHub",
"label": "GitHub - [email protected]",
"period": 30,
"secret": "JBSWY3DPEHPK3PXP"
}
]
}Returns Examples
{
"status": "OK",
"totp_secrets": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"algorithm": "SHA1",
"created_at": "2026-04-05T12:00:00Z",
"digits": 6,
"issuer": "GitHub",
"label": "GitHub - [email protected]",
"period": 30,
"secret": "JBSWY3DPEHPK3PXP"
}
]
}