> For the complete documentation index, see [llms.txt](https://docs.takionapi.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.takionapi.tech/nudata/api.md).

# Bypass Solution

## **How the Solution Works**

1. **Find the sensor script.** Identify the NuData script URL the page loads, for example `https://nudata.ticketmaster.com/2.2/w/w-481390/sync/js/` , `https://fc.kohls.com/2.2/w/w-756138/sync/js/ , https://src.mastercard.com/nudetect/2.2/w/w-802323/sync/js/`&#x20;
2. **Generate with one call.** Send that URL to the Takion NuData endpoint. We load the site's NuData settings, generate a valid payload server-side, and return `result` plus `input_name`.
3. **Attach and send.** Put the payload on your own login or checkout request under `input_name` (usually `nds-pmd`) and continue as normal. No browser runs on your side at any point.

### Endpoint <a href="#endpoint" id="endpoint"></a>

The endpoint lives on the Castle subdomain:

```
https://nudata.takionapi.tech/generate
```

## Generate a NuData payload

> Generates the NuData behavioral payload for the target. \`url\` and \`session\_id\` are query parameters; the simulated actions, cookies, proxy and checkout options go in the JSON body. GET also works (with the default login actions). Login mode is session-based — the first call returns a \`session\_id\`; send it back to continue. Checkout mode (\`checkout: true\`) costs 2 requests instead of 1.<br>

```json
{"openapi":"3.0.3","info":{"title":"Takion API — NuData","version":"1.0.0"},"servers":[{"url":"https://nudata.takionapi.tech"}],"security":[{"ApiKeyHeader":[]},{"ApiKeyQuery":[]}],"components":{"securitySchemes":{"ApiKeyHeader":{"type":"apiKey","in":"header","name":"x-api-key"},"ApiKeyQuery":{"type":"apiKey","in":"query","name":"api_key"}},"schemas":{"GenerateBody":{"type":"object","description":"Optional JSON body. Omit it for a GET-style call with the default login actions.\n","properties":{"actions":{"type":"array","description":"The user actions to simulate. Defaults to a password input + sign-in button when omitted.\n","items":{"type":"object","properties":{"type":{"type":"string","enum":["input","button"]},"name":{"type":"string"},"value_length":{"type":"integer","description":"For `input` actions — how many characters were typed."}},"additionalProperties":true}},"checkout":{"type":"boolean","description":"Generate a checkout payload instead of a login one (costs 2 requests)."},"click_targets":{"type":"array","description":"Checkout mode — the elements to click.","items":{"type":"string"}},"cookies":{"type":"object","description":"Client cookies for the init flow (optional).","additionalProperties":{"type":"string"}},"proxy":{"type":"string","description":"Proxy for the init flow (optional)."}},"additionalProperties":true},"GenerateResponse":{"type":"object","properties":{"session_id":{"type":"string","description":"Login mode — reuse this on the follow-up call to continue the same session.\n"}},"additionalProperties":true},"Error":{"type":"object","required":["error"],"description":"Every error is a JSON object with a single `error` string. Missing/invalid input or an expired session returns 400, auth/quota 401, and a generation or unexpected failure returns 500.\n","properties":{"error":{"type":"string"}}}},"responses":{"Unauthorized":{"description":"Authentication or quota failure — HTTP 401 with an `error` message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/generate":{"post":{"operationId":"generateNudata","summary":"Generate a NuData payload","description":"Generates the NuData behavioral payload for the target. `url` and `session_id` are query parameters; the simulated actions, cookies, proxy and checkout options go in the JSON body. GET also works (with the default login actions). Login mode is session-based — the first call returns a `session_id`; send it back to continue. Checkout mode (`checkout: true`) costs 2 requests instead of 1.\n","parameters":[{"name":"url","in":"query","required":true,"description":"The NuData script URL of the target.","schema":{"type":"string","format":"uri"}},{"name":"session_id","in":"query","required":false,"description":"The `session_id` from a previous login call, to continue the same session (login mode only).\n","schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateBody"}}}},"responses":{"200":{"description":"The generated payload. In login mode the response carries a `session_id` to reuse on the follow-up call.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateResponse"}}}},"400":{"description":"Missing/invalid input or an expired/invalid session.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"500":{"description":"Generation failed, or an unexpected error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}
```
