Skip to content

REST API

Tickets: 164 routes.

All under /wp-json/davo/v1. 161 of them have a description in the source.

  • GET68
  • POST72
  • PUT7
  • PATCH35
  • DELETE24

/tickets

GETAccess check: require_login

Lists the tickets the current user can see, with filters and pagination. Totals are returned in the X-WP-Total and X-WP-TotalPages headers.

Handler: list_tickets()

Parameters of GET /tickets
ParameterTypeRequiredDefault or allowed values
matchstring—all | any
assigned_agentinteger——
unassignedboolean——
curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets"

POSTAccess check: require_login

Creates a ticket as the current user. Returns 201.

Handler: create_ticket()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets"

src/domains/tickets/routes.php:259

/tickets/{id}/assign-group

POSTAccess check: require_agent

Assigns a ticket to an agent group.

Handler: assign_ticket_to_group()

Parameters of POST /tickets/{id}/assign-group
ParameterTypeRequiredDefault or allowed values
group_idintegerYes—
curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/assign-group" \
  -H "Content-Type: application/json" \
  -d '{"group_id": 1}'

src/domains/tickets/management-routes.php:766

/tickets/{id}/bookmark

PUTPATCHAccess check: require_agent

Bookmarks a ticket for the current user.

Handler: add_bookmark()

No parameters declared in the route registration.

curl
curl -X PUT -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/bookmark"

DELETEAccess check: require_agent

Removes the current user's bookmark from a ticket.

Handler: remove_bookmark()

No parameters declared in the route registration.

curl
curl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/bookmark"

src/domains/tickets/routes.php:3199

/tickets/{id}/customer

PUTPATCHAccess check: require_agent

Changes the customer a ticket belongs to.

Handler: change_ticket_customer()

Parameters of PUT/PATCH /tickets/{id}/customer
ParameterTypeRequiredDefault or allowed values
user_idintegerYes—
curl
curl -X PUT -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/customer" \
  -H "Content-Type: application/json" \
  -d '{"user_id": 1}'

src/domains/tickets/management-routes.php:1306

/tickets/{id}/estimated-time

PATCHAccess check: require_agent

Sets a ticket's estimated time in minutes.

Handler: update_estimated_time()

Parameters of PATCH /tickets/{id}/estimated-time
ParameterTypeRequiredDefault or allowed values
minutesintegerYes—
curl
curl -X PATCH -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/estimated-time" \
  -H "Content-Type: application/json" \
  -d '{"minutes": 1}'

src/domains/tickets/routes.php:3273

/tickets/{id}/presence

PUTPATCHAccess check: require_agent

Updates the current user's presence state on a ticket for a client_id.

Handler: touch_presence()

Parameters of PUT/PATCH /tickets/{id}/presence
ParameterTypeRequiredDefault or allowed values
client_idsee source——
statestring——
curl
curl -X PUT -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/presence"

DELETEAccess check: require_agent

Removes the current user's presence from a ticket for the given client_id.

Handler: leave_presence()

Parameters of DELETE /tickets/{id}/presence
ParameterTypeRequiredDefault or allowed values
client_idsee source——
curl
curl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/presence"

src/domains/tickets/routes.php:3232

/tickets/{id}/presence/leave

POSTAccess check: require_agent

Removes the current user's presence from a ticket for the given client_id.

Handler: leave_presence()

Parameters of POST /tickets/{id}/presence/leave
ParameterTypeRequiredDefault or allowed values
client_idsee source——
curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/presence/leave"

src/domains/tickets/routes.php:3260

/tickets/{id}/product

PATCHAccess check: require_agent

Changes the product a ticket belongs to.

Handler: change_ticket_product()

No parameters declared in the route registration.

curl
curl -X PATCH -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/product"

src/domains/tickets/management-routes.php:679

/tickets/{id}/seen

PUTPATCHAccess check: require_login

Marks a ticket as seen by the current user.

Handler: mark_seen()

No parameters declared in the route registration.

curl
curl -X PUT -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/seen"

src/domains/tickets/routes.php:3217

/tickets/{id}/watch

PUTPATCHAccess check: require_agent

Makes the current user watch a ticket.

Handler: add_watch()

No parameters declared in the route registration.

curl
curl -X PUT -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/watch"

DELETEAccess check: require_agent

Stops the current user watching a ticket.

Handler: remove_watch()

No parameters declared in the route registration.

curl
curl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/watch"

src/domains/tickets/routes.php:3181

/tickets/{id}

DELETEAccess check: require_agent

Deletes a ticket.

Handler: delete_ticket()

No parameters declared in the route registration.

curl
curl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}"

src/domains/tickets/management-routes.php:211

/tickets/{id}

GETAccess check: require_login

Returns one ticket the current user can see.

Handler: get_ticket()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}"

src/domains/tickets/routes.php:428

/tickets/{id}/ai/{action}

POSTAccess check: require_agent

Runs an AI action on a ticket the current user can see. Responds 404 for a ticket they cannot see.

Handler: run()

Parameters of POST /tickets/{id}/ai/{action}
ParameterTypeRequiredDefault or allowed values
textstring——
instructionstring——
curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/ai/{action}"

src/domains/tickets/ai-routes.php:69

/tickets/{id}/assign

PATCHAccess check: require_agent

Assigns a ticket to an agent, with an optional reason.

Handler: assign_ticket()

Parameters of PATCH /tickets/{id}/assign
ParameterTypeRequiredDefault or allowed values
agent_idintegerYes—
reasonstring—(empty)
curl
curl -X PATCH -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/assign" \
  -H "Content-Type: application/json" \
  -d '{"agent_id": 1}'

src/domains/tickets/routes.php:756

/tickets/{id}/audit

GETAccess check: require_agent

Lists the audit trail for one ticket.

Handler: list_for_ticket()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/audit"

src/domains/tickets/audit-routes.php:93

/tickets/{id}/cc

PATCHAccess check: require_agent

Sets the CC email addresses on a ticket.

Handler: update_ticket_cc()

Parameters of PATCH /tickets/{id}/cc
ParameterTypeRequiredDefault or allowed values
addressesarrayYes—
curl
curl -X PATCH -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/cc" \
  -H "Content-Type: application/json" \
  -d '{"addresses": []}'

src/domains/tickets/routes.php:613

/tickets/{id}/client-priority

PATCHAccess check: require_login

Changes the priority the customer chose for a ticket.

Handler: change_client_priority()

Parameters of PATCH /tickets/{id}/client-priority
ParameterTypeRequiredDefault or allowed values
prioritystringYes—
curl
curl -X PATCH -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/client-priority" \
  -H "Content-Type: application/json" \
  -d '{"priority": "…"}'

src/domains/tickets/routes.php:669

/tickets/{id}/close

POSTAccess check: require_login

Closes a ticket as its customer.

Handler: close_ticket()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/close"

src/domains/tickets/routes.php:718

/tickets/{id}/collaborators

PATCHAccess check: require_agent

Updates a ticket's collaborators and returns the updated ticket.

Handler: update_collaborators()

No parameters declared in the route registration.

curl
curl -X PATCH -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/collaborators"

src/domains/tickets/management-routes.php:149

/tickets/{id}/custom-fields

PATCHAccess check: require_agent

Updates a ticket's custom field values.

Handler: update_custom_fields()

No parameters declared in the route registration.

curl
curl -X PATCH -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/custom-fields"

src/domains/tickets/routes.php:778

/tickets/{id}/customer-history

GETAccess check: require_agent

Returns the customer's other tickets for a ticket's customer, with pagination of up to 20 per page.

Handler: get_customer_history()

Parameters of GET /tickets/{id}/customer-history
ParameterTypeRequiredDefault or allowed values
pageinteger—1
per_pageinteger—5
curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/customer-history"

src/domains/tickets/routes.php:2214

/tickets/{id}/departments

PATCHAccess check: require_agent

Updates a ticket's departments and returns the updated ticket.

Handler: update_ticket_departments()

No parameters declared in the route registration.

curl
curl -X PATCH -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/departments"

src/domains/tickets/management-routes.php:166

/tickets/{id}/drafts

POSTAccess check: require_agent

Saves a draft reply, with optional attachments. Returns 201.

Handler: save_draft_reply()

Parameters of POST /tickets/{id}/drafts
ParameterTypeRequiredDefault or allowed values
contentstringYes—
attachment_idsarray——
curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/drafts" \
  -H "Content-Type: application/json" \
  -d '{"content": "…"}'

src/domains/tickets/routes.php:515

/tickets/{id}/drafts

GETAccess check: require_agent

Lists the draft replies on a ticket.

Handler: list_drafts()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/drafts"

src/domains/tickets/routes.php:535

/tickets/{id}/duplicates

GETAccess check: require_agent

Open tickets that look like this one: same customer with a similar subject, or a very similar subject.

Handler: get_duplicates()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/duplicates"

src/domains/tickets/ai-routes.php:83

/tickets/{id}/feedback

POSTAccess check: require_login

Submits a customer's rating and comment on a ticket.

Handler: submit_feedback()

Parameters of POST /tickets/{id}/feedback
ParameterTypeRequiredDefault or allowed values
ratingintegerYes—
commentstring——
curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/feedback" \
  -H "Content-Type: application/json" \
  -d '{"rating": 1}'

src/domains/tickets/routes.php:3110

/tickets/{id}/files

GETAccess check: require_login

Return the current viewer's downloadable files on this ticket.

Handler: get_conversation_files()

Parameters of GET /tickets/{id}/files
ParameterTypeRequiredDefault or allowed values
beforesee source——
curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/files"

src/domains/tickets/routes.php:114

/tickets/{id}/inbox

PATCHAccess check: require_agent

Moves a ticket to another inbox.

Handler: move_ticket_to_inbox()

Parameters of PATCH /tickets/{id}/inbox
ParameterTypeRequiredDefault or allowed values
inbox_idintegerYes—
curl
curl -X PATCH -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/inbox" \
  -H "Content-Type: application/json" \
  -d '{"inbox_id": 1}'

src/domains/tickets/management-routes.php:588

/tickets/{id}/lock

POSTAccess check: require_agent

Locks a ticket, with an optional reason.

Handler: lock_ticket()

Parameters of POST /tickets/{id}/lock
ParameterTypeRequiredDefault or allowed values
reasonstringYes—
curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/lock" \
  -H "Content-Type: application/json" \
  -d '{"reason": "…"}'

src/domains/tickets/routes.php:730

/tickets/{id}/messages

GETAccess check: require_login

Returns a ticket's messages, with pagination of up to 100 per page.

Handler: get_thread()

Parameters of GET /tickets/{id}/messages
ParameterTypeRequiredDefault or allowed values
pageinteger—1
per_pageinteger—20
anchor_messageinteger——
curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/messages"

src/domains/tickets/routes.php:438

/tickets/{id}/messages/search

GETAccess check: require_login

Return matches in this ticket's posted messages.

Handler: search_conversation()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/messages/search"

src/domains/tickets/routes.php:92

/tickets/{id}/notes

POSTAccess check: require_agent

Adds a private internal note to a ticket, with optional attachments. Returns 201.

Handler: add_note()

Parameters of POST /tickets/{id}/notes
ParameterTypeRequiredDefault or allowed values
contentstringYes—
attachment_idsarray——
curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/notes" \
  -H "Content-Type: application/json" \
  -d '{"content": "…"}'

src/domains/tickets/routes.php:495

/tickets/{id}/priority

PATCHAccess check: require_agent

Changes a ticket's priority.

Handler: change_priority()

Parameters of PATCH /tickets/{id}/priority
ParameterTypeRequiredDefault or allowed values
prioritystringYes—
curl
curl -X PATCH -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/priority" \
  -H "Content-Type: application/json" \
  -d '{"priority": "…"}'

src/domains/tickets/routes.php:652

/tickets/{id}/purchase-code

PATCHAccess check: require_login

Sets the purchase code on a ticket.

Handler: set_purchase_code()

Parameters of PATCH /tickets/{id}/purchase-code
ParameterTypeRequiredDefault or allowed values
purchase_codestringYes—
curl
curl -X PATCH -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/purchase-code" \
  -H "Content-Type: application/json" \
  -d '{"purchase_code": "…"}'

src/domains/tickets/routes.php:700

/tickets/{id}/related

GETAccess check: require_login

Returns the customer's other tickets related to this ticket.

Handler: get_related()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/related"

src/domains/tickets/routes.php:2204

/tickets/{id}/reopen

POSTAccess check: require_login

Reopens a ticket.

Handler: reopen_ticket()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/reopen"

src/domains/tickets/routes.php:690

/tickets/{id}/reply

POSTAccess check: require_login

Adds a reply to a ticket, with optional attachments.

Handler: add_reply()

Parameters of POST /tickets/{id}/reply
ParameterTypeRequiredDefault or allowed values
contentstringYes—
attachment_idsarray——
curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/reply" \
  -H "Content-Type: application/json" \
  -d '{"content": "…"}'

src/domains/tickets/routes.php:462

/tickets/{id}/revoke-guest-access

POSTAccess check: require_login

Revokes a guest's access to a ticket.

Handler: revoke_guest_access()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/revoke-guest-access"

src/domains/tickets/routes.php:907

/tickets/{id}/split

POSTAccess check: require_agent

Splits selected messages out of a ticket into a new ticket, with an optional subject. Returns 201.

Handler: split_ticket()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/split"

src/domains/tickets/management-routes.php:183

/tickets/{id}/status

PATCHAccess check: require_agent

Changes a ticket's status.

Handler: change_status()

Parameters of PATCH /tickets/{id}/status
ParameterTypeRequiredDefault or allowed values
statusstringYes—
curl
curl -X PATCH -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/status" \
  -H "Content-Type: application/json" \
  -d '{"status": "…"}'

src/domains/tickets/routes.php:630

/tickets/{id}/tags

PATCHAccess check: require_agent

Sets a ticket's tags.

Handler: update_ticket_tags()

Parameters of PATCH /tickets/{id}/tags
ParameterTypeRequiredDefault or allowed values
tagsarrayYes—
curl
curl -X PATCH -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/tags" \
  -H "Content-Type: application/json" \
  -d '{"tags": []}'

src/domains/tickets/routes.php:1887

/tickets/{id}/tasks

GETAccess check: require_agent

Lists the tasks on a ticket.

Handler: get_tasks()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/tasks"

POSTAccess check: require_agent

Creates a task on a ticket. Returns 201.

Handler: create_task()

Parameters of POST /tickets/{id}/tasks
ParameterTypeRequiredDefault or allowed values
titlestringYes—
curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/tasks" \
  -H "Content-Type: application/json" \
  -d '{"title": "…"}'

src/domains/tickets/routes.php:1999

/tickets/{id}/time-entries

GETAccess check: require_agent

Lists the time entries logged on a ticket.

Handler: get_time_entries()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/time-entries"

POSTAccess check: require_agent

Logs a time entry on a ticket, with minutes and a note. Returns 201.

Handler: log_time_entry()

Parameters of POST /tickets/{id}/time-entries
ParameterTypeRequiredDefault or allowed values
minutesintegerYes—
notestring——
is_billableboolean—true
curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/time-entries" \
  -H "Content-Type: application/json" \
  -d '{"minutes": 1}'

src/domains/tickets/routes.php:3152

/tickets/{id}/time-timer

POSTAccess check: require_agent

Starts a time timer on a ticket.

Handler: start_time_timer()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/time-timer"

DELETEAccess check: require_agent

Discards the current user's running time timer on a ticket.

Handler: discard_time_timer()

No parameters declared in the route registration.

curl
curl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/time-timer"

src/domains/tickets/routes.php:3291

/tickets/{id}/time-timer/ping

POSTAccess check: require_agent

Pings the running time timer on a ticket to keep it alive.

Handler: ping_time_timer()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/time-timer/ping"

src/domains/tickets/routes.php:3309

/tickets/{id}/time-timer/stop

POSTAccess check: require_agent

Stops the running time timer on a ticket and saves it as a time entry, with an optional note. Returns 201.

Handler: stop_time_timer()

Parameters of POST /tickets/{id}/time-timer/stop
ParameterTypeRequiredDefault or allowed values
notestring——
curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/time-timer/stop"

src/domains/tickets/routes.php:3319

/tickets/{id}/timeline

GETAccess check: require_login

Returns a ticket's timeline.

Handler: get_timeline()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/timeline"

src/domains/tickets/routes.php:2174

/tickets/{id}/unlock

POSTAccess check: require_agent

Unlocks a ticket.

Handler: unlock_ticket()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/unlock"

src/domains/tickets/routes.php:746

/tickets/{id}/unmerge

POSTAccess check: require_agent

Reverses the merge of a ticket.

Handler: unmerge_ticket()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/unmerge"

src/domains/tickets/management-routes.php:201

/tickets/agent-groups

GETAccess check: require_agent

Lists the agent groups.

Handler: list_agent_groups()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/agent-groups"

POSTAccess check: require_agent

Creates an agent group from a name, description and agent ids. Returns 201.

Handler: create_agent_group()

Parameters of POST /tickets/agent-groups
ParameterTypeRequiredDefault or allowed values
namestringYes—
descriptionstring—(empty)
agent_idsarray—array()
curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/agent-groups" \
  -H "Content-Type: application/json" \
  -d '{"name": "…"}'

src/domains/tickets/management-routes.php:703

/tickets/agent-groups/{group_id}

PATCHAccess check: require_agent

Updates an agent group's name, description or members. Only the fields you send change.

Handler: update_agent_group()

Parameters of PATCH /tickets/agent-groups/{group_id}
ParameterTypeRequiredDefault or allowed values
namestring——
descriptionstring——
agent_idsarray——
curl
curl -X PATCH -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/agent-groups/{group_id}"

DELETEAccess check: require_agent

Deletes an agent group. Pass fallback_group_id to say where its tickets go.

Handler: delete_agent_group()

Parameters of DELETE /tickets/agent-groups/{group_id}
ParameterTypeRequiredDefault or allowed values
fallback_group_idinteger—0
curl
curl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/agent-groups/{group_id}"

src/domains/tickets/management-routes.php:735

/tickets/agents

GETAccess check: require_agent

Lists agents.

Handler: list_agents()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/agents"

src/domains/tickets/routes.php:1714

/tickets/agents/{agent_id}/departments

PATCHAccess check: require_agent

Sets the departments an agent belongs to.

Handler: update_agent_departments()

Parameters of PATCH /tickets/agents/{agent_id}/departments
ParameterTypeRequiredDefault or allowed values
departmentsarrayYes—
curl
curl -X PATCH -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/agents/{agent_id}/departments" \
  -H "Content-Type: application/json" \
  -d '{"departments": []}'

src/domains/tickets/management-routes.php:337

/tickets/agents/{agent_id}/inboxes

PATCHAccess check: require_agent

Sets the inboxes an agent can work in.

Handler: update_agent_inboxes()

Parameters of PATCH /tickets/agents/{agent_id}/inboxes
ParameterTypeRequiredDefault or allowed values
inboxesarrayYes—
curl
curl -X PATCH -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/agents/{agent_id}/inboxes" \
  -H "Content-Type: application/json" \
  -d '{"inboxes": []}'

src/domains/tickets/management-routes.php:604

/tickets/ai/log

GETAccess check: require_log_viewer

Lists the AI request log, filterable by action, source and result, with pagination.

Handler: list_log()

Parameters of GET /tickets/ai/log
ParameterTypeRequiredDefault or allowed values
actionstring——
sourcestring—agent | mcp
resultstring—ok | failed | blocked
pageinteger—1
per_pageinteger—20
curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/ai/log"

src/domains/tickets/ai-routes.php:93

/tickets/ai/log/{log_id}

GETAccess check: require_log_viewer

Returns one AI log entry. Responds 404 if it does not exist.

Handler: get_log_entry()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/ai/log/{log_id}"

src/domains/tickets/ai-routes.php:128

/tickets/ai/status

GETAccess check: require_agent

Returns the AI status for the current user.

Handler: status()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/ai/status"

src/domains/tickets/ai-routes.php:59

/tickets/ai/usage

GETAccess check: require_log_viewer

Returns AI usage for the last days days (1 to 365).

Handler: usage()

Parameters of GET /tickets/ai/usage
ParameterTypeRequiredDefault or allowed values
daysinteger—30
curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/ai/usage"

src/domains/tickets/ai-routes.php:138

/tickets/audit

GETAccess check: require_log_viewer

Lists the audit trail across tickets, filterable by event type, actor, ticket and date range.

Handler: list_all()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/audit"

src/domains/tickets/audit-routes.php:63

/tickets/audit/types

GETAccess check: require_log_viewer

Lists the audit event types and their titles.

Handler: list_types()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/audit/types"

src/domains/tickets/audit-routes.php:83

/tickets/bulk

POSTAccess check: require_agent

Same permission floor (require_agent()) as every individual status/priority/assign route this loops — bulk_update() applies no additional or different authorization of its own, see that method's docblock.

Handler: bulk_update_tickets()

Parameters of POST /tickets/bulk
ParameterTypeRequiredDefault or allowed values
ticket_idsarrayYes—
statusstring——
prioritystring——
agent_idinteger——
add_tagsarray——
remove_tagsarray——
curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/bulk" \
  -H "Content-Type: application/json" \
  -d '{"ticket_ids": []}'

src/domains/tickets/routes.php:3588

/tickets/bulk-delete

POSTAccess check: require_agent

Deletes several tickets at once from a list of ticket ids.

Handler: bulk_delete_tickets()

Parameters of POST /tickets/bulk-delete
ParameterTypeRequiredDefault or allowed values
ticket_idssee source——
curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/bulk-delete"

src/domains/tickets/management-routes.php:260

/tickets/bulk-merge

POSTAccess check: require_agent

Merges several tickets into the ticket given by target_id.

Handler: bulk_merge_tickets()

Parameters of POST /tickets/bulk-merge
ParameterTypeRequiredDefault or allowed values
ticket_idssee source——
target_idintegerYes—
curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/bulk-merge" \
  -H "Content-Type: application/json" \
  -d '{"target_id": 1}'

src/domains/tickets/management-routes.php:271

/tickets/canned-responses

GETAccess check: require_agent

Lists saved replies available to the current agent, filterable by category, product and search.

Handler: get_canned_responses()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/canned-responses"

POSTAccess check: require_agent

Creates a saved reply. Returns 201.

Handler: create_canned_response()

Parameters of POST /tickets/canned-responses
ParameterTypeRequiredDefault or allowed values
titlestringYes—
contentstringYes—
curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/canned-responses" \
  -H "Content-Type: application/json" \
  -d '{"title": "…", "content": "…"}'

src/domains/tickets/routes.php:2131

/tickets/canned-responses/{response_id}

PATCHAccess check: require_agent

Updates a saved reply's title, content, category or shared flag.

Handler: update_canned_response()

Parameters of PATCH /tickets/canned-responses/{response_id}
ParameterTypeRequiredDefault or allowed values
titlestring——
contentstring——
categorystring——
is_sharedboolean——
curl
curl -X PATCH -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/canned-responses/{response_id}"

DELETEAccess check: require_agent

Deletes a saved reply.

Handler: delete_canned_response()

No parameters declared in the route registration.

curl
curl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/canned-responses/{response_id}"

src/domains/tickets/management-routes.php:790

/tickets/canned-responses/{response_id}/resolve

POSTAccess check: require_agent

Returns the content of a saved reply with its placeholders filled in for a ticket.

Handler: resolve_canned_response()

Parameters of POST /tickets/canned-responses/{response_id}/resolve
ParameterTypeRequiredDefault or allowed values
ticket_idintegerYes—
curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/canned-responses/{response_id}/resolve" \
  -H "Content-Type: application/json" \
  -d '{"ticket_id": 1}'

src/domains/tickets/routes.php:2281

/tickets/channels/{provider}/test

POSTAccess check: require_manager

Sends from the saved credentials, so an admin sees exactly what a real event would do.

Handler: test_channel()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/channels/{provider}/test"

src/domains/tickets/routes.php:2727

/tickets/channels/log

GETAccess check: require_manager

Lists the channel integration log, filterable by provider and result, with pagination.

Handler: list_channel_log()

Parameters of GET /tickets/channels/log
ParameterTypeRequiredDefault or allowed values
providerstring——
resultstring—ok | retrying | failed | skipped
pageinteger—1
per_pageinteger—20
curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/channels/log"

src/domains/tickets/routes.php:2686

/tickets/channels/log/{log_id}/replay

POSTAccess check: require_manager

Queues a logged outgoing webhook delivery to be sent again to the endpoint as it is set now.

Handler: replay_channel_log()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/channels/log/{log_id}/replay"

src/domains/tickets/routes.php:2717

/tickets/channels/slack/command

POSTAccess check: verify_slack_request

Receives a Slack slash command for the Slack channel integration.

Handler: receive_slack()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/channels/slack/command"

src/domains/tickets/routes.php:2750

/tickets/channels/telegram/connect

POSTAccess check: require_manager

Makes a secret (once) and tells Telegram to send the team chat's messages here with it. Needs the site to be reachable from the internet over https.

Handler: connect_telegram()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/channels/telegram/connect"

src/domains/tickets/routes.php:2770

/tickets/channels/telegram/webhook

POSTAccess check: verify_telegram_request

Receives a Telegram webhook update for the Telegram channel integration.

Handler: receive_telegram()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/channels/telegram/webhook"

src/domains/tickets/routes.php:2740

/tickets/channels/whatsapp/webhook

POSTAccess check: verify_whatsapp_request

Answers with nothing: Twilio accepts an empty 204, and the outcome is in the integration log.

Handler: receive_whatsapp()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/channels/whatsapp/webhook"

src/domains/tickets/routes.php:2760

/tickets/counts

GETAccess check: require_login

Counts are scoped to the tickets the requester may see, so an agent limited to their own department never learns the size of anyone else's queue.

Handler: get_ticket_counts()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/counts"

src/domains/tickets/routes.php:1704

/tickets/custom-fields

GETAccess check: require_agent

Lists the ticket custom field definitions.

Handler: get_custom_field_definitions()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/custom-fields"

src/domains/tickets/management-routes.php:139

/tickets/customer-accounts

POSTAccess check: require_agent

Creates a customer account from an email and name. Returns 201.

Handler: create_customer()

Parameters of POST /tickets/customer-accounts
ParameterTypeRequiredDefault or allowed values
emailstringYes—
namestring—(empty)
curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/customer-accounts" \
  -H "Content-Type: application/json" \
  -d '{"email": "…"}'

src/domains/tickets/management-routes.php:1075

/tickets/customer-block

POSTAccess check: require_agent

Blocks a customer, by user id or email, with a reason. Returns 201.

Handler: block_customer()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/customer-block"

DELETEAccess check: require_agent

Unblocks a customer, by user id or email.

Handler: unblock_customer()

No parameters declared in the route registration.

curl
curl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/customer-block"

src/domains/tickets/management-routes.php:1209

/tickets/customer-directory

GETAccess check: require_agent

Lists customers, filterable by search, with sorting and pagination.

Handler: list_customers()

Parameters of GET /tickets/customer-directory
ParameterTypeRequiredDefault or allowed values
searchstring—(empty)
pageinteger—1
per_pageinteger——
sortstring—recent
curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/customer-directory"

src/domains/tickets/management-routes.php:1040

/tickets/customer-merge

POSTAccess check: require_agent

Merges one customer into another account.

Handler: merge_customers()

Parameters of POST /tickets/customer-merge
ParameterTypeRequiredDefault or allowed values
from_user_idinteger—0
from_emailstring—(empty)
to_user_idintegerYes—
curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/customer-merge" \
  -H "Content-Type: application/json" \
  -d '{"to_user_id": 1}'

src/domains/tickets/management-routes.php:1324

/tickets/customer-notes

GETAccess check: require_agent

Lists the internal notes on a customer, by user id or email.

Handler: list_customer_notes()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/customer-notes"

POSTAccess check: require_agent

Adds an internal note to a customer. Returns 201.

Handler: add_customer_note()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/customer-notes"

src/domains/tickets/management-routes.php:1109

/tickets/customer-notes/{id}

DELETEAccess check: require_agent

Deletes a customer note.

Handler: delete_customer_note()

No parameters declared in the route registration.

curl
curl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/customer-notes/{id}"

src/domains/tickets/management-routes.php:1233

/tickets/customer-profile

GETAccess check: require_agent

Returns a customer's profile, by user id or email.

Handler: get_customer_profile()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/customer-profile"

src/domains/tickets/management-routes.php:1098

/tickets/customer-transfers

GETAccess check: require_agent

Lists the transfers recorded for a customer, by user id or email.

Handler: list_customer_transfers()

Parameters of GET /tickets/customer-transfers
ParameterTypeRequiredDefault or allowed values
user_idinteger—0
emailstring—(empty)
curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/customer-transfers"

src/domains/tickets/management-routes.php:1353

/tickets/customer-transfers/{id}/undo

POSTAccess check: require_agent

Undoes a customer transfer.

Handler: undo_customer_transfer()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/customer-transfers/{id}/undo"

src/domains/tickets/management-routes.php:1376

/tickets/customers

GETAccess check: require_agent

Searches customers by name or email.

Handler: search_customers()

Parameters of GET /tickets/customers
ParameterTypeRequiredDefault or allowed values
searchstring—(empty)
curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/customers"

src/domains/tickets/routes.php:1751

/tickets/dashboard

GETAccess check: require_login

Returns the current user's tickets overview as a customer.

Handler: get_dashboard()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/dashboard"

src/domains/tickets/routes.php:2194

/tickets/departments

POSTAccess check: require_agent

Creates a department from a name and optional parent. Returns 201.

Handler: create_department()

Parameters of POST /tickets/departments
ParameterTypeRequiredDefault or allowed values
namestringYes—
parentinteger—0
curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/departments" \
  -H "Content-Type: application/json" \
  -d '{"name": "…"}'

src/domains/tickets/management-routes.php:296

/tickets/departments

GETAccess check: require_agent

Lists departments.

Handler: list_departments()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/departments"

src/domains/tickets/routes.php:1724

/tickets/departments/{department_id}

PATCHAccess check: require_agent

Updates a department's name or parent.

Handler: update_department()

Parameters of PATCH /tickets/departments/{department_id}
ParameterTypeRequiredDefault or allowed values
namestring——
parentinteger——
curl
curl -X PATCH -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/departments/{department_id}"

DELETEAccess check: require_agent

Deletes a department.

Handler: delete_department()

No parameters declared in the route registration.

curl
curl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/departments/{department_id}"

src/domains/tickets/management-routes.php:316

/tickets/drafts/{message_id}

PATCHAccess check: require_agent

PATCH /tickets/drafts/{message_id} — auto-save.

Handler: update_draft()

Parameters of PATCH /tickets/drafts/{message_id}
ParameterTypeRequiredDefault or allowed values
contentstringYes—
curl
curl -X PATCH -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/drafts/{message_id}" \
  -H "Content-Type: application/json" \
  -d '{"content": "…"}'

DELETEAccess check: require_agent

Discards a draft reply.

Handler: discard_draft()

No parameters declared in the route registration.

curl
curl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/drafts/{message_id}"

src/domains/tickets/routes.php:567

/tickets/drafts/{message_id}/approve

POSTAccess check: require_agent

Approves a draft reply and sends it.

Handler: approve_draft()

Parameters of POST /tickets/drafts/{message_id}/approve
ParameterTypeRequiredDefault or allowed values
based_on_message_idinteger—0
forceboolean—false
curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/drafts/{message_id}/approve"

src/domains/tickets/routes.php:545

/tickets/email-preview

POSTAccess check: require_manager

Returns a preview of one of the ticket emails, by type.

Handler: preview_email()

Parameters of POST /tickets/email-preview
ParameterTypeRequiredDefault or allowed values
typestringYes—
curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/email-preview" \
  -H "Content-Type: application/json" \
  -d '{"type": "…"}'

src/domains/tickets/routes.php:2247

/tickets/email-test

POSTAccess check: require_manager

Sends a test email of the given type to the current user's own address.

Handler: send_test_email()

Parameters of POST /tickets/email-test
ParameterTypeRequiredDefault or allowed values
typestringYes—
curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/email-test" \
  -H "Content-Type: application/json" \
  -d '{"type": "…"}'

src/domains/tickets/routes.php:2264

/tickets/email/inbound

POSTAccess check: verify_webhook_secret

The exact request body shape depends on which mail provider's inbound-parse webhook is configured — this callback expects the already-normalized shape Tickets_Inbound_Email_Processor::process() documents. Translating a specific provider's native webhook payload into that shape is the provider adapter's job (see that class's docblock); a small provider-specific filter, davo_tickets_normalize_inbound_email, is applied here first so that adapter can live outside this class without a new REST route per provider.

Handler: receive_inbound_email()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/email/inbound"

src/domains/tickets/routes.php:2628

/tickets/email/log

GETAccess check: require_manager

Inbound emails that were rejected, ignored or failed, newest first.

Handler: list_inbound_email_log()

Parameters of GET /tickets/email/log
ParameterTypeRequiredDefault or allowed values
statusstring—processed | rejected | ignored | failed
pageinteger—1
per_pageinteger—20
curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/email/log"

src/domains/tickets/routes.php:2638

/tickets/email/log/{log_id}/retry

POSTAccess check: require_manager

Retries processing a logged inbound email. Returns 201.

Handler: retry_inbound_email()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/email/log/{log_id}/retry"

src/domains/tickets/routes.php:2665

/tickets/guest

POSTAccess check: require_public_ticket_interaction

Creates a ticket for a guest from their email address. Returns 201.

Handler: create_guest_ticket()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/guest"

src/domains/tickets/routes.php:408

/tickets/guest/{id}

GETAccess check: require_guest_session

Returns a guest ticket.

Handler: get_guest_ticket()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/guest/{id}"

src/domains/tickets/routes.php:857

/tickets/guest/{id}/messages

GETAccess check: require_guest_session

Returns a guest ticket's messages, with pagination of up to 100 per page.

Handler: get_guest_thread()

Parameters of GET /tickets/guest/{id}/messages
ParameterTypeRequiredDefault or allowed values
pageinteger—1
per_pageinteger—20
anchor_messageinteger——
curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/guest/{id}/messages"

src/domains/tickets/routes.php:867

/tickets/guest/{id}/messages/search

GETAccess check: require_guest_session

The source has no description for this route.

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/guest/{id}/messages/search"

src/domains/tickets/routes.php:103

/tickets/guest/{id}/reply

POSTAccess check: require_guest_session

Adds a reply to a guest ticket. Returns 201.

Handler: add_guest_reply()

Parameters of POST /tickets/guest/{id}/reply
ParameterTypeRequiredDefault or allowed values
contentstringYes—
curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/guest/{id}/reply" \
  -H "Content-Type: application/json" \
  -d '{"content": "…"}'

src/domains/tickets/routes.php:891

/tickets/guest/{id}/timeline

GETAccess check: require_guest_session

Returns a guest ticket's timeline.

Handler: get_guest_timeline()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/guest/{id}/timeline"

src/domains/tickets/routes.php:2184

/tickets/import/environment

GETAccess check: inline check

Host checks that decide how well a long import runs.

Handler: environment()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/import/environment"

src/domains/tickets/import-routes.php:191

/tickets/import/jobs

GETAccess check: inline check

Lists import jobs.

Handler: list_jobs()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/import/jobs"

POSTAccess check: inline check

Creates an import job for a provider, with its settings, secrets, agent map, dry-run flag and label.

Handler: create_job()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/import/jobs"

src/domains/tickets/import-routes.php:112

/tickets/import/jobs/{id}

GETAccess check: inline check

Returns one import job. Responds 404 if it does not exist.

Handler: get_job()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/import/jobs/{id}"

DELETEAccess check: inline check

Deletes an import job.

Handler: delete_job()

No parameters declared in the route registration.

curl
curl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/import/jobs/{id}"

src/domains/tickets/import-routes.php:162

/tickets/import/jobs/{id}/credentials

POSTAccess check: inline check

Continue a paused or failed import with new credentials.

Handler: credentials_job()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/import/jobs/{id}/credentials"

src/domains/tickets/import-routes.php:223

/tickets/import/jobs/{id}/log

GETAccess check: inline check

Returns the log of an import job, filterable by level and code, with pagination.

Handler: log()

Parameters of GET /tickets/import/jobs/{id}/log
ParameterTypeRequiredDefault or allowed values
levelstring—error | warning | skip | info
codestring—(empty)
pageinteger—1
per_pageinteger—50
curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/import/jobs/{id}/log"

src/domains/tickets/import-routes.php:282

/tickets/import/jobs/{id}/log/csv

GETAccess check: inline check

Stream the whole log as a CSV file.

Handler: log_csv()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/import/jobs/{id}/log/csv"

src/domains/tickets/import-routes.php:272

/tickets/import/jobs/{id}/promote

POSTAccess check: inline check

Run a finished test run for real.

Handler: promote_job()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/import/jobs/{id}/promote"

src/domains/tickets/import-routes.php:248

/tickets/import/jobs/{id}/rerun

POSTAccess check: inline check

Copy a finished import into a new job and (by default) start it.

Handler: rerun_job()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/import/jobs/{id}/rerun"

src/domains/tickets/import-routes.php:233

/tickets/import/jobs/{id}/summary

GETAccess check: inline check

The log grouped by kind of problem.

Handler: summary()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/import/jobs/{id}/summary"

src/domains/tickets/import-routes.php:263

/tickets/import/jobs/{id}/{action}

POSTAccess check: inline check

The source has no description for this route.

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/import/jobs/{id}/{action}"

src/domains/tickets/import-routes.php:180

/tickets/import/providers

GETAccess check: inline check

Lists the import providers and any notices.

Handler: providers()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/import/providers"

src/domains/tickets/import-routes.php:82

/tickets/import/providers/{key}/agents

POSTAccess check: inline check

Matches the provider's agents to your team, using the supplied settings and secrets.

Handler: agents()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/import/providers/{key}/agents"

src/domains/tickets/import-routes.php:101

/tickets/import/providers/{key}/preview

POSTAccess check: inline check

Show how the first tickets of a source would arrive.

Handler: preview()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/import/providers/{key}/preview"

src/domains/tickets/import-routes.php:200

/tickets/import/providers/{key}/test

POSTAccess check: inline check

Tests the connection to an import provider with the supplied settings and secrets.

Handler: test()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/import/providers/{key}/test"

src/domains/tickets/import-routes.php:91

/tickets/inboxes

GETAccess check: require_agent

Lists inboxes.

Handler: list_inboxes()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/inboxes"

POSTAccess check: require_agent

Creates an inbox. Returns 201.

Handler: create_inbox()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/inboxes"

src/domains/tickets/management-routes.php:530

/tickets/inboxes/{inbox_id}

PATCHAccess check: require_agent

Updates an inbox's settings, including its archived state.

Handler: update_inbox()

No parameters declared in the route registration.

curl
curl -X PATCH -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/inboxes/{inbox_id}"

DELETEAccess check: require_agent

Deletes an inbox. Pass fallback_id to say where its tickets go.

Handler: delete_inbox()

No parameters declared in the route registration.

curl
curl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/inboxes/{inbox_id}"

src/domains/tickets/management-routes.php:556

/tickets/integrations/status

GETAccess check: require_manager

Returns the status of the ticket integrations.

Handler: get_integrations_status()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/integrations/status"

src/domains/tickets/routes.php:1010

/tickets/license/validate

POSTAccess check: require_login

Validates a purchase code. Limited to 20 requests per 10 minutes per user; further requests return 429.

Handler: validate_license()

Parameters of POST /tickets/license/validate
ParameterTypeRequiredDefault or allowed values
purchase_codestringYes—
curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/license/validate" \
  -H "Content-Type: application/json" \
  -d '{"purchase_code": "…"}'

src/domains/tickets/routes.php:2496

/tickets/mcp

POSTAccess check: authorize

Handles an MCP request. The JSON-RPC body is passed to the MCP server, which runs as the current user. The response is sent with Cache-Control: no-store.

Handler: handle()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/mcp"

GETDELETEPublic

Answers GET and DELETE requests to the MCP endpoint with 405 and an Allow: POST header, because the endpoint accepts POST only.

Handler: not_allowed()

No parameters declared in the route registration.

curl
curl "https://example.com/wp-json/davo/v1/tickets/mcp"

src/domains/tickets/mcp-routes.php:50

/tickets/mcp/info

GETAccess check: require_manager

Returns information about the MCP server.

Handler: info()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/mcp/info"

src/domains/tickets/mcp-routes.php:67

/tickets/merge

POSTAccess check: require_merge

Merges one ticket into another.

Handler: merge_tickets()

Parameters of POST /tickets/merge
ParameterTypeRequiredDefault or allowed values
source_idintegerYes—
target_idintegerYes—
curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/merge" \
  -H "Content-Type: application/json" \
  -d '{"source_id": 1, "target_id": 1}'

src/domains/tickets/routes.php:788

/tickets/messages/{message_id}

PATCHAccess check: require_login

Edits the content of a reply.

Handler: edit_message()

Parameters of PATCH /tickets/messages/{message_id}
ParameterTypeRequiredDefault or allowed values
contentstringYes—
curl
curl -X PATCH -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/messages/{message_id}" \
  -H "Content-Type: application/json" \
  -d '{"content": "…"}'

DELETEAccess check: require_manager

Deletes a reply from a ticket.

Handler: delete_message()

No parameters declared in the route registration.

curl
curl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/messages/{message_id}"

src/domains/tickets/routes.php:590

/tickets/notifications

GETAccess check: require_agent

Lists the current user's ticket notifications, with per_page, offset and filter. The total is returned in a header.

Handler: list_notifications()

Parameters of GET /tickets/notifications
ParameterTypeRequiredDefault or allowed values
per_pageinteger—20
offsetinteger—0
filterstring—all | unread
curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/notifications"

src/domains/tickets/notification-routes.php:59

/tickets/notifications/{id}

DELETEAccess check: require_agent_with_nonce

Deletes one of the current user's ticket notifications.

Handler: delete_notification()

Parameters of DELETE /tickets/notifications/{id}
ParameterTypeRequiredDefault or allowed values
idintegerYes—
curl
curl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/notifications/{id}"

src/domains/tickets/notification-routes.php:116

/tickets/notifications/read-all

POSTAccess check: require_agent_with_nonce

Marks all of the current user's ticket notifications as read.

Handler: mark_all_read()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/notifications/read-all"

src/domains/tickets/notification-routes.php:106

/tickets/notifications/stream

GETAccess check: require_agent

The source has no description for this route.

Parameters of GET /tickets/notifications/stream
ParameterTypeRequiredDefault or allowed values
sincestringNo—
curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/notifications/stream"

src/domains/tickets/notification-routes.php:136

/tickets/on-behalf

POSTAccess check: require_agent

Creates a ticket on behalf of a customer. Returns 201.

Handler: create_ticket_on_behalf()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/on-behalf"

src/domains/tickets/routes.php:386

/tickets/outreach

POSTAccess check: require_agent

Creates an outreach ticket, started by an agent. Returns 201.

Handler: create_outreach_ticket()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/outreach"

src/domains/tickets/routes.php:397

/tickets/placeholders

GETAccess check: require_agent

Returns the placeholders available in saved replies.

Handler: get_placeholders()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/placeholders"

src/domains/tickets/routes.php:2237

/tickets/presence

GETAccess check: require_agent

Returns who is present on each of the given tickets, from a list of ticket ids.

Handler: get_tickets_presence()

Parameters of GET /tickets/presence
ParameterTypeRequiredDefault or allowed values
idsarrayYes—
curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/presence?ids=[]"

src/domains/tickets/routes.php:1734

/tickets/products

GETAccess check: require_agent

Lists products, optionally filtered by search.

Handler: list_products()

Parameters of GET /tickets/products
ParameterTypeRequiredDefault or allowed values
searchstring——
curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/products"

POSTAccess check: require_agent

Creates a product from a title and description. Returns 201.

Handler: create_product()

Parameters of POST /tickets/products
ParameterTypeRequiredDefault or allowed values
titlestringYes—
descriptionstring—(empty)
curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/products" \
  -H "Content-Type: application/json" \
  -d '{"title": "…"}'

src/domains/tickets/management-routes.php:628

/tickets/products/{product_id}

PATCHAccess check: require_agent

Updates a product's title or description. Only the fields you send change.

Handler: update_product()

Parameters of PATCH /tickets/products/{product_id}
ParameterTypeRequiredDefault or allowed values
titlestring——
descriptionstring——
curl
curl -X PATCH -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/products/{product_id}"

DELETEAccess check: require_agent

Deletes a product.

Handler: delete_product()

No parameters declared in the route registration.

curl
curl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/products/{product_id}"

src/domains/tickets/management-routes.php:658

/tickets/reports/agent

GETAccess check: require_agent

Returns the report for one agent over a date range.

Handler: get_agent_report()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/reports/agent"

src/domains/tickets/management-routes.php:1426

/tickets/reports/overview

GETAccess check: require_agent

Returns the overview report for a date range.

Handler: get_report_overview()

Parameters of GET /tickets/reports/overview
ParameterTypeRequiredDefault or allowed values
fromstring—(empty)
tostring—(empty)
curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/reports/overview"

src/domains/tickets/management-routes.php:942

/tickets/reports/team

GETAccess check: require_agent

Returns the team report for a date range or number of days.

Handler: get_team_report()

Parameters of GET /tickets/reports/team
ParameterTypeRequiredDefault or allowed values
fromstring—(empty)
tostring—(empty)
daysinteger—0
curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/reports/team"

src/domains/tickets/management-routes.php:1393

/tickets/reports/time-entries

GETAccess check: require_agent

Returns time entries for export, filterable by agent and date range, with pagination.

Handler: get_time_entries_export()

Parameters of GET /tickets/reports/time-entries
ParameterTypeRequiredDefault or allowed values
fromstring—(empty)
tostring—(empty)
daysinteger—0
pageinteger—1
per_pageinteger——
curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/reports/time-entries"

src/domains/tickets/management-routes.php:1251

/tickets/reports/trends

GETAccess check: require_agent

Returns report trends for a chosen dimension over a date range, optionally for one inbox.

Handler: get_report_trends()

Parameters of GET /tickets/reports/trends
ParameterTypeRequiredDefault or allowed values
dimensionstringYes—
fromstring—(empty)
tostring—(empty)
daysinteger—0
inbox_idinteger—0
curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/reports/trends?dimension=…"

src/domains/tickets/management-routes.php:979

/tickets/saved-views

GETAccess check: require_agent

Lists the current user's saved views.

Handler: list_saved_views()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/saved-views"

POSTAccess check: require_agent

Saves a view of ticket filters for the current user. Returns 201.

Handler: create_saved_view()

Parameters of POST /tickets/saved-views
ParameterTypeRequiredDefault or allowed values
labelstringYes—
filtersobjectYes—
curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/saved-views" \
  -H "Content-Type: application/json" \
  -d '{"label": "…", "filters": …}'

src/domains/tickets/management-routes.php:823

/tickets/saved-views/{view_id}

PATCHAccess check: require_agent

Updates one of the current user's saved views: its label or filters.

Handler: update_saved_view()

Parameters of PATCH /tickets/saved-views/{view_id}
ParameterTypeRequiredDefault or allowed values
labelstring——
filtersobject——
curl
curl -X PATCH -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/saved-views/{view_id}"

DELETEAccess check: require_agent

Deletes one of the current user's saved views.

Handler: delete_saved_view()

No parameters declared in the route registration.

curl
curl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/saved-views/{view_id}"

src/domains/tickets/management-routes.php:850

/tickets/setup-status

GETAccess check: require_manager

Returns the tickets setup status.

Handler: get_setup_status()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/setup-status"

src/domains/tickets/routes.php:1020

/tickets/statuses

GETPublic

Returns the ticket status definitions.

Handler: get_statuses()

No parameters declared in the route registration.

curl
curl "https://example.com/wp-json/davo/v1/tickets/statuses"

src/domains/tickets/routes.php:1675

/tickets/tags

GETAccess check: require_agent

Lists ticket tags, optionally filtered by search.

Handler: get_tags()

Parameters of GET /tickets/tags
ParameterTypeRequiredDefault or allowed values
searchstring——
curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/tags"

POSTAccess check: require_manage_tags

Creates a ticket tag from a name, auto-assigned department and auto keywords. Returns 201.

Handler: create_tag()

Parameters of POST /tickets/tags
ParameterTypeRequiredDefault or allowed values
namestringYes—
auto_department_idinteger——
auto_keywordsstring——
curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/tags" \
  -H "Content-Type: application/json" \
  -d '{"name": "…"}'

src/domains/tickets/routes.php:1837

/tickets/tags/{tag_id}

PATCHAccess check: require_manage_tags

Updates a tag's name, auto-assigned department or auto keywords. Only the fields you send change.

Handler: update_tag()

Parameters of PATCH /tickets/tags/{tag_id}
ParameterTypeRequiredDefault or allowed values
namestring——
auto_department_idinteger——
auto_keywordsstring——
curl
curl -X PATCH -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/tags/{tag_id}"

DELETEAccess check: require_manage_tags

Deletes a ticket tag.

Handler: delete_tag()

No parameters declared in the route registration.

curl
curl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/tags/{tag_id}"

src/domains/tickets/routes.php:1865

/tickets/tasks/{task_id}

PATCHAccess check: require_agent

Updates a ticket task.

Handler: update_task()

No parameters declared in the route registration.

curl
curl -X PATCH -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/tasks/{task_id}"

DELETEAccess check: require_agent

Deletes a ticket task.

Handler: delete_task()

No parameters declared in the route registration.

curl
curl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/tasks/{task_id}"

src/domains/tickets/routes.php:2022

/tickets/tasks/{task_id}/complete

POSTAccess check: require_agent

Marks a ticket task as completed.

Handler: complete_task()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/tasks/{task_id}/complete"

src/domains/tickets/routes.php:2039

/tickets/team

GETAccess check: require_manager

Lists the support team, filterable by search and status, with pagination.

Handler: list_people()

Parameters of GET /tickets/team
ParameterTypeRequiredDefault or allowed values
searchstring——
statusstring—active | disabled
pageinteger—1
per_pageinteger—20
curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/team"

POSTAccess check: require_manager

Adds a person to the support team. Pass user_id to add an existing account, or email and name to create one, which needs the create_users capability.

Handler: add_person()

Parameters of POST /tickets/team
ParameterTypeRequiredDefault or allowed values
user_idinteger——
emailstring——
namestring——
curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/team"

src/domains/tickets/agents-routes.php:50

/tickets/team/{id}

GETAccess check: require_self_or_manager

Returns one person on the support team.

Handler: get_person()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/team/{id}"

DELETEAccess check: require_manager

Removes a person from the support team. Tickets are reassigned to reassign_to.

Handler: remove_person()

Parameters of DELETE /tickets/team/{id}
ParameterTypeRequiredDefault or allowed values
reassign_tointeger——
curl
curl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/team/{id}"

src/domains/tickets/agents-routes.php:90

/tickets/team/{id}/permissions

PATCHAccess check: require_manager

Turns individual permissions on or off for a team member. Send permissions as a map of permission key to true or false.

Handler: update_permissions()

Parameters of PATCH /tickets/team/{id}/permissions
ParameterTypeRequiredDefault or allowed values
permissionsobjectYes—
curl
curl -X PATCH -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/team/{id}/permissions" \
  -H "Content-Type: application/json" \
  -d '{"permissions": …}'

src/domains/tickets/agents-routes.php:122

/tickets/team/{id}/profile

PATCHAccess check: require_self_or_manager

Updates a team member's title and signature.

Handler: update_profile()

Parameters of PATCH /tickets/team/{id}/profile
ParameterTypeRequiredDefault or allowed values
titlestring——
signaturestring——
curl
curl -X PATCH -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/team/{id}/profile"

src/domains/tickets/agents-routes.php:108

/tickets/team/{id}/status

POSTAccess check: require_manager

Disables or re-enables a team member, using disabled, with an optional reassign_to for their tickets.

Handler: update_status()

Parameters of POST /tickets/team/{id}/status
ParameterTypeRequiredDefault or allowed values
disabledbooleanYes—
reassign_tointeger——
curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/team/{id}/status" \
  -H "Content-Type: application/json" \
  -d '{"disabled": true}'

src/domains/tickets/agents-routes.php:138

/tickets/templates

GETAccess check: require_agent

Lists ticket templates.

Handler: get_ticket_templates()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/templates"

POSTAccess check: require_agent

Creates a ticket template. Returns 201.

Handler: create_ticket_template()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/templates"

src/domains/tickets/management-routes.php:1172

/tickets/templates/{id}

PUTPATCHAccess check: require_agent

Updates a ticket template.

Handler: update_ticket_template()

No parameters declared in the route registration.

curl
curl -X PUT -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/templates/{id}"

DELETEAccess check: require_agent

Deletes a ticket template.

Handler: delete_ticket_template()

No parameters declared in the route registration.

curl
curl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/templates/{id}"

src/domains/tickets/management-routes.php:1190

/tickets/time-entries/{entry_id}

DELETEAccess check: require_agent

Deletes a time entry.

Handler: delete_time_entry()

No parameters declared in the route registration.

curl
curl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/time-entries/{entry_id}"

PATCHAccess check: require_agent

Updates a time entry's minutes, note or billable flag.

Handler: update_time_entry()

Parameters of PATCH /tickets/time-entries/{entry_id}
ParameterTypeRequiredDefault or allowed values
minutesintegerYes—
notestring——
is_billableboolean——
curl
curl -X PATCH -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/time-entries/{entry_id}" \
  -H "Content-Type: application/json" \
  -d '{"minutes": 1}'

src/domains/tickets/management-routes.php:221

/tickets/webhook

POSTAccess check: verify_creation_webhook_secret

Creates a ticket from an incoming integration webhook. Returns 201.

Handler: create_ticket_via_webhook()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/webhook"

src/domains/tickets/routes.php:2556

/tickets/workflows

GETAccess check: require_agent

Lists workflows.

Handler: list_workflows()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/workflows"

POSTAccess check: require_agent

Creates a workflow. Returns 201.

Handler: create_workflow()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/workflows"

src/domains/tickets/management-routes.php:373

/tickets/workflows/{workflow_id}

PATCHAccess check: require_agent

Updates a workflow.

Handler: update_workflow()

No parameters declared in the route registration.

curl
curl -X PATCH -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/workflows/{workflow_id}"

DELETEAccess check: require_agent

Deletes a workflow.

Handler: delete_workflow()

No parameters declared in the route registration.

curl
curl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/workflows/{workflow_id}"

src/domains/tickets/management-routes.php:452

/tickets/workflows/{workflow_id}/duplicate

POSTAccess check: require_agent

Duplicates a workflow. Returns 201.

Handler: duplicate_workflow()

No parameters declared in the route registration.

curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/workflows/{workflow_id}/duplicate"

src/domains/tickets/management-routes.php:470

/tickets/workflows/{workflow_id}/run

POSTAccess check: require_agent

Runs a workflow on a ticket.

Handler: run_workflow()

Parameters of POST /tickets/workflows/{workflow_id}/run
ParameterTypeRequiredDefault or allowed values
ticket_idintegerYes—
curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/workflows/{workflow_id}/run" \
  -H "Content-Type: application/json" \
  -d '{"ticket_id": 1}'

src/domains/tickets/management-routes.php:497

/tickets/workflows/{workflow_id}/test

POSTAccess check: require_agent

Tests a workflow against a ticket and a sample event, without applying it.

Handler: test_workflow()

Parameters of POST /tickets/workflows/{workflow_id}/test
ParameterTypeRequiredDefault or allowed values
ticket_idintegerYes—
eventobject——
curl
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/workflows/{workflow_id}/test" \
  -H "Content-Type: application/json" \
  -d '{"ticket_id": 1}'

src/domains/tickets/management-routes.php:480

/tickets/workflows/describe

GETAccess check: require_agent

Describes the triggers, conditions and actions workflows can use.

Handler: describe_workflows()

No parameters declared in the route registration.

curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/workflows/describe"

src/domains/tickets/management-routes.php:403

/tickets/workflows/order

PUTAccess check: require_agent

Sets the order workflows run in, from a list of workflow ids.

Handler: reorder_workflows()

Parameters of PUT /tickets/workflows/order
ParameterTypeRequiredDefault or allowed values
idsarrayYes—
curl
curl -X PUT -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/workflows/order" \
  -H "Content-Type: application/json" \
  -d '{"ids": []}'

src/domains/tickets/management-routes.php:413

/tickets/workflows/runs

GETAccess check: require_agent

Lists workflow runs, filterable by workflow, ticket and result, with pagination.

Handler: list_workflow_runs()

Parameters of GET /tickets/workflows/runs
ParameterTypeRequiredDefault or allowed values
workflow_idinteger——
ticket_idinteger——
resultstring——
pageinteger—1
per_pageinteger—25
curl
curl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/workflows/runs"

src/domains/tickets/management-routes.php:429

Note. Generated from the plugin source. Parameters are the ones declared when the route is registered; a parameter marked “see source” uses a shared definition. Responses are not documented here. Authenticate as for any WordPress REST route, for example with an application password over HTTPS; the example paths use https://example.com.

See it on your own site.

Davo is a WordPress theme and plugin by Exorex.

  • Runs on your own WordPress
  • Guided setup wizard
  • AI is off until you switch it on
  • Read the licence on the marketplace first