Credential Intelligence API
- 18 Sep 2023
- Print
- DarkLight
Credential Intelligence API
- Updated on 18 Sep 2023
- Print
- DarkLight
Article Summary
Share feedback
Thanks for sharing your feedback!
This API provides a quick analysis of whether the credentials are flagged by Credential Intelligence collection as compromised or not via a RESTful service.
Authentication
TO access the Feedback API:
- Generate a valid authentication token as explained in Setting up your Application.
- Paste the authentication token into the HTTP Authorization header.
Authorization: Bearer <TOKEN>
Endpoint
HTTP Method | Request URL |
---|---|
POST | sapi-<appid>.perimeterx.net/api/v1/is_compromised |
Request Schema
Parameter | Type | Value | Required/Optional |
---|---|---|---|
appId | String | Application ID | Required |
credentials | String | *A hashed, salted, and normalized version of the credential pair | Required |
* Contact us to get the normalization and hashing code
Example
{
"appId": "PXD0RD8T1a",
"credentials": "de2765c384f9304585d06259d96610fe4de3ca7e883e8941dca241b76dce83cc"
}
Response Schema
Code | Response | Description |
---|---|---|
True | 200 | The credentials were detected as compromised by Credential Intelligence |
False | 200 | The credentials were not detected as compromised by Credential Intelligence |
Null | 500 | Internal error. Contact support if the error persists |
Null | 401 | Non-authorized. Check the JWT validation and make sure this is the JWT belongs to the correct app ID. |
Null | 429 | The rate limit is exceeded. To increase the rate limit, contact support |
Example
{
"compromised": "false",
}
Was this article helpful?