Submit a form

Submits to the form translation that `GET /forms/{slug}` serves for the same `locale` and `fallback`. Send values in `data`, keyed by field id. A `checkbox` or `select` field also takes an array, and a `tel` field a `{ countryCode, number }` object. With honeypot on, also send an empty `_hp` and `_ts`, the display time in Unix milliseconds. With reCAPTCHA, send `recaptchaToken`. A failed field returns 422 with `field`, a `VALIDATION_FIELD_*` code and `params`. A closed form returns 400 `RESOURCE_LOCKED`, a failed verification 400 `SPAM_RECAPTCHA_FAILED`, a `requireAuth` form without a customer `Authorization: Bearer` token 401 `CUSTOMER_AUTH_REQUIRED`, and an unknown slug 404.

Required access
No credentialOptional: publishable key, customer session tokenSite access
POST/forms/{slug}/submissions
Base URLhttps://api.lynkow.com/storefront/{siteId}

Path parameters

slug
string
required

URL-friendly identifier, unique per site and locale

Request body
required

  • data
    object
    required

    Required. Resource data object

    • _hp
      string

      Spam-trap field that must remain empty when the site uses honeypot protection.

    • _ts
      integer

      Form-load Unix timestamp in milliseconds when the site uses honeypot protection.

    • honeypot
      string

      Spam-trap field that must remain empty; a filled value causes silent rejection

    • locale
      string

      Form translation to submit, such as `en` or `pt-BR`. Served through the locale chain unless `fallback=false`.

    • recaptchaToken
      string

      Token for the site or form verification. v3 needs action `form_submit`. Each token works once.

    • session_id
      string

      Analytics session UUID. UUID format

    • visitor_id
      string

      8-64 characters

    Feedback

    Was this page helpful?