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

# Get Saved Form Embed

> Get client-safe embed recipes for a published saved form

Return the public action URL, hosted JavaScript, minimal native form, and fetch
enhancement for a saved form owned by your selected workspace.

<ParamField path="formId" type="string" required>
  Saved form ID.
</ParamField>

```bash theme={null}
curl "https://api.sequenzy.com/api/v1/forms/embed/form_123" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

## Responses

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true,
    "form": {
      "id": "form_123",
      "name": "Blog newsletter",
      "status": "published"
    },
    "embed": {
      "actionUrl": "https://api.sequenzy.com/api/v1/forms/form_123",
      "scriptUrl": "https://api.sequenzy.com/api/v1/forms/form_123/embed.js",
      "javascript": "<script async src=\"https://api.sequenzy.com/api/v1/forms/form_123/embed.js\"></script>",
      "nativeForm": "<form id=\"sequenzy-signup\" action=\"https://api.sequenzy.com/api/v1/forms/form_123\" method=\"post\">...</form>",
      "fetch": "const form = document.querySelector(\"#sequenzy-signup\"); ...",
      "supportedPlatforms": ["Astro", "Hugo", "Jekyll", "Cloudflare Pages", "Netlify", "GitHub Pages"]
    }
  }
  ```

  ```json 400 theme={null}
  { "error": "Publish the form before requesting public embed code." }
  ```

  ```json 401 theme={null}
  {
    "error": "Missing API key. Provide via x-api-key header or Authorization: Bearer <key>"
  }
  ```

  ```json 403 theme={null}
  { "error": "API key is missing required scope: widgets:read" }
  ```

  ```json 404 theme={null}
  { "error": "Form not found" }
  ```
</ResponseExample>
