# TypeForm WebHook

## save Orca Access typeForm submitted

<mark style="color:green;">`POST`</mark> `{{HOST}}api/submitOrcaAccessTypeform`

This endpoint allows you to check and save the information submitted on Orca Access TypeForm

#### Request Body

| Name           | Type   | Description                                                                                                                                                               |
| -------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| form\_response | object | <p>{ "form\_id": "CIlopJ",, <br>  "answers": \[ { "type": "text", <br>                "text": "Mehmet", <br>                 "field": { "id": "XyqdiK4dTK9z", ...} }]</p> |

{% tabs %}
{% tab title="200 TypeForm successfully sent." %}

```
{
  "data": [
    {
      "type": "text",
      "text": "Chile",
      "form_id": "XyqdiK4dTK9z"
    },
    {
      "type": "email",
      "email": "ivasniel+11@digitalplankton.co",
      "form_id": "rxMiaHJwcoCS"
    },
    {
      "type": "text",
      "text": "boalt",
      "form_id": "LMvGgpvuYo6x"
    },
    {
      "type": "choices",
      "choices": {
        "labels": [
          "Software Developer"
        ]
      },
      "form_id": "sKBKgAEDMqpm"
    },
    {
      "type": "phone_number",
      "phone_number": "+12312312323",
      "form_id": "g3zCgHTTCfw8"
    }
  ],
  "message": "",
  "errorCode": null,
  "errors": []
}
```

{% endtab %}

{% tab title="400 Marked as Spam after sent the same request several times" %}

```
{
  "data": [],
  "message": "",
  "errorCode": null,
  "errors": {
    "error_message": "The current email is mark as Spam: mhmtkymk321@gmail.com"
  }
}
```

{% endtab %}
{% endtabs %}

If the request was successful we send an email to the supervisor and also save the record in the lead table.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dentalwhale.gitbook.io/documentation/orca-api/typeform-webhook.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
