GET Access 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 Parameter Type Required Default or allowed values match string — all | any assigned_agent integer — — unassigned boolean — —
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets" POST Access check: require_login
Creates a ticket as the current user. Returns 201.
Handler: create_ticket()
No parameters declared in the route registration.
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets" src/domains/tickets/routes.php:259
POST Access check: require_agent
Assigns a ticket to an agent group.
Handler: assign_ticket_to_group()
Parameters of POST /tickets/{id}/assign-group Parameter Type Required Default or allowed values group_id integer Yes —
curl Copycurl -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
PUT PATCH Access check: require_agent
Bookmarks a ticket for the current user.
Handler: add_bookmark()
No parameters declared in the route registration.
curl Copycurl -X PUT -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/bookmark" DELETE Access check: require_agent
Removes the current user's bookmark from a ticket.
Handler: remove_bookmark()
No parameters declared in the route registration.
curl Copycurl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/bookmark" src/domains/tickets/routes.php:3199
PUT PATCH Access check: require_agent
Changes the customer a ticket belongs to.
Handler: change_ticket_customer()
Parameters of PUT/PATCH /tickets/{id}/customer Parameter Type Required Default or allowed values user_id integer Yes —
curl Copycurl -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
PATCH Access check: require_agent
Sets a ticket's estimated time in minutes.
Handler: update_estimated_time()
Parameters of PATCH /tickets/{id}/estimated-time Parameter Type Required Default or allowed values minutes integer Yes —
curl Copycurl -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
PUT PATCH Access 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 Parameter Type Required Default or allowed values client_id see source — — state string — —
curl Copycurl -X PUT -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/presence" DELETE Access 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 Parameter Type Required Default or allowed values client_id see source — —
curl Copycurl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/presence" src/domains/tickets/routes.php:3232
POST Access 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 Parameter Type Required Default or allowed values client_id see source — —
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/presence/leave" src/domains/tickets/routes.php:3260
PATCH Access check: require_agent
Changes the product a ticket belongs to.
Handler: change_ticket_product()
No parameters declared in the route registration.
curl Copycurl -X PATCH -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/product" src/domains/tickets/management-routes.php:679
PUT PATCH Access check: require_login
Marks a ticket as seen by the current user.
Handler: mark_seen()
No parameters declared in the route registration.
curl Copycurl -X PUT -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/seen" src/domains/tickets/routes.php:3217
PUT PATCH Access check: require_agent
Makes the current user watch a ticket.
Handler: add_watch()
No parameters declared in the route registration.
curl Copycurl -X PUT -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/watch" DELETE Access check: require_agent
Stops the current user watching a ticket.
Handler: remove_watch()
No parameters declared in the route registration.
curl Copycurl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/watch" src/domains/tickets/routes.php:3181
DELETE Access check: require_agent
Deletes a ticket.
Handler: delete_ticket()
No parameters declared in the route registration.
curl Copycurl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}" src/domains/tickets/management-routes.php:211
GET Access check: require_login
Returns one ticket the current user can see.
Handler: get_ticket()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}" src/domains/tickets/routes.php:428
POST Access 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} Parameter Type Required Default or allowed values text string — — instruction string — —
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/ai/{action}" src/domains/tickets/ai-routes.php:69
PATCH Access check: require_agent
Assigns a ticket to an agent, with an optional reason.
Handler: assign_ticket()
Parameters of PATCH /tickets/{id}/assign Parameter Type Required Default or allowed values agent_id integer Yes — reason string — (empty)
curl Copycurl -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
GET Access check: require_agent
Lists the audit trail for one ticket.
Handler: list_for_ticket()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/audit" src/domains/tickets/audit-routes.php:93
PATCH Access check: require_agent
Sets the CC email addresses on a ticket.
Handler: update_ticket_cc()
Parameters of PATCH /tickets/{id}/cc Parameter Type Required Default or allowed values addresses array Yes —
curl Copycurl -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
PATCH Access check: require_login
Changes the priority the customer chose for a ticket.
Handler: change_client_priority()
Parameters of PATCH /tickets/{id}/client-priority Parameter Type Required Default or allowed values priority string Yes —
curl Copycurl -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
POST Access check: require_login
Closes a ticket as its customer.
Handler: close_ticket()
No parameters declared in the route registration.
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/close" src/domains/tickets/routes.php:718
PATCH Access check: require_agent
Updates a ticket's collaborators and returns the updated ticket.
Handler: update_collaborators()
No parameters declared in the route registration.
curl Copycurl -X PATCH -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/collaborators" src/domains/tickets/management-routes.php:149
PATCH Access check: require_agent
Updates a ticket's custom field values.
Handler: update_custom_fields()
No parameters declared in the route registration.
curl Copycurl -X PATCH -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/custom-fields" src/domains/tickets/routes.php:778
GET Access 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 Parameter Type Required Default or allowed values page integer — 1 per_page integer — 5
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/customer-history" src/domains/tickets/routes.php:2214
PATCH Access 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 Copycurl -X PATCH -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/departments" src/domains/tickets/management-routes.php:166
POST Access check: require_agent
Saves a draft reply, with optional attachments. Returns 201.
Handler: save_draft_reply()
Parameters of POST /tickets/{id}/drafts Parameter Type Required Default or allowed values content string Yes — attachment_ids array — —
curl Copycurl -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
GET Access check: require_agent
Lists the draft replies on a ticket.
Handler: list_drafts()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/drafts" src/domains/tickets/routes.php:535
GET Access 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 Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/duplicates" src/domains/tickets/ai-routes.php:83
POST Access check: require_login
Submits a customer's rating and comment on a ticket.
Handler: submit_feedback()
Parameters of POST /tickets/{id}/feedback Parameter Type Required Default or allowed values rating integer Yes — comment string — —
curl Copycurl -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
GET Access check: require_login
Return the current viewer's downloadable files on this ticket.
Handler: get_conversation_files()
Parameters of GET /tickets/{id}/files Parameter Type Required Default or allowed values before see source — —
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/files" src/domains/tickets/routes.php:114
PATCH Access check: require_agent
Moves a ticket to another inbox.
Handler: move_ticket_to_inbox()
Parameters of PATCH /tickets/{id}/inbox Parameter Type Required Default or allowed values inbox_id integer Yes —
curl Copycurl -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
POST Access check: require_agent
Locks a ticket, with an optional reason.
Handler: lock_ticket()
Parameters of POST /tickets/{id}/lock Parameter Type Required Default or allowed values reason string Yes —
curl Copycurl -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
GET Access 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 Parameter Type Required Default or allowed values page integer — 1 per_page integer — 20 anchor_message integer — —
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/messages" src/domains/tickets/routes.php:438
GET Access check: require_login
Return matches in this ticket's posted messages.
Handler: search_conversation()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/messages/search" src/domains/tickets/routes.php:92
POST Access 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 Parameter Type Required Default or allowed values content string Yes — attachment_ids array — —
curl Copycurl -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
PATCH Access check: require_agent
Changes a ticket's priority.
Handler: change_priority()
Parameters of PATCH /tickets/{id}/priority Parameter Type Required Default or allowed values priority string Yes —
curl Copycurl -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
PATCH Access check: require_login
Sets the purchase code on a ticket.
Handler: set_purchase_code()
Parameters of PATCH /tickets/{id}/purchase-code Parameter Type Required Default or allowed values purchase_code string Yes —
curl Copycurl -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
POST Access check: require_login
Reopens a ticket.
Handler: reopen_ticket()
No parameters declared in the route registration.
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/reopen" src/domains/tickets/routes.php:690
POST Access check: require_login
Adds a reply to a ticket, with optional attachments.
Handler: add_reply()
Parameters of POST /tickets/{id}/reply Parameter Type Required Default or allowed values content string Yes — attachment_ids array — —
curl Copycurl -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
POST Access check: require_login
Revokes a guest's access to a ticket.
Handler: revoke_guest_access()
No parameters declared in the route registration.
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/revoke-guest-access" src/domains/tickets/routes.php:907
POST Access 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 Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/split" src/domains/tickets/management-routes.php:183
PATCH Access check: require_agent
Changes a ticket's status.
Handler: change_status()
Parameters of PATCH /tickets/{id}/status Parameter Type Required Default or allowed values status string Yes —
curl Copycurl -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
GET Access check: require_agent
Lists the tasks on a ticket.
Handler: get_tasks()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/tasks" POST Access check: require_agent
Creates a task on a ticket. Returns 201.
Handler: create_task()
Parameters of POST /tickets/{id}/tasks Parameter Type Required Default or allowed values title string Yes —
curl Copycurl -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
GET Access check: require_agent
Lists the time entries logged on a ticket.
Handler: get_time_entries()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/time-entries" POST Access 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 Parameter Type Required Default or allowed values minutes integer Yes — note string — — is_billable boolean — true
curl Copycurl -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
POST Access check: require_agent
Starts a time timer on a ticket.
Handler: start_time_timer()
No parameters declared in the route registration.
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/time-timer" DELETE Access 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 Copycurl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/time-timer" src/domains/tickets/routes.php:3291
POST Access 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 Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/time-timer/ping" src/domains/tickets/routes.php:3309
POST Access 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 Parameter Type Required Default or allowed values note string — —
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/time-timer/stop" src/domains/tickets/routes.php:3319
GET Access check: require_login
Returns a ticket's timeline.
Handler: get_timeline()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/timeline" src/domains/tickets/routes.php:2174
POST Access check: require_agent
Unlocks a ticket.
Handler: unlock_ticket()
No parameters declared in the route registration.
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/unlock" src/domains/tickets/routes.php:746
POST Access check: require_agent
Reverses the merge of a ticket.
Handler: unmerge_ticket()
No parameters declared in the route registration.
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/{id}/unmerge" src/domains/tickets/management-routes.php:201
GET Access check: require_agent
Lists the agent groups.
Handler: list_agent_groups()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/agent-groups" POST Access 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 Parameter Type Required Default or allowed values name string Yes — description string — (empty) agent_ids array — array()
curl Copycurl -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
PATCH Access 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} Parameter Type Required Default or allowed values name string — — description string — — agent_ids array — —
curl Copycurl -X PATCH -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/agent-groups/{group_id}" DELETE Access 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} Parameter Type Required Default or allowed values fallback_group_id integer — 0
curl Copycurl -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
GET Access check: require_agent
Lists agents.
Handler: list_agents()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/agents" src/domains/tickets/routes.php:1714
PATCH Access check: require_agent
Sets the departments an agent belongs to.
Handler: update_agent_departments()
Parameters of PATCH /tickets/agents/{agent_id}/departments Parameter Type Required Default or allowed values departments array Yes —
curl Copycurl -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
PATCH Access check: require_agent
Sets the inboxes an agent can work in.
Handler: update_agent_inboxes()
Parameters of PATCH /tickets/agents/{agent_id}/inboxes Parameter Type Required Default or allowed values inboxes array Yes —
curl Copycurl -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
GET Access 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 Parameter Type Required Default or allowed values action string — — source string — agent | mcp result string — ok | failed | blocked page integer — 1 per_page integer — 20
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/ai/log" src/domains/tickets/ai-routes.php:93
GET Access 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 Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/ai/log/{log_id}" src/domains/tickets/ai-routes.php:128
GET Access check: require_agent
Returns the AI status for the current user.
Handler: status()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/ai/status" src/domains/tickets/ai-routes.php:59
GET Access check: require_log_viewer
Returns AI usage for the last days days (1 to 365).
Handler: usage()
Parameters of GET /tickets/ai/usage Parameter Type Required Default or allowed values days integer — 30
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/ai/usage" src/domains/tickets/ai-routes.php:138
GET Access 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 Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/audit" src/domains/tickets/audit-routes.php:63
GET Access check: require_log_viewer
Lists the audit event types and their titles.
Handler: list_types()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/audit/types" src/domains/tickets/audit-routes.php:83
POST Access 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 Parameter Type Required Default or allowed values ticket_ids array Yes — status string — — priority string — — agent_id integer — — add_tags array — — remove_tags array — —
curl Copycurl -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
POST Access check: require_agent
Deletes several tickets at once from a list of ticket ids.
Handler: bulk_delete_tickets()
Parameters of POST /tickets/bulk-delete Parameter Type Required Default or allowed values ticket_ids see source — —
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/bulk-delete" src/domains/tickets/management-routes.php:260
POST Access check: require_agent
Merges several tickets into the ticket given by target_id.
Handler: bulk_merge_tickets()
Parameters of POST /tickets/bulk-merge Parameter Type Required Default or allowed values ticket_ids see source — — target_id integer Yes —
curl Copycurl -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
GET Access 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 Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/canned-responses" POST Access check: require_agent
Creates a saved reply. Returns 201.
Handler: create_canned_response()
Parameters of POST /tickets/canned-responses Parameter Type Required Default or allowed values title string Yes — content string Yes —
curl Copycurl -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
PATCH Access 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} Parameter Type Required Default or allowed values title string — — content string — — category string — — is_shared boolean — —
curl Copycurl -X PATCH -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/canned-responses/{response_id}" DELETE Access check: require_agent
Deletes a saved reply.
Handler: delete_canned_response()
No parameters declared in the route registration.
curl Copycurl -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
POST Access 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 Parameter Type Required Default or allowed values ticket_id integer Yes —
curl Copycurl -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
POST Access 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 Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/channels/{provider}/test" src/domains/tickets/routes.php:2727
GET Access 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 Parameter Type Required Default or allowed values provider string — — result string — ok | retrying | failed | skipped page integer — 1 per_page integer — 20
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/channels/log" src/domains/tickets/routes.php:2686
POST Access 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 Copycurl -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
POST Access 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 Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/channels/slack/command" src/domains/tickets/routes.php:2750
POST Access 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 Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/channels/telegram/connect" src/domains/tickets/routes.php:2770
POST Access 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 Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/channels/telegram/webhook" src/domains/tickets/routes.php:2740
POST Access 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 Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/channels/whatsapp/webhook" src/domains/tickets/routes.php:2760
GET Access 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 Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/counts" src/domains/tickets/routes.php:1704
GET Access check: require_agent
Lists the ticket custom field definitions.
Handler: get_custom_field_definitions()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/custom-fields" src/domains/tickets/management-routes.php:139
POST Access check: require_agent
Creates a customer account from an email and name. Returns 201.
Handler: create_customer()
Parameters of POST /tickets/customer-accounts Parameter Type Required Default or allowed values email string Yes — name string — (empty)
curl Copycurl -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
POST Access 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 Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/customer-block" DELETE Access check: require_agent
Unblocks a customer, by user id or email.
Handler: unblock_customer()
No parameters declared in the route registration.
curl Copycurl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/customer-block" src/domains/tickets/management-routes.php:1209
GET Access check: require_agent
Lists customers, filterable by search, with sorting and pagination.
Handler: list_customers()
Parameters of GET /tickets/customer-directory Parameter Type Required Default or allowed values search string — (empty) page integer — 1 per_page integer — — sort string — recent
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/customer-directory" src/domains/tickets/management-routes.php:1040
POST Access check: require_agent
Merges one customer into another account.
Handler: merge_customers()
Parameters of POST /tickets/customer-merge Parameter Type Required Default or allowed values from_user_id integer — 0 from_email string — (empty) to_user_id integer Yes —
curl Copycurl -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
GET Access 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 Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/customer-notes" POST Access check: require_agent
Adds an internal note to a customer. Returns 201.
Handler: add_customer_note()
No parameters declared in the route registration.
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/customer-notes" src/domains/tickets/management-routes.php:1109
DELETE Access check: require_agent
Deletes a customer note.
Handler: delete_customer_note()
No parameters declared in the route registration.
curl Copycurl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/customer-notes/{id}" src/domains/tickets/management-routes.php:1233
GET Access 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 Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/customer-profile" src/domains/tickets/management-routes.php:1098
GET Access 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 Parameter Type Required Default or allowed values user_id integer — 0 email string — (empty)
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/customer-transfers" src/domains/tickets/management-routes.php:1353
POST Access check: require_agent
Undoes a customer transfer.
Handler: undo_customer_transfer()
No parameters declared in the route registration.
curl Copycurl -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
GET Access check: require_agent
Searches customers by name or email.
Handler: search_customers()
Parameters of GET /tickets/customers Parameter Type Required Default or allowed values search string — (empty)
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/customers" src/domains/tickets/routes.php:1751
GET Access check: require_login
Returns the current user's tickets overview as a customer.
Handler: get_dashboard()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/dashboard" src/domains/tickets/routes.php:2194
POST Access check: require_agent
Creates a department from a name and optional parent. Returns 201.
Handler: create_department()
Parameters of POST /tickets/departments Parameter Type Required Default or allowed values name string Yes — parent integer — 0
curl Copycurl -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
GET Access check: require_agent
Lists departments.
Handler: list_departments()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/departments" src/domains/tickets/routes.php:1724
PATCH Access check: require_agent
Updates a department's name or parent.
Handler: update_department()
Parameters of PATCH /tickets/departments/{department_id} Parameter Type Required Default or allowed values name string — — parent integer — —
curl Copycurl -X PATCH -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/departments/{department_id}" DELETE Access check: require_agent
Deletes a department.
Handler: delete_department()
No parameters declared in the route registration.
curl Copycurl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/departments/{department_id}" src/domains/tickets/management-routes.php:316
PATCH Access check: require_agent
PATCH /tickets/drafts/{message_id} — auto-save.
Handler: update_draft()
Parameters of PATCH /tickets/drafts/{message_id} Parameter Type Required Default or allowed values content string Yes —
curl Copycurl -X PATCH -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/drafts/{message_id}" \
-H "Content-Type: application/json" \
-d '{"content": "…"}' DELETE Access check: require_agent
Discards a draft reply.
Handler: discard_draft()
No parameters declared in the route registration.
curl Copycurl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/drafts/{message_id}" src/domains/tickets/routes.php:567
POST Access check: require_agent
Approves a draft reply and sends it.
Handler: approve_draft()
Parameters of POST /tickets/drafts/{message_id}/approve Parameter Type Required Default or allowed values based_on_message_id integer — 0 force boolean — false
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/drafts/{message_id}/approve" src/domains/tickets/routes.php:545
POST Access check: require_manager
Returns a preview of one of the ticket emails, by type.
Handler: preview_email()
Parameters of POST /tickets/email-preview Parameter Type Required Default or allowed values type string Yes —
curl Copycurl -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
POST Access 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 Parameter Type Required Default or allowed values type string Yes —
curl Copycurl -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
POST Access 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 Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/email/inbound" src/domains/tickets/routes.php:2628
GET Access check: require_manager
Inbound emails that were rejected, ignored or failed, newest first.
Handler: list_inbound_email_log()
Parameters of GET /tickets/email/log Parameter Type Required Default or allowed values status string — processed | rejected | ignored | failed page integer — 1 per_page integer — 20
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/email/log" src/domains/tickets/routes.php:2638
POST Access check: require_manager
Retries processing a logged inbound email. Returns 201.
Handler: retry_inbound_email()
No parameters declared in the route registration.
curl Copycurl -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
POST Access 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 Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/guest" src/domains/tickets/routes.php:408
GET Access check: require_guest_session
Returns a guest ticket.
Handler: get_guest_ticket()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/guest/{id}" src/domains/tickets/routes.php:857
GET Access 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 Parameter Type Required Default or allowed values page integer — 1 per_page integer — 20 anchor_message integer — —
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/guest/{id}/messages" src/domains/tickets/routes.php:867
GET Access check: require_guest_session
The source has no description for this route.
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/guest/{id}/messages/search" src/domains/tickets/routes.php:103
POST Access check: require_guest_session
Adds a reply to a guest ticket. Returns 201.
Handler: add_guest_reply()
Parameters of POST /tickets/guest/{id}/reply Parameter Type Required Default or allowed values content string Yes —
curl Copycurl -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
GET Access check: require_guest_session
Returns a guest ticket's timeline.
Handler: get_guest_timeline()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/guest/{id}/timeline" src/domains/tickets/routes.php:2184
GET Access check: inline check
Host checks that decide how well a long import runs.
Handler: environment()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/import/environment" src/domains/tickets/import-routes.php:191
GET Access check: inline check
Lists import jobs.
Handler: list_jobs()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/import/jobs" POST Access 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 Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/import/jobs" src/domains/tickets/import-routes.php:112
GET Access 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 Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/import/jobs/{id}" DELETE Access check: inline check
Deletes an import job.
Handler: delete_job()
No parameters declared in the route registration.
curl Copycurl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/import/jobs/{id}" src/domains/tickets/import-routes.php:162
POST Access check: inline check
Continue a paused or failed import with new credentials.
Handler: credentials_job()
No parameters declared in the route registration.
curl Copycurl -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
GET Access 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 Parameter Type Required Default or allowed values level string — error | warning | skip | info code string — (empty) page integer — 1 per_page integer — 50
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/import/jobs/{id}/log" src/domains/tickets/import-routes.php:282
GET Access check: inline check
Stream the whole log as a CSV file.
Handler: log_csv()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/import/jobs/{id}/log/csv" src/domains/tickets/import-routes.php:272
POST Access check: inline check
Run a finished test run for real.
Handler: promote_job()
No parameters declared in the route registration.
curl Copycurl -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
POST Access 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 Copycurl -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
GET Access check: inline check
The log grouped by kind of problem.
Handler: summary()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/import/jobs/{id}/summary" src/domains/tickets/import-routes.php:263
POST Access check: inline check
The source has no description for this route.
No parameters declared in the route registration.
curl Copycurl -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
GET Access check: inline check
Lists the import providers and any notices.
Handler: providers()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/import/providers" src/domains/tickets/import-routes.php:82
POST Access 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 Copycurl -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
POST Access check: inline check
Show how the first tickets of a source would arrive.
Handler: preview()
No parameters declared in the route registration.
curl Copycurl -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
POST Access 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 Copycurl -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
GET Access check: require_agent
Lists inboxes.
Handler: list_inboxes()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/inboxes" POST Access check: require_agent
Creates an inbox. Returns 201.
Handler: create_inbox()
No parameters declared in the route registration.
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/inboxes" src/domains/tickets/management-routes.php:530
PATCH Access check: require_agent
Updates an inbox's settings, including its archived state.
Handler: update_inbox()
No parameters declared in the route registration.
curl Copycurl -X PATCH -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/inboxes/{inbox_id}" DELETE Access 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 Copycurl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/inboxes/{inbox_id}" src/domains/tickets/management-routes.php:556
GET Access check: require_manager
Returns the status of the ticket integrations.
Handler: get_integrations_status()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/integrations/status" src/domains/tickets/routes.php:1010
POST Access 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 Parameter Type Required Default or allowed values purchase_code string Yes —
curl Copycurl -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
POST Access 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 Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/mcp" GET DELETE Public
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 Copycurl "https://example.com/wp-json/davo/v1/tickets/mcp" src/domains/tickets/mcp-routes.php:50
GET Access check: require_manager
Returns information about the MCP server.
Handler: info()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/mcp/info" src/domains/tickets/mcp-routes.php:67
POST Access check: require_merge
Merges one ticket into another.
Handler: merge_tickets()
Parameters of POST /tickets/merge Parameter Type Required Default or allowed values source_id integer Yes — target_id integer Yes —
curl Copycurl -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
PATCH Access check: require_login
Edits the content of a reply.
Handler: edit_message()
Parameters of PATCH /tickets/messages/{message_id} Parameter Type Required Default or allowed values content string Yes —
curl Copycurl -X PATCH -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/messages/{message_id}" \
-H "Content-Type: application/json" \
-d '{"content": "…"}' DELETE Access check: require_manager
Deletes a reply from a ticket.
Handler: delete_message()
No parameters declared in the route registration.
curl Copycurl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/messages/{message_id}" src/domains/tickets/routes.php:590
GET Access 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 Parameter Type Required Default or allowed values per_page integer — 20 offset integer — 0 filter string — all | unread
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/notifications" src/domains/tickets/notification-routes.php:59
DELETE Access check: require_agent_with_nonce
Deletes one of the current user's ticket notifications.
Handler: delete_notification()
Parameters of DELETE /tickets/notifications/{id} Parameter Type Required Default or allowed values id integer Yes —
curl Copycurl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/notifications/{id}" src/domains/tickets/notification-routes.php:116
POST Access 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 Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/notifications/read-all" src/domains/tickets/notification-routes.php:106
GET Access check: require_agent
The source has no description for this route.
Parameters of GET /tickets/notifications/stream Parameter Type Required Default or allowed values since string No —
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/notifications/stream" src/domains/tickets/notification-routes.php:136
POST Access 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 Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/on-behalf" src/domains/tickets/routes.php:386
POST Access 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 Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/outreach" src/domains/tickets/routes.php:397
GET Access check: require_agent
Returns the placeholders available in saved replies.
Handler: get_placeholders()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/placeholders" src/domains/tickets/routes.php:2237
GET Access 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 Parameter Type Required Default or allowed values ids array Yes —
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/presence?ids=[]" src/domains/tickets/routes.php:1734
GET Access check: require_agent
Lists products, optionally filtered by search.
Handler: list_products()
Parameters of GET /tickets/products Parameter Type Required Default or allowed values search string — —
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/products" POST Access check: require_agent
Creates a product from a title and description. Returns 201.
Handler: create_product()
Parameters of POST /tickets/products Parameter Type Required Default or allowed values title string Yes — description string — (empty)
curl Copycurl -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
PATCH Access 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} Parameter Type Required Default or allowed values title string — — description string — —
curl Copycurl -X PATCH -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/products/{product_id}" DELETE Access check: require_agent
Deletes a product.
Handler: delete_product()
No parameters declared in the route registration.
curl Copycurl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/products/{product_id}" src/domains/tickets/management-routes.php:658
GET Access 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 Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/reports/agent" src/domains/tickets/management-routes.php:1426
GET Access check: require_agent
Returns the overview report for a date range.
Handler: get_report_overview()
Parameters of GET /tickets/reports/overview Parameter Type Required Default or allowed values from string — (empty) to string — (empty)
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/reports/overview" src/domains/tickets/management-routes.php:942
GET Access 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 Parameter Type Required Default or allowed values from string — (empty) to string — (empty) days integer — 0
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/reports/team" src/domains/tickets/management-routes.php:1393
GET Access 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 Parameter Type Required Default or allowed values from string — (empty) to string — (empty) days integer — 0 page integer — 1 per_page integer — —
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/reports/time-entries" src/domains/tickets/management-routes.php:1251
GET Access 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 Parameter Type Required Default or allowed values dimension string Yes — from string — (empty) to string — (empty) days integer — 0 inbox_id integer — 0
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/reports/trends?dimension=…" src/domains/tickets/management-routes.php:979
GET Access check: require_agent
Lists the current user's saved views.
Handler: list_saved_views()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/saved-views" POST Access 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 Parameter Type Required Default or allowed values label string Yes — filters object Yes —
curl Copycurl -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
PATCH Access 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} Parameter Type Required Default or allowed values label string — — filters object — —
curl Copycurl -X PATCH -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/saved-views/{view_id}" DELETE Access check: require_agent
Deletes one of the current user's saved views.
Handler: delete_saved_view()
No parameters declared in the route registration.
curl Copycurl -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
GET Access check: require_manager
Returns the tickets setup status.
Handler: get_setup_status()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/setup-status" src/domains/tickets/routes.php:1020
GET Public
Returns the ticket status definitions.
Handler: get_statuses()
No parameters declared in the route registration.
curl Copycurl "https://example.com/wp-json/davo/v1/tickets/statuses" src/domains/tickets/routes.php:1675
GET Access check: require_agent
Lists ticket tags, optionally filtered by search.
Handler: get_tags()
Parameters of GET /tickets/tags Parameter Type Required Default or allowed values search string — —
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/tags" POST Access 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 Parameter Type Required Default or allowed values name string Yes — auto_department_id integer — — auto_keywords string — —
curl Copycurl -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
PATCH Access check: require_agent
Updates a ticket task.
Handler: update_task()
No parameters declared in the route registration.
curl Copycurl -X PATCH -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/tasks/{task_id}" DELETE Access check: require_agent
Deletes a ticket task.
Handler: delete_task()
No parameters declared in the route registration.
curl Copycurl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/tasks/{task_id}" src/domains/tickets/routes.php:2022
POST Access check: require_agent
Marks a ticket task as completed.
Handler: complete_task()
No parameters declared in the route registration.
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/tasks/{task_id}/complete" src/domains/tickets/routes.php:2039
GET Access check: require_manager
Lists the support team, filterable by search and status, with pagination.
Handler: list_people()
Parameters of GET /tickets/team Parameter Type Required Default or allowed values search string — — status string — active | disabled page integer — 1 per_page integer — 20
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/team" POST Access 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 Parameter Type Required Default or allowed values user_id integer — — email string — — name string — —
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/team" src/domains/tickets/agents-routes.php:50
GET Access check: require_self_or_manager
Returns one person on the support team.
Handler: get_person()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/team/{id}" DELETE Access 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} Parameter Type Required Default or allowed values reassign_to integer — —
curl Copycurl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/team/{id}" src/domains/tickets/agents-routes.php:90
PATCH Access 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 Parameter Type Required Default or allowed values permissions object Yes —
curl Copycurl -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
PATCH Access check: require_self_or_manager
Updates a team member's title and signature.
Handler: update_profile()
Parameters of PATCH /tickets/team/{id}/profile Parameter Type Required Default or allowed values title string — — signature string — —
curl Copycurl -X PATCH -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/team/{id}/profile" src/domains/tickets/agents-routes.php:108
POST Access 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 Parameter Type Required Default or allowed values disabled boolean Yes — reassign_to integer — —
curl Copycurl -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
GET Access check: require_agent
Lists ticket templates.
Handler: get_ticket_templates()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/templates" POST Access check: require_agent
Creates a ticket template. Returns 201.
Handler: create_ticket_template()
No parameters declared in the route registration.
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/templates" src/domains/tickets/management-routes.php:1172
PUT PATCH Access check: require_agent
Updates a ticket template.
Handler: update_ticket_template()
No parameters declared in the route registration.
curl Copycurl -X PUT -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/templates/{id}" DELETE Access check: require_agent
Deletes a ticket template.
Handler: delete_ticket_template()
No parameters declared in the route registration.
curl Copycurl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/templates/{id}" src/domains/tickets/management-routes.php:1190
DELETE Access check: require_agent
Deletes a time entry.
Handler: delete_time_entry()
No parameters declared in the route registration.
curl Copycurl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/time-entries/{entry_id}" PATCH Access 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} Parameter Type Required Default or allowed values minutes integer Yes — note string — — is_billable boolean — —
curl Copycurl -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
POST Access 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 Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/webhook" src/domains/tickets/routes.php:2556
GET Access check: require_agent
Lists workflows.
Handler: list_workflows()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/workflows" POST Access check: require_agent
Creates a workflow. Returns 201.
Handler: create_workflow()
No parameters declared in the route registration.
curl Copycurl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/workflows" src/domains/tickets/management-routes.php:373
PATCH Access check: require_agent
Updates a workflow.
Handler: update_workflow()
No parameters declared in the route registration.
curl Copycurl -X PATCH -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/workflows/{workflow_id}" DELETE Access check: require_agent
Deletes a workflow.
Handler: delete_workflow()
No parameters declared in the route registration.
curl Copycurl -X DELETE -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/workflows/{workflow_id}" src/domains/tickets/management-routes.php:452
POST Access check: require_agent
Duplicates a workflow. Returns 201.
Handler: duplicate_workflow()
No parameters declared in the route registration.
curl Copycurl -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
POST Access check: require_agent
Runs a workflow on a ticket.
Handler: run_workflow()
Parameters of POST /tickets/workflows/{workflow_id}/run Parameter Type Required Default or allowed values ticket_id integer Yes —
curl Copycurl -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
POST Access 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 Parameter Type Required Default or allowed values ticket_id integer Yes — event object — —
curl Copycurl -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
GET Access check: require_agent
Describes the triggers, conditions and actions workflows can use.
Handler: describe_workflows()
No parameters declared in the route registration.
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/workflows/describe" src/domains/tickets/management-routes.php:403
PUT Access check: require_agent
Sets the order workflows run in, from a list of workflow ids.
Handler: reorder_workflows()
Parameters of PUT /tickets/workflows/order Parameter Type Required Default or allowed values ids array Yes —
curl Copycurl -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
GET Access check: require_agent
Lists workflow runs, filterable by workflow, ticket and result, with pagination.
Handler: list_workflow_runs()
Parameters of GET /tickets/workflows/runs Parameter Type Required Default or allowed values workflow_id integer — — ticket_id integer — — result string — — page integer — 1 per_page integer — 25
curl Copycurl -u "user:application-password" "https://example.com/wp-json/davo/v1/tickets/workflows/runs" src/domains/tickets/management-routes.php:429