List authenticator registrations
GET
/api/v1/totp/{username}
const url = 'https://api.spartanauth.com/api/v1/totp/example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.spartanauth.com/api/v1/totp/exampleLists authenticator-app registrations. A bearer token selects the token subject. A logged-out login screen can pass username and sectorID. The secret is never included.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” username
required
string
Query Parameters
Section titled “Query Parameters ” sectorID
string
Responses
Section titled “ Responses ”A successful response.
Media type application/json
object
registrations
Array<object>
object
ID
string
DisplayName
string
Validated
boolean
Example generated
{ "registrations": [ { "ID": "example", "DisplayName": "example", "Validated": true } ]}default
Section titled “default ”An unexpected error response.
Media type application/json
object
code
integer format: int32
message
string
details
Array<object>
object
@type
string
key
additional properties
Example generated
{ "code": 1, "message": "example", "details": [ { "@type": "example" } ]}