> ## Documentation Index
> Fetch the complete documentation index at: https://docs.raykoi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# JavaScript / Fetch

> Raw fetch, for a genuinely dependency-free environment.

For a genuinely dependency-free environment only. If npm is available, prefer [Node.js](/integrations/nodejs) or a framework adapter instead — `@raykoi/sdk`'s `client.form(id).submit()` already does this internally, plus CAPTCHA, retries, and idempotency.

```javascript theme={null}
const response = await fetch(
  "https://api.raykoi.com/api/v1/submit/p/YOUR_PUBLIC_ID",
  {
    method: "POST",
    headers: { "Content-Type": "application/json" },
    body: JSON.stringify({
      data: { email: "user@example.com", name: "Alice" }
    })
  }
);

const result = await response.json();
```

See [Submissions](/essentials/submissions) for the full response shape and error codes.
