GET /v1/events?undispatched=true: it returns the events without an active mission (no mission, or only missions that ended FAILED). To let wede rank the candidate teams, see Dispatch score and Action dispatch.
Dispatch a team
Authentication
Session token (Authorization: Bearer <token>) with the dispatch:assign permission. Tenant roles with it: company_admin, operational_supervisor, corporate_client.
Body
The
event_id wede returned for the event. It must be an existing production event of your tenant, otherwise wede returns 404 event_not_found.Example
Response 201
The dispatch record.
What happens on dispatch
- wede records the dispatch and sets the team
statustoon_mission. - wede creates a mission for the team with status
CREATEDandchannel_usedinternet. If the team already has a mission for thisevent_id, wede keeps that mission and does not create a second one. - wede sends the
team.dispatchedwebhook with{ team_id, event_id, notes }.
event_id and the other team_id. Each team gets its own mission.
When the mission reaches COMPLETED or FAILED, wede sets the team back to available. The mission outcome never changes the status of the event, which stays its delivery status.
If the team does not acknowledge within your acknowledgement timeout, wede substitutes it automatically. See Missions.
Errors
Dispatch log
Authentication
Session token with thedispatch:view permission. Tenant roles with it: company_admin, operational_supervisor, corporate_client. API keys get 403 forbidden.
Query parameters
Response 200
team_name.
Errors
SDKs
dispatch in JavaScript and Python.