Create Dispatch Call
Create a new dispatch call.
POST https://api.sonorancad.com/v2/emergency/servers/{serverId}/dispatch-calls
Rate limit:
20 requests per minuteAuthenticated v2 endpoints are rate limited per API key rather than per IP address.
Create a new dispatch call and attach initial units resolved from community user IDs by default, or from linked Roblox IDs, linked Discord IDs, or account UUIDs.
Path Parameters
serverId
integer
Configured Sonoran CAD server ID.
Request Body
The backend requires at least one identifier target through communityUserIds, roblox, discord, or accounts.
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
Yes
Block or intersection label.
address
string
Yes
Dispatch address text.
postal
string
Yes
Postal code.
title
string
Yes
Short dispatch title.
code
string
Yes
Call code such as 211.
description
string
Yes
Full call description.
notes
array
Yes
Initial note objects to store on the call.
communityUserIds
array of strings
No
Linked community users whose active identifiers should be attached.
roblox
integer
No
Roblox user ID whose linked account's active identifiers should be attached.
discord
string
No
Discord user ID whose linked account's active identifiers should be attached.
accounts
array of strings (uuid)
No
Accounts whose selected identifiers should be attached.
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
sonorancadexport 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
0
PENDING
1
ACTIVE
2
CLOSED
CALL_ORIGIN
0
RADIO_DISPATCH
1
SELF_INITIATED
Last updated
Was this helpful?

