---
title: "Generate Kasada payload"
method: POST
path: "/payload"
---

# Generate Kasada payload

`POST /payload`

Generates a payload to be used in the `/tl` POST request

## Headers

- `Content-Type` 'application/json', required
- `x-api-key` string, required

## Request body

- object
  - `userAgent` string, required — The User-Agent string of the browser
  - `script` string, required — The script content as a string.
  - `ipsLink` string, required — The IPS link obtained from the Kasada block page
  - `acceptLanguage` string, required — Your accept-language header.
  - `ip` string, required — The IP that is used to post the sensor data to the target site. You can use /ip to get the IP from a connection. If you are not using proxies, this will be the IPv4 or IPv6 address of your pc.

## Response `200`

OK Payload successfully generated

- object
  - `headers` object
  - `payload` string — The generated Kasada protection payload

## Other responses

- `400` — Bad Request Error occurred
- `403` — Forbidden Authentication error

---

[API](https://skmtc.net/hypersolutions/apis/akm-sensor-data-and-pixel-payload-api.md) · [All operations](https://skmtc.net/hypersolutions/apis/akm-sensor-data-and-pixel-payload-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hypersolutions/akm-sensor-data-and-pixel-payload-api/versions/a4f8dd4657f6/schema)
