In order to make queries on your user's behalf you must have them authenticate with IPQualityScore. This can be as simple as sending them to a URL on our site (via link or iframe) and then storing the key they return with once they've finished logging in.
Using our integration system requires us to setup a special landing page for you on our site. We refer to this landing page as the "base URL" elsewhere in the documentation. If you have not done so already please contact the IPQualityScore support team by clicking here to get your base URL.
Below is the order in which users should end up authenticating with IPQualityScore.
Below is an example of what an authentication url should look like. Your parameters may be different or you may not need any parameters at all dependant on your use case. Be sure to replace ExampleIntegration with your integration.
In the example above the user will be redirected back to https://example.com/ipq/finishPossible Parameters
|The domain the user will be sent back to. (Note: If this parameter is not specified the user will be sent back to the referring domain.) This parameter is used in future API calls as the "key". Be sure to store this information somewhere as it is required to make API calls.
|The path on your domain the user will be sent back to upon successful login. This is the path that should capture the user's unique secret. (Note: This parameter must be URL encoded.) Do NOT include GET parameters in this path.
|The path on your domain the user will be sent back to on failure to login. (Note: This parameter must be URL encoded.)
|A fallback path in the event your success/failure paths are not passed or you wish for success and failure to end up at the same path. (Note: This parameter must be URL encoded.)
|The protocol the user will be sent back to on success/failure. Possible values: http or https. Failure to provide this parameter will default to the referring url's protocol. NOTE: https is strongly encouraged.
Additional GET parameters passed to this API end point will be returned to the success URL. Do not put them in success_path or append them on to your domain. Our system will automatically forward them to you. Notice: You can not name your custom parameters: email, password, domain, success_path, failure_path, path, protocol, secret, access_token, status or state. They will be ignored or stripped by our system.
When the user returns to your success path they should return with the GET parameters listed below.
|secret, access_token and code
|The authentication secret used by future API requests for the user in question.
|The status of the request: auth_success or auth_failure
|Optional pass through parameter to allow for CSRF prevention.
It is strongly encouraged that you call refresh after receiving your secret API key to ensure that even if your user's browsing history is compromised you have a unique API secret.