What
Obtain the current status of the origin for a given IP address and/or cookie ID. The values can be correlated, but they are not required to be. The status will also describe the following information:
PASS: The traffic should not be intercepted, but should be analyzed and a positive detection should trigger a change in the status.BLOCK: The traffic must be intercepted and redirected to a blocking page. Only a timeout of the IP address or Cookie ID, a solved challenge or a manual status change can change the status.CHALLENGE: The traffic must be intercepted and redirected to a page where the user must solve a challenge. If the challenge is succesfully solved the status will change toPASS. If the user fails to change the challenge a specific amount of times, the status can change toBLOCK.BYPASS: The traffic should not be tapped even if it is suspected to be malicious, as long as the timeout has not expired. When the timeout is reached, it should revert to a previous state instead of going toPASS.IGNORE: Whatever happens to the traffic of the user, it should not be tapped. Once the time expires, it should return to the state PASS.
The origin is a combination of protocol and domain (Ex: ) and the origin token is a special key used in conjunction with javascript library used for abuse detection. This key is owned by the user and is used to identify the origin of the request. Hence, the protocol and domain of the origin must be the one where the javascript is loaded.
Parameters
In the querystring of the request, add the origin of the user to the query parameter with the following format:1. Protocol: Can be http or https.
2. Domain: The domain of the origin.
Then, the origin must be urlencoded. Example:
The querystring must be like this:
The body should have at least one of the following fields:
address: The IP address of the user to query.cookie_id: The ID of the tracking cookie of the user to query.
Result
The result is a JSON object with the following fields:
self: the URI to the request to obtain the full details of thecookie_idandaddressstatus of an origin.cookie_id: a JSON object with the following fields:cookie_id: the ID of the tracking cookie for the origin.status: the URI to the status detail of the cookie ID.log_id: (Optional) the ID of the log that triggered the change in the status of the origin.expiry: (Optional) the date and time when the origin status will expire in UNIX timestamp in milliseconds.created_at: (Optional) the date and time when the origin status was created in UNIX timestamp in milliseconds.updated_at: (Optional) the date and time when the origin status was last updated in UNIX timestamp in milliseconds.
address: a JSON object with the following fields:address: the address for the origin.status: the URI to the status detail of the cookie ID.log_id: (Optional) the ID of the log that triggered the change in the status of the origin.expiry: (Optional) the date and time when the origin status will expire in UNIX timestamp in milliseconds.created_at: (Optional) the date and time when the origin status was created in UNIX timestamp in milliseconds.updated_at: (Optional) the date and time when the origin status was last updated in UNIX timestamp in milliseconds.
Errors
- a
404 Not Founderror if the origin is not found. - a
400 Bad Requesterror if the origin does not have the correct format.
It will return the API Global errors described in the API description.