Get Password Exposure Stats
GET
/api/v1/password-exposure
const url = 'https://api.spartanauth.com/api/v1/password-exposure';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/password-exposureCounts passwords that are breached, clear, or not yet checked. A sector admin can read that sector. A tenant-root admin can omit sectorID to count every sector on the current tenant database. This does not open other tenants.
Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” sectorID
string
Empty counts every sector on the bound tenant database
Responses
Section titled “ Responses ”A successful response.
Media type application/json
object
withPassword
integer format: int32
pwned
integer format: int32
clear
integer format: int32
unchecked
not clear and not pwned, including unknown and never checked
integer format: int32
unknown
integer format: int32
Example generated
{ "withPassword": 1, "pwned": 1, "clear": 1, "unchecked": 1, "unknown": 1}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" } ]}