action threatjammer_query_origin_scripts_v1_origin_scripts_get { label: "Get the code snippets of an origin of the user in the region." description: "### What\nObtain 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.\n\n### Parameters\nIn 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``.\n2. Domain: The domain of the origin.\n\nThen, the origin must be urlencoded. Example:\n```\nhttps://example.com\n```\n\n```\nhttps%3A%2F%2Fexample.com\n```\n\nThe querystring must be like this:\n```\n?query=https%3A%2F%2Fexample.com\n```\n\n### Result\nThe result is a JSON object with the following fields:\n- ``self``: the URI to the request to obtain the full details of an origin.\n- ``detection``: code snippet to integrate into the website described in the origin to detect malicious activity.\n\n### Errors\n- a `404 Not Found` error if the origin token is not found.\n- a `400 Bad Request` error if the origin does not have the correct format.\n\nIt will return the API Global errors described in the API description." provider: threatjammer method: GET path: "/v1/origin/scripts" encoding: json input: { type: "object" properties: { query: { type: "string" description: "The origin site to query" } } required: ["query"] additionalProperties: false } output: { type: "object" required: ["detection", "self"] properties: { detection: { type: "string" } self: { type: "string" } } } }