For the complete documentation index, see llms.txt. This page is also available as Markdown.

Create Dispatch Call

Create a new dispatch call.

POST https://api.sonorancad.com/v2/emergency/servers/{serverId}/dispatch-calls

Rate limit: 20 requests per minute Authenticated v2 endpoints are rate limited per API key rather than per IP address.

Create a new dispatch call and optionally attach initial units resolved from community user IDs, linked Roblox IDs, linked Discord IDs, or account UUIDs.

Path Parameters

Name
Type
Description

serverId

integer

Configured Sonoran CAD server ID.

Request Body

The request must include at least one target property: communityUserIds, accounts, roblox, or discord. To create an unassigned call, send communityUserIds: [] or accounts: [].

Property
Type
Required
Description

origin

integer

Yes

Call origin enum. See CALL_ORIGIN below.

status

integer

Yes

Call status enum. See CALL_STATUS below.

priority

integer

Yes

Call priority.

block

string

No

Block or intersection label.

address

string

No

Dispatch address text.

postal

string

No

Postal code.

title

string

Yes

Short dispatch title.

code

string

No

Call code such as 211.

description

string

No

Full call description.

notes

array

No

Initial note objects to store on the call.

communityUserIds

array of strings

Conditional

Linked community users whose active identifiers should be attached. An empty array creates an unassigned call.

roblox

string

Conditional

Roblox user ID whose linked account's active identifiers should be attached.

discord

string

Conditional

Discord user ID whose linked account's active identifiers should be attached.

accounts

array of strings (uuid)

Conditional

Accounts whose selected identifiers should be attached. An empty array creates an unassigned call.

metaData

object

No

Additional string key/value metadata. Pass x and y coordinate values to enable live map placement and coordinate-based search actions. z, radius, postal, block, code, and priority may also be supplied when applicable.

deleteAfterMinutes

integer

No

Schedule automatic deletion after creation.

Example Request

Use this tab only when calling the v2 API from the server side of an in-game FiveM resource.

  • Sonoran.lua and Sonoran.js: use the sonorancad export to get the ready CAD client.

  • Sonoran.Net: FiveM exports do not return a .NET client. Read the Sonoran CAD convars and create a fresh client.

  • Sonoran.py: FiveM does not run Python resources; use the Python tab for external integrations.

The API key is stored in sonoran_apiKey as a protected FiveM convar. FiveM restricts a convar after add_convar_permission is configured, so only explicitly permitted resources can read it. Grant another resource access with add_convar_permission your-resource-name read sonoran_apiKey. If you change the API key in config.json, fully restart the sonorancad resource before reading the updated convar value.

Sonoran.lua

Sonoran.js

Sonoran.Net

After getting the Lua export client:

Import this YAML into Postman with Import -> Raw text to create a single-endpoint request collection for this route.

Response

Successful requests return application/json.

Enumeration Values

CALL_STATUS

Value
Description

0

PENDING

1

ACTIVE

2

CLOSED

CALL_ORIGIN

Value
Description

0

CALLER

1

RADIO_DISPATCH

2

OBSERVED

3

WALK_UP

Last updated

Was this helpful?