Forms API

These are the Forms endpoints of the Keila API. For Keila Cloud, the base URL is https://app.keila.io.

All endpoints, unless stated differently, require Bearer authentication.

A form is a hosted sign-up form. It collects an email address and other fields from visitors and turns each submission into a contact. Forms can be configured with double opt-in confirmation and a welcome message.

get /api/v1/forms

Index forms

Retrieve all forms from your project.

Responses

200 Form response

  • data object[]
    • double_opt_in_email object

      Double opt-in email. Only sent when settings.double_opt_in_required is true. A localized default email is sent when set to null. If defined, subject and the text_body of a Markdown email may still be left empty to use localized default content. A custom body must link to {{ double_opt_in_link }} so that contacts can confirm their subscription, e.g. [Confirm subscription]({{ double_opt_in_link }}) in Markdown.

    • fields object[]

      Fields of the form. Must include an email field with cast and required set to true.

    • id string

      Form ID

      Example: "frm_12345"

    • name string

      Example: "My Form"

    • sender_id string

      Example: "ms_12345"

    • settings object
    • welcome_email object

      Welcome email. Only sent when settings.welcome_enabled is true. A localized default email is sent when set to null. If defined, subject and the text_body of a Markdown email may still be left empty to use localized default content.

  • meta object
post /api/v1/forms

Create Form

Request body

  • data object
    • double_opt_in_email object

      Double opt-in email. Only sent when settings.double_opt_in_required is true. A localized default email is sent when set to null. If defined, subject and the text_body of a Markdown email may still be left empty to use localized default content. A custom body must link to {{ double_opt_in_link }} so that contacts can confirm their subscription, e.g. [Confirm subscription]({{ double_opt_in_link }}) in Markdown.

    • fields object[] required

      Fields of the form. Must include an email field with cast and required set to true.

    • name string required

      Example: "My Form"

    • sender_id string

      Example: "ms_12345"

    • settings object
    • welcome_email object

      Welcome email. Only sent when settings.welcome_enabled is true. A localized default email is sent when set to null. If defined, subject and the text_body of a Markdown email may still be left empty to use localized default content.

Responses

200 Form response

  • data object
    • double_opt_in_email object

      Double opt-in email. Only sent when settings.double_opt_in_required is true. A localized default email is sent when set to null. If defined, subject and the text_body of a Markdown email may still be left empty to use localized default content. A custom body must link to {{ double_opt_in_link }} so that contacts can confirm their subscription, e.g. [Confirm subscription]({{ double_opt_in_link }}) in Markdown.

    • fields object[]

      Fields of the form. Must include an email field with cast and required set to true.

    • id string

      Form ID

      Example: "frm_12345"

    • name string

      Example: "My Form"

    • sender_id string

      Example: "ms_12345"

    • settings object
    • welcome_email object

      Welcome email. Only sent when settings.welcome_enabled is true. A localized default email is sent when set to null. If defined, subject and the text_body of a Markdown email may still be left empty to use localized default content.

get /api/v1/forms/{id}

Show Form

Parameters

Name In Type Required Description
id path string yes Form ID

Responses

200 Form response

  • data object
    • double_opt_in_email object

      Double opt-in email. Only sent when settings.double_opt_in_required is true. A localized default email is sent when set to null. If defined, subject and the text_body of a Markdown email may still be left empty to use localized default content. A custom body must link to {{ double_opt_in_link }} so that contacts can confirm their subscription, e.g. [Confirm subscription]({{ double_opt_in_link }}) in Markdown.

    • fields object[]

      Fields of the form. Must include an email field with cast and required set to true.

    • id string

      Form ID

      Example: "frm_12345"

    • name string

      Example: "My Form"

    • sender_id string

      Example: "ms_12345"

    • settings object
    • welcome_email object

      Welcome email. Only sent when settings.welcome_enabled is true. A localized default email is sent when set to null. If defined, subject and the text_body of a Markdown email may still be left empty to use localized default content.

put /api/v1/forms/{id}

Update Form

Parameters

Name In Type Required Description
id path string yes Form ID

Request body

  • data object
    • double_opt_in_email object

      Double opt-in email. Only sent when settings.double_opt_in_required is true. A localized default email is sent when set to null. If defined, subject and the text_body of a Markdown email may still be left empty to use localized default content. A custom body must link to {{ double_opt_in_link }} so that contacts can confirm their subscription, e.g. [Confirm subscription]({{ double_opt_in_link }}) in Markdown.

    • fields object[]

      Fields of the form. Must include an email field with cast and required set to true.

    • name string

      Example: "My Form"

    • sender_id string

      Example: "ms_12345"

    • settings object
    • welcome_email object

      Welcome email. Only sent when settings.welcome_enabled is true. A localized default email is sent when set to null. If defined, subject and the text_body of a Markdown email may still be left empty to use localized default content.

Responses

200 Form response

  • data object
    • double_opt_in_email object

      Double opt-in email. Only sent when settings.double_opt_in_required is true. A localized default email is sent when set to null. If defined, subject and the text_body of a Markdown email may still be left empty to use localized default content. A custom body must link to {{ double_opt_in_link }} so that contacts can confirm their subscription, e.g. [Confirm subscription]({{ double_opt_in_link }}) in Markdown.

    • fields object[]

      Fields of the form. Must include an email field with cast and required set to true.

    • id string

      Form ID

      Example: "frm_12345"

    • name string

      Example: "My Form"

    • sender_id string

      Example: "ms_12345"

    • settings object
    • welcome_email object

      Welcome email. Only sent when settings.welcome_enabled is true. A localized default email is sent when set to null. If defined, subject and the text_body of a Markdown email may still be left empty to use localized default content.

patch /api/v1/forms/{id}

Update Form

Parameters

Name In Type Required Description
id path string yes Form ID

Request body

  • data object
    • double_opt_in_email object

      Double opt-in email. Only sent when settings.double_opt_in_required is true. A localized default email is sent when set to null. If defined, subject and the text_body of a Markdown email may still be left empty to use localized default content. A custom body must link to {{ double_opt_in_link }} so that contacts can confirm their subscription, e.g. [Confirm subscription]({{ double_opt_in_link }}) in Markdown.

    • fields object[]

      Fields of the form. Must include an email field with cast and required set to true.

    • name string

      Example: "My Form"

    • sender_id string

      Example: "ms_12345"

    • settings object
    • welcome_email object

      Welcome email. Only sent when settings.welcome_enabled is true. A localized default email is sent when set to null. If defined, subject and the text_body of a Markdown email may still be left empty to use localized default content.

Responses

200 Form response

  • data object
    • double_opt_in_email object

      Double opt-in email. Only sent when settings.double_opt_in_required is true. A localized default email is sent when set to null. If defined, subject and the text_body of a Markdown email may still be left empty to use localized default content. A custom body must link to {{ double_opt_in_link }} so that contacts can confirm their subscription, e.g. [Confirm subscription]({{ double_opt_in_link }}) in Markdown.

    • fields object[]

      Fields of the form. Must include an email field with cast and required set to true.

    • id string

      Form ID

      Example: "frm_12345"

    • name string

      Example: "My Form"

    • sender_id string

      Example: "ms_12345"

    • settings object
    • welcome_email object

      Welcome email. Only sent when settings.welcome_enabled is true. A localized default email is sent when set to null. If defined, subject and the text_body of a Markdown email may still be left empty to use localized default content.

delete /api/v1/forms/{id}

Delete Form

Parameters

Name In Type Required Description
id path string yes Form ID

Responses

204 Form was deleted successfully or didn’t exist.

post /api/v1/forms/{id}/actions/submit

Submit Form

Submits a form. This is particularly useful if you want to start the Double-Opt-In process from the API or want to take advantage of the validation of custom fields provided by forms.

Note: Even if captcha_required is set to true, submitting a Form from the API never requires a CAPTCHA.

Parameters

Name In Type Required Description
id path string yes Campaign ID

Request body

  • data object
    • data object

      Custom data fields

      Example: {"city":"Munich","interests":["chess","books"]}

    • email string required

      Example: "jane.doe@example.com"

    • external_id string

      Example: "abc-123"

    • first_name string

      Example: "Jane"

    • last_name string

      Example: "Doe"

    • status "active" | "unsubscribed" | "unreachable"

      Example: "active"

Responses

200 Contact response

  • data object
    • data object

      Custom data fields

      Example: {"city":"Munich","interests":["chess","books"]}

    • email string

      Example: "jane.doe@example.com"

    • external_id string

      Example: "abc-123"

    • first_name string

      Example: "Jane"

    • id string

      Contact ID

      Example: "c_12345"

    • inserted_at string

      Example: "2026-11-04T12:44:26.961275Z"

    • last_name string

      Example: "Doe"

    • status "active" | "unsubscribed" | "unreachable"

      Example: "active"

    • updated_at string

      Example: "2026-11-04T12:44:26.961288Z"

202 Double-Opt-In response

  • data object
    • double_opt_in_required true