GET
/credentials/{id_or_name}/totp-codeReturns 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.
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
id_or_name*string
Credential ID or name
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/credentials/string/totp-code"{ "code": "string", "expires_at": "2019-08-24T14:15:22Z"}{ "code": "string", "message": "string", "details": [ { "code": "string", "message": "string" } ], "inner_error": { "code": "string", "message": "string" }}{ "code": "string", "message": "string", "details": [ { "code": "string", "message": "string" } ], "inner_error": { "code": "string", "message": "string" }}{ "code": "string", "message": "string", "details": [ { "code": "string", "message": "string" } ], "inner_error": { "code": "string", "message": "string" }}