The Actions API lets you manage automation actions in AnswerPal. Use these endpoints to list, create, update, and delete actions that drive your automation workflows.
Actions represent predefined operations that can be triggered at specific events in the AnswerPal workflow (such as after topic detection or when a ticket is escalated). The Actions API allows you to programmatically manage these actions, enabling flexible automation for customer service, internal support, and more.
All Actions API endpoints require authentication. Include a valid access token in the `Authorization` header of your requests.
pageNumber
(integer, default: 1) — Page number for pagination.pageSize
(integer, default: 10) — Number of items per page.sortBy
(string, default: “Name”) — Field to sort by.sortOrder
(string, default: “asc”) — Sort order (“asc” or “desc”).GET /api/Actions?pageNumber=1&pageSize=10&sortBy=Name&sortOrder=asc
Authorization: Bearer <token>
{
"items": [
{
"actionID": 1,
"name": "Auto Close",
"description": "Automatically close resolved tickets",
"priority": 90,
"isActive": true
},
...
],
"totalCount": 20,
"totalPages": 2
}
Retrieve a single action by its unique ID.
Path Parameters:
id
(integer, required) — The ID of the action.GET /api/Actions/1
Authorization: Bearer <token>
{
"actionID": 1,
"name": "Auto Close",
"description": "Automatically close resolved tickets",
"priority": 90,
"isActive": true
}
Create a new action.
Request Body (JSON):
name
(string, required)description
(string, optional)priority
(integer, required)isActive
(boolean, required)POST /api/Actions
Authorization: Bearer <token>
Content-Type: application/json
{
"name": "Forward to Supervisor",
"description": "Forward urgent tickets to supervisor",
"priority": 100,
"isActive": true
}
{
"actionID": 2,
"name": "Forward to Supervisor",
"description": "Forward urgent tickets to supervisor",
"priority": 100,
"isActive": true
}
Update an existing action.
Path Parameters:
id
(integer, required)Request Body (JSON):
actionID
(integer, required, must match path)name
(string, required)description
(string, optional)priority
(integer, required)isActive
(boolean, required)PUT /api/Actions/2
Authorization: Bearer <token>
Content-Type: application/json
{
"actionID": 2,
"name": "Forward to Supervisor",
"description": "Forward urgent tickets to supervisor (updated)",
"priority": 100,
"isActive": true
}
HTTP/1.1 204 No Content
Delete an action by its ID.
Path Parameters:
id
(integer, required)DELETE /api/Actions/2
Authorization: Bearer <token>
HTTP/1.1 204 No Content
You must be authenticated; access is restricted to your organization's data.
The action will be removed and will not be executed in future workflows.
Yes, use the Update endpoint and supply the new priority.
Name, priority, and isActive are required.
AnswerPal: AI-powered customer service solutions to elevate your support and communication effortlessly.
For all support, sales, and partnership inquiries, email us at info@answerpal.eu