> For the complete documentation index, see [llms.txt](https://docs.imperialcad.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.imperialcad.app/api-and-integrations/api-integrations/emergency-endpoints/create-call.md).

# Create Call

This endpoint allows you to create a call that is sent to the call board of all units.

{% hint style="warning" %}
This endpoint requires **any** ImperialCAD subscription.
{% endhint %}

### CreateCall(data, callback)

<mark style="color:green;">`POST`</mark> `https://imperialcad.app/api/1.1/wf/createcall`

***

#### Request Body

| Name              | Type   | Description          |
| ----------------- | ------ | -------------------- |
| `users_discordID` | string | Caller's name        |
| `street`          | string | Street name          |
| `crossStreet`     | string | Cross street         |
| `postal`          | string | Postal               |
| `city`            | string | City of Call         |
| `county`          | string | County of Call       |
| `info`            | string | Call information     |
| `nature`          | string | Short title for Call |
| `status`          | string | Status of Call       |
| `priority`        | number | Priority             |

***

{% tabs %}
{% tab title="Example" %}

```lua
exports["ImperialCAD"]:CreateCall({
    users_discordID = "123456789012345678",
    street = "Broadway",
    crossStreet = "5th St",
    postal = "309",
    city = "Los Santos",
    county = "Blaine",
    info = "Disturbance reported",
    nature = "Disturbance",
    status = "PENDING",
    priority = 2
}, function(success, res)
  print(success and "Call created." or ("Failed: " .. res))
end)
```

{% endtab %}

{% tab title="Response of Example" %}

```lua
{
  "status": "success",
  "response": {
    "callId": "F9G8H7I6J5",
    "callnum": 204
  }
}
```

{% endtab %}
{% endtabs %}
