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

# Send responses by email

> Email a message to the people who made the chosen submissions. Each message goes to the address given in the chosen email question. The emails are sent in the background.

> [!NOTE]
>
> Replace `{your-subdomain}` with your workspace’s subdomain. \
> Learn how to find your subdomain in [Workspace subdomain](https://apidocs.neetoform.com/api/workspace-subdomain.md).


## OpenAPI

````yaml bundled/submissions.yaml POST /forms/{form_id}/submissions/send_responses
openapi: 3.0.3
info:
  title: NeetoForm APIs
  version: 2.0.0
servers:
  - description: NeetoForm APIs
    url: https://{your-subdomain}.neetoform.com/api/external/v2
    variables:
      your-subdomain:
        default: spinkart
        description: >-
          Replace **spinkart** with your [workspace's
          subdomain](/api/workspace-subdomain).
security: []
paths:
  /forms/{form_id}/submissions/send_responses:
    post:
      tags:
        - Submissions
      summary: Send responses by email
      description: >-
        Email a message to the people who made the chosen submissions. Each
        message goes to the address given in the chosen email question. The
        emails are sent in the background.
      parameters:
        - $ref: '#/components/parameters/api_key_header'
        - $ref: '#/components/parameters/form_id_param'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/send_responses_request'
      responses:
        '202':
          description: Accepted - Emails are queued
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/send_responses_response'
        '404':
          description: Not Found - The form does not exist
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_response'
              example:
                error: Form does not exist.
        '422':
          description: Unprocessable Entity - The request is invalid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error_response'
              example:
                error: None of the given submission_ids belong to this form.
components:
  parameters:
    api_key_header:
      in: header
      name: X-Api-Key
      description: >-
        Use the X-Api-Key header to provide your workspace API key. Refer to
        [Authentication](/api/authentication) for more information.
      required: true
      schema:
        type: string
        default: your-api-key
    form_id_param:
      in: path
      name: form_id
      description: >-
        Unique ID of the form for which you want to retrieve submissions. Refer
        to [Getting the Form ID](/api/getting-form-id) section for detailed
        instructions.
      required: true
      schema:
        type: string
  schemas:
    send_responses_request:
      type: object
      required:
        - ids
        - email_question_id
        - subject
        - body
      properties:
        ids:
          type: array
          maxItems: 100
          items:
            type: string
          description: >-
            IDs of the submissions to email. At most 100. IDs that do not belong
            to the form are skipped.
          example:
            - 2c7f4a1e-6a0b-4d7e-9c55-1b3c9f0d8e21
        email_question_id:
          type: string
          description: >-
            ID of an email question on the form. Each message goes to the
            address the person gave in this question.
        subject:
          type: string
          description: Subject of the email. You can use the form's answer variables.
          example: Thanks for your response
        body:
          type: string
          description: Body of the email, in HTML. You can use the form's answer variables.
          example: <p>Hi, we got your response.</p>
        cc_emails:
          type: array
          items:
            type: string
            format: email
          example:
            - oliver@example.com
        bcc_emails:
          type: array
          items:
            type: string
            format: email
    send_responses_response:
      type: object
      properties:
        queued:
          type: boolean
        submission_ids:
          type: array
          items:
            type: string
          description: >-
            IDs of the submissions that belong to the form. Emails are sent in
            the background.
    error_response:
      type: object
      properties:
        error:
          type: string

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.