What
Obtain the code snippets of the origin of the user passed as argument in the selected region. The purpose of this function is to help the user to integrate the javascript library in their website with a preconfigured script that contains the origin token.
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:
Result
The result is a JSON object with the following fields:
self: the URI to the request to obtain the full details of an origin.detection: code snippet to integrate into the website described in the origin to detect malicious activity.
Errors
- a
404 Not Founderror if the origin token 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.