Wrangle API Documentation
Get Inboxes Response
unexpected error
GET /api/v1/inboxes?slackUserId=text&slackWorkspaceId=text HTTP/1.1
Host: slack.wrangle.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"success": "true",
"inboxes": [
{
"createdAt": "text",
"creatorEmail": "text",
"creatorId": "text",
"id": "123e4567-e89b-12d3-a456-426614174000",
"formFields": {
"fieldId": "text",
"fieldLabel": "text",
"isRequired": true,
"fieldType": "Date Picker",
"fieldOptions": [
"text"
]
},
"name": "text",
"description": "text",
"defaultUserRole": "REQUESTER",
"status": "ACTIVE",
"tags": [
"text"
],
"userRoles": [
{
"role": "NO_ACCESS",
"userEmail": "text",
"userId": "text"
}
],
"updatedAt": "text"
}
]
}Get an inbox by id.
Get Inbox
unexpected error
GET /api/v1/inboxes/{inboxId}?slackUserId=text&slackWorkspaceId=text HTTP/1.1
Host: slack.wrangle.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"success": "true",
"inbox": {
"createdAt": "text",
"creatorEmail": "text",
"creatorId": "text",
"id": "123e4567-e89b-12d3-a456-426614174000",
"formFields": {
"fieldId": "text",
"fieldLabel": "text",
"isRequired": true,
"fieldType": "Date Picker",
"fieldOptions": [
"text"
]
},
"name": "text",
"description": "text",
"defaultUserRole": "REQUESTER",
"status": "ACTIVE",
"tags": [
"text"
],
"userRoles": [
{
"role": "NO_ACCESS",
"userEmail": "text",
"userId": "text"
}
],
"updatedAt": "text"
}
}Update an inbox.
Update an inbox.
Update Inbox
unexpected error
PUT /api/v1/inboxes/{inboxId}?slackUserId=text&slackWorkspaceId=text HTTP/1.1
Host: slack.wrangle.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 77
{
"userRoles": {
"NO_ACCESS": [
"text"
],
"REQUESTER": [
"text"
],
"OBSERVER": [
"text"
]
}
}{
"success": "true",
"inbox": {
"createdAt": "text",
"creatorEmail": "text",
"creatorId": "text",
"id": "123e4567-e89b-12d3-a456-426614174000",
"formFields": {
"fieldId": "text",
"fieldLabel": "text",
"isRequired": true,
"fieldType": "Date Picker",
"fieldOptions": [
"text"
]
},
"name": "text",
"description": "text",
"defaultUserRole": "REQUESTER",
"status": "ACTIVE",
"tags": [
"text"
],
"userRoles": [
{
"role": "NO_ACCESS",
"userEmail": "text",
"userId": "text"
}
],
"updatedAt": "text"
}
}Get tickets for an inbox. Query parameters are documented as an object in the Request_GetTickets schema.
Page number for pagination (1-based). Defaults to 1.
1Number of tickets per page. Maximum 200. Defaults to 200.
200Only return tickets created on or after this date. Accepts an ISO 8601 timestamp (2024-01-31T09:30:00Z) or a date (2024-01-31), which is treated as midnight UTC.
Get Tickets
unexpected error
GET /api/v1/inboxes/{inboxId}/tickets?slackUserId=text&slackWorkspaceId=text HTTP/1.1
Host: slack.wrangle.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"success": "true",
"tickets": [
{
"assigneeEmail": "text",
"assigneeId": "text",
"createdAt": "text",
"followers": [
{
"userEmail": "text",
"userId": "text",
"userName": "text"
}
],
"id": "123e4567-e89b-12d3-a456-426614174000",
"lastReplyCreatedAt": "text",
"name": "text",
"requesterEmail": "text",
"requesterId": "text",
"requesterName": "text",
"status": "CLOSED",
"updatedAt": "text"
}
],
"pagination": {
"page": 1,
"pageSize": 1,
"totalCount": 1,
"totalPages": 1
}
}The name of the ticket.
The Slack user ID of the ticket requester. Can be different than the creatorId, for example when an agent creates a ticket on behalf of another user.
Create Ticket Response
unexpected error
POST /api/v1/tickets?slackUserId=text&slackWorkspaceId=text HTTP/1.1
Host: slack.wrangle.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 235
{
"description": "text",
"followers": [
{
"userEmail": "text",
"userId": "text",
"userName": "text"
}
],
"formFieldValues": [
{
"fieldId": "text",
"value": "text"
}
],
"inboxId": "text",
"name": "text",
"requesterId": "text",
"priority": "CRITICAL",
"tags": [
"text"
]
}{
"success": "true",
"ticket": {
"description": "text",
"followers": [
{
"userEmail": "text",
"userId": "text",
"userName": "text"
}
],
"formFieldValues": [
{
"fieldId": "text",
"value": "text"
}
],
"inboxId": "text",
"name": "text",
"requesterId": "text",
"priority": "CRITICAL",
"tags": [
"text"
],
"assigneeId": "text",
"assigneeEmail": "text",
"createdAt": "text",
"creatorEmail": "text",
"creatorId": "text",
"creatorName": "text",
"csatScore": 1,
"csatReason": "text",
"id": "123e4567-e89b-12d3-a456-426614174000",
"lastReplyCreatedAt": "text",
"requesterEmail": "text",
"requesterName": "text",
"slackMessageChannel": "text",
"slackMessageTs": "text",
"slackOriginalMessage": {
"channel": "text",
"ts": "text",
"parentMessageTs": "text",
"permalinkUrl": "text"
},
"slackParentMessageTs": "text",
"slackPermalinkUrl": "text",
"status": "CLOSED",
"webUrl": "text",
"workspaceId": "text",
"workspaceTicketNumber": 1
}
}Returns paginated ticketing history data.
The first request will start building your export, and will respond immediately with a status of STARTED. Poll the same url until the status is COMPLETE, then page through the results with the page parameter.
Exports may be generated up to once a day for a given set of filters; repeat requests within that window return the same data. An export covers at most the last 6 months of tickets, so a request with no createdSince starts 6 months ago.
Limit the export to these inboxes. Repeat the parameter once per inbox, for example inboxIds=a&inboxIds=b.
Only return tickets created on or after this date. Accepts an ISO 8601 timestamp (2024-01-31T09:30:00Z) or a date (2024-01-31), which is treated as midnight UTC. Must be within the last 6 months; earlier dates are rejected.
Page of the export to return (1-based). Defaults to 1.
1Export Tickets Response
STARTED means the export is still being generated; poll the same URL until it is COMPLETE. ERROR means the export failed; requesting it again after a few minutes starts a fresh one.
When the export was started.
When the export finished generating.
When the export failed, if it did.
The page that was requested.
Total number of pages in the export. 0 until the export is COMPLETE, and 0 for a completed export that matched no tickets.
Total number of tickets in the export. 0 until the export is COMPLETE.
unexpected error
GET /api/v1/tickets/export?slackUserId=text&slackWorkspaceId=text HTTP/1.1
Host: slack.wrangle.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"status": "STARTED",
"startedAt": "2026-01-01T00:00:00.000Z",
"completedAt": "2026-01-01T00:00:00.000Z",
"erroredAt": "2026-01-01T00:00:00.000Z",
"data": [
{
"Inbox ID": "text",
"Inbox Name": "text",
"Ticket ID": "text",
"Ticket Name": "text",
"Ticket Number": "text",
"Ticket Description": "text",
"Ticket Created At": "text",
"Ticket Created By": "text",
"Ticket Created By (User ID)": "text",
"Ticket Created By (email)": "text",
"Ticket Requested By": "text",
"Ticket Requested By (User ID)": "text",
"Ticket Requested By (email)": "text",
"Ticket Status": "text",
"Assigned To": "text",
"Assigned To (User ID)": "text",
"Assigned To (email)": "text",
"Ticket Priority": "text",
"First Agent Response": "text",
"Time to First Agent Response (minutes)": 1,
"Time to First Agent Response (pretty)": "text",
"Claimed": "text",
"Time to Claimed (minutes)": 1,
"Time to Claimed (pretty)": "text",
"First Resolved/Closed": "text",
"Time to First Resolved/Closed (minutes)": 1,
"Time to First Resolved/Closed (pretty)": "text",
"Last Resolved/Closed": "text",
"Time to Last Resolved/Closed (minutes)": 1,
"Time to Last Resolved/Closed (pretty)": "text",
"Satisfaction Score": "NOT_SATISFIED",
"Satisfaction Score (Number)": 1,
"Satisfaction Score Reason": "text",
"Tags": "text",
"Followers": "text",
"Followers (User IDs)": "text",
"Followers (emails)": "text",
"Attempted Deflection?": true,
"Deflection Type": "text",
"First Inbox ID": "text",
"First Inbox Name": "text",
"Link to Thread": "text",
"ANY_ADDITIONAL_PROPERTY": null
}
],
"page": 1,
"totalPages": 1,
"totalTickets": 1
}When 'true', include the ticket's replies in the response.
Get Ticket Response
The name of the ticket.
The Slack user ID of the ticket assignee. They must be an agent for this ticket's inbox.
The email address of the ticket assignee.
The email address of the ticket creator.
The full name of the ticket creator.
The customer satisfaction score for the ticket if one exists, from 1 (NOT_SATISFIED) to 5 (SATISFIED).
The reason for the customer satisfaction score if one exists.
The timestamp of the most recent reply on the ticket.
The email address of the ticket requester.
The full name of the ticket requester.
Link to the ticket in Slack.
Link to the ticket in the Wrangle web app.
unexpected error
GET /api/v1/tickets/{ticketId}?slackUserId=text&slackWorkspaceId=text HTTP/1.1
Host: slack.wrangle.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"description": "text",
"followers": [
{
"userEmail": "text",
"userId": "text",
"userName": "text"
}
],
"formFieldValues": [
{
"fieldId": "text",
"value": "text"
}
],
"inboxId": "text",
"name": "text",
"requesterId": "text",
"priority": "CRITICAL",
"tags": [
"text"
],
"assigneeId": "text",
"assigneeEmail": "text",
"createdAt": "text",
"creatorEmail": "text",
"creatorId": "text",
"creatorName": "text",
"csatScore": 1,
"csatReason": "text",
"id": "123e4567-e89b-12d3-a456-426614174000",
"lastReplyCreatedAt": "text",
"requesterEmail": "text",
"requesterName": "text",
"slackMessageChannel": "text",
"slackMessageTs": "text",
"slackOriginalMessage": {
"channel": "text",
"ts": "text",
"parentMessageTs": "text",
"permalinkUrl": "text"
},
"slackParentMessageTs": "text",
"slackPermalinkUrl": "text",
"status": "CLOSED",
"webUrl": "text",
"workspaceId": "text",
"workspaceTicketNumber": 1,
"replies": [
{
"authorEmail": "text",
"authorSlackUserId": "text",
"authorSlackWorkspaceId": "text",
"channelId": "text",
"createdAt": "text",
"isPrivate": true,
"markdownText": "text",
"slackParentTs": "text",
"slackTs": "text",
"updatedAt": "text"
}
]
}The Slack user ID of the ticket assignee. They must be an agent for this ticket's inbox. To unassign a ticket, set this to null. If a ticket is assigned, it's status will automatically be set to IN_PROGRESS. If a ticket is unassigned, it's status will automatically be set to NEW.
The customer satisfaction score for the ticket, from 1 (NOT_SATISFIED) to 5 (SATISFIED). Satisfaction surveys must be enabled for the ticket's inbox.
Move this ticket to a new inbox. Will clear the assignee, status, tags, and other inbox-specific settings.
Update Ticket Response
unexpected error
PUT /api/v1/tickets/{ticketId}?slackUserId=text&slackWorkspaceId=text HTTP/1.1
Host: slack.wrangle.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 266
{
"assigneeId": "text",
"csatScore": 1,
"description": "text",
"followers": [
{
"userEmail": "text",
"userId": "text",
"userName": "text"
}
],
"formFieldValues": [
{
"fieldId": "text",
"value": "text"
}
],
"inboxId": "text",
"name": "text",
"priority": "CRITICAL",
"status": "CLOSED",
"tags": [
"text"
]
}{
"success": "true",
"ticket": {
"description": "text",
"followers": [
{
"userEmail": "text",
"userId": "text",
"userName": "text"
}
],
"formFieldValues": [
{
"fieldId": "text",
"value": "text"
}
],
"inboxId": "text",
"name": "text",
"requesterId": "text",
"priority": "CRITICAL",
"tags": [
"text"
],
"assigneeId": "text",
"assigneeEmail": "text",
"createdAt": "text",
"creatorEmail": "text",
"creatorId": "text",
"creatorName": "text",
"csatScore": 1,
"csatReason": "text",
"id": "123e4567-e89b-12d3-a456-426614174000",
"lastReplyCreatedAt": "text",
"requesterEmail": "text",
"requesterName": "text",
"slackMessageChannel": "text",
"slackMessageTs": "text",
"slackOriginalMessage": {
"channel": "text",
"ts": "text",
"parentMessageTs": "text",
"permalinkUrl": "text"
},
"slackParentMessageTs": "text",
"slackPermalinkUrl": "text",
"status": "CLOSED",
"webUrl": "text",
"workspaceId": "text",
"workspaceTicketNumber": 1
}
}Delete Ticket Response
unexpected error
DELETE /api/v1/tickets/{ticketId}?slackUserId=text&slackWorkspaceId=text HTTP/1.1
Host: slack.wrangle.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"success": "true"
}Get active workflows for a workspace.
Get Workflows Response
unexpected error
GET /api/v1/workflows?slackUserId=text&slackWorkspaceId=text HTTP/1.1
Host: slack.wrangle.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"success": "true",
"workflows": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
}
]
}Get Workflow Response
unexpected error
GET /api/v1/workflows/{workflowId}?slackUserId=text&slackWorkspaceId=text HTTP/1.1
Host: slack.wrangle.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"success": "true",
"workflow": {
"id": "text",
"name": "text",
"intakeFormFields": {
"fieldId": "text",
"fieldLabel": "text",
"isRequired": true,
"fieldType": "Date Picker",
"fieldOptions": [
"text"
]
}
}
}The Slack user ID of the user starting this workflow instance.
Start a Workflow
unexpected error
POST /api/v1/workflows/{workflowId}/instances?slackUserId=text&slackWorkspaceId=text HTTP/1.1
Host: slack.wrangle.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 76
{
"requesterId": "text",
"formFieldValues": [
{
"fieldId": "text",
"value": "text"
}
]
}{
"success": "true",
"workflowInstanceId": "123e4567-e89b-12d3-a456-426614174000"
}Create a reply on a ticket. Anyone who can view the ticket may reply as themselves; attributing the reply to another user (via slackUserId or email) requires admin access, and posting a private reply requires agent or admin access.
The reply body in Slack formatted markdown. Required.
The Slack user ID to attribute the reply to. You must provide either an authorSlackUserId or an authorEmail, not both.
The email address of the user to attribute the reply to. This user must exist in your Slack workspace. You must provide either an authorSlackUserId or an authorEmail, not both.
Post the reply as private (visible only to agents/observers). Requires agent or admin access.
Create Reply Response
unexpected error
POST /api/v1/tickets/{ticketId}/reply?slackUserId=text&slackWorkspaceId=text HTTP/1.1
Host: slack.wrangle.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 98
{
"markdownText": "text",
"authorSlackUserId": "text",
"authorEmail": "name@gmail.com",
"isPrivate": true
}{
"success": true,
"reply": {
"authorEmail": "text",
"authorSlackUserId": "text",
"authorSlackWorkspaceId": "text",
"channelId": "text",
"createdAt": "text",
"isPrivate": true,
"markdownText": "text",
"slackParentTs": "text",
"slackTs": "text",
"updatedAt": "text"
}
}Last updated
Was this helpful?