> For the complete Lynkow documentation index in agent-friendly format, see [llms.txt](/llms.txt).

# Get a form by slug

**Published**: 2026-11-30
**Category**: Forms & Reviews

## `GET /forms/:slug`

**Get a form by slug**

Returns an active form by slug, with its field schema and settings,
so you can render it before posting to
`POST /forms/{slug}/submissions`. An unknown or inactive slug returns
404.

`recaptchaVersion` and `recaptchaSiteKey` describe this form's own
verification. When site-wide verification is active, read them from
`GET /spam-settings` instead.

Without `locale`, a multi-language site serves its default language.
With `locale`, the locale chain picks the translation, and
`fallback=false` returns 404 when the requested language has none.
Send the same `locale` and `fallback` when you submit.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `slug` | path | string | Yes | URL-friendly identifier, unique per site and locale |
| `locale` | query | string | No | Language of the form. Without a translation, the locale chain serves another one (`isFallback` true) unless `fallback=false`. |
| `fallback` | query | boolean (default true) | No | With `locale`, `false` returns 404 when the item is not translated into the requested locale. Single-language sites ignore it |


### Responses

| Status | Description |
| --- | --- |
| `200` | Successful response |
| `402` | The site subscription does not currently permit this operation |
| `404` | Not found |
| `422` | `fallback` is present and is not a boolean, with or without `locale`. `locale` itself never produces a 422. |


> **Notes:** Cache: `Cache-Control: no-store`. Rate-limit bucket: general.

### SDK

```typescript
import { createClient } from 'lynkow'

const lynkow = createClient({ siteId: process.env.LYNKOW_SITE_ID! })

const form = await lynkow.forms.getBySlug('contact')

// Each field's `id` is the key you submit its value under.
form.schema.fields.forEach(field => {
  console.log(field.id, field.type, field.label, field.required)
})
```

### Examples

```curl
curl "https://api.lynkow.com/storefront/{siteId}/forms/contact"
```

```javascript
const res = await fetch(`https://api.lynkow.com/storefront/${siteId}/forms/contact`)
const { data } = await res.json()
```

### Response Example

```json
{
  "data": {
    "id": "7c4b1f92-6d3a-4e58-9b21-0af5c8d37e64",
    "name": "Contact us",
    "slug": "contact",
    "description": "Reach the team about anything.",
    "schema": {
      "fields": [
        {
          "id": "email",
          "type": "email",
          "label": "Email",
          "required": true,
          "placeholder": "you@example.com"
        },
        {
          "id": "message",
          "type": "textarea",
          "label": "Message",
          "required": true,
          "validation": {
            "minLength": 10
          }
        }
      ],
      "settings": {
        "submitLabel": "Send",
        "successMessage": "Thanks, we got your message and will reply within 24 hours."
      },
      "conditions": []
    },
    "honeypotEnabled": true,
    "recaptchaEnabled": false,
    "recaptchaVersion": "v3",
    "recaptchaSiteKey": null,
    "status": "active",
    "locale": "en"
  }
}
```

---