For the complete documentation index, see llms.txt. This page is also available as Markdown.

Wrangle API Documentation

Get Inboxes

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
slackUserIdstringRequired
slackWorkspaceIdstringRequired
Responses
200

Get Inboxes Response

application/json
successstring · enumRequiredPossible values:
get/inboxes
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 Inbox

get

Get an inbox by id.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
inboxIdstringRequired
Query parameters
slackUserIdstringRequired
slackWorkspaceIdstringRequired
Responses
200

Get Inbox

application/json
successstring · enumRequiredPossible values:
get/inboxes/{inboxId}
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 Inbox

put

Update an inbox.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
inboxIdstringRequired
Query parameters
slackUserIdstringRequired
slackWorkspaceIdstringRequired
Body

Update an inbox.

Responses
200

Update Inbox

application/json
successstring · enumRequiredPossible values:
put/inboxes/{inboxId}
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

get

Get tickets for an inbox. Query parameters are documented as an object in the Request_GetTickets schema.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
inboxIdstringRequired
Query parameters
slackUserIdstringRequired
slackWorkspaceIdstringRequired
pageinteger · min: 1Optional

Page number for pagination (1-based). Defaults to 1.

Default: 1
pageSizeinteger · min: 1 · max: 200Optional

Number of tickets per page. Maximum 200. Defaults to 200.

Default: 200
createdSincestring · date-timeOptional

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.

Responses
200

Get Tickets

application/json
successstring · enumRequiredPossible values:
get/inboxes/{inboxId}/tickets
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
  }
}

Create Ticket

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
slackUserIdstringRequired
slackWorkspaceIdstringRequired
Body
descriptionstringOptional
inboxIdstringRequired
namestringRequired

The name of the ticket.

requesterIdstringRequired

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.

prioritystring · enumOptionalPossible values:
tagsstring[]Optional
Responses
200

Create Ticket Response

application/json
successstring · enumRequiredPossible values:
post/tickets
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
  }
}

Export Tickets

get

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.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
slackUserIdstringRequired
slackWorkspaceIdstringRequired
inboxIdsstring[] · max: 10Optional

Limit the export to these inboxes. Repeat the parameter once per inbox, for example inboxIds=a&inboxIds=b.

createdSincestring · date-timeOptional

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.

pageinteger · min: 1Optional

Page of the export to return (1-based). Defaults to 1.

Default: 1
Responses
200

Export Tickets Response

application/json
statusstring · enumRequired

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.

Possible values:
startedAtstring · date-time · nullableRequired

When the export was started.

completedAtstring · date-time · nullableRequired

When the export finished generating.

erroredAtstring · date-time · nullableRequired

When the export failed, if it did.

pageintegerRequired

The page that was requested.

totalPagesintegerRequired

Total number of pages in the export. 0 until the export is COMPLETE, and 0 for a completed export that matched no tickets.

totalTicketsintegerOptional

Total number of tickets in the export. 0 until the export is COMPLETE.

get/tickets/export
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
}

Get Ticket

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
ticketIdstringRequired
Query parameters
slackUserIdstringRequired
slackWorkspaceIdstringRequired
includeRepliesbooleanOptional

When 'true', include the ticket's replies in the response.

Responses
200

Get Ticket Response

application/json
descriptionstringOptional
inboxIdstringRequired
namestringRequired

The name of the ticket.

requesterIdstringRequired
prioritystring · enumOptionalPossible values:
tagsstring[]Optional
assigneeIdstring · nullableOptional

The Slack user ID of the ticket assignee. They must be an agent for this ticket's inbox.

assigneeEmailstring · nullableOptional

The email address of the ticket assignee.

createdAtstringOptional
creatorEmailstring · nullableOptional

The email address of the ticket creator.

creatorIdstringOptional
creatorNamestring · nullableOptional

The full name of the ticket creator.

csatScoreinteger · min: 1 · max: 5 · nullableOptional

The customer satisfaction score for the ticket if one exists, from 1 (NOT_SATISFIED) to 5 (SATISFIED).

csatReasonstring · nullableOptional

The reason for the customer satisfaction score if one exists.

idstring · uuidRequired
lastReplyCreatedAtstring · nullableOptional

The timestamp of the most recent reply on the ticket.

requesterEmailstring · nullableOptional

The email address of the ticket requester.

requesterNamestring · nullableOptional

The full name of the ticket requester.

slackMessageChannelstringOptional
slackMessageTsstringOptional
slackParentMessageTsstringOptional
slackPermalinkUrlstringOptional

Link to the ticket in Slack.

statusstring · enumRequiredPossible values:
webUrlstringOptional

Link to the ticket in the Wrangle web app.

workspaceIdstringOptional
workspaceTicketNumbernumberOptional
get/tickets/{ticketId}
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"
    }
  ]
}

Update Ticket

put
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
ticketIdstringRequired
Query parameters
slackUserIdstringRequired
slackWorkspaceIdstringRequired
Body
assigneeIdstring · nullableOptional

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.

csatScoreinteger · min: 1 · max: 5Optional

The customer satisfaction score for the ticket, from 1 (NOT_SATISFIED) to 5 (SATISFIED). Satisfaction surveys must be enabled for the ticket's inbox.

descriptionstringOptional
inboxIdstringOptional

Move this ticket to a new inbox. Will clear the assignee, status, tags, and other inbox-specific settings.

namestringOptional
prioritystring · enumOptionalPossible values:
statusstring · enumOptionalPossible values:
tagsstring[]Optional
Responses
200

Update Ticket Response

application/json
successstring · enumRequiredPossible values:
put/tickets/{ticketId}
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

delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
ticketIdstringRequired
Query parameters
slackUserIdstringRequired
slackWorkspaceIdstringRequired
Responses
200

Delete Ticket Response

application/json
successstring · enumRequiredPossible values:
delete/tickets/{ticketId}
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 Workflows

get

Get active workflows for a workspace.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
slackUserIdstringRequired
slackWorkspaceIdstringRequired
Responses
200

Get Workflows Response

application/json
successstring · enumRequiredPossible values:
get/workflows
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

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
workflowIdstringRequired
Query parameters
slackUserIdstringRequired
slackWorkspaceIdstringRequired
Responses
200

Get Workflow Response

application/json
successstring · enumRequiredPossible values:
get/workflows/{workflowId}
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"
      ]
    }
  }
}

Start Workflow

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
workflowIdstringRequired
Query parameters
slackUserIdstringRequired
slackWorkspaceIdstringRequired
Body
requesterIdstringRequired

The Slack user ID of the user starting this workflow instance.

Responses
200

Start a Workflow

application/json
successstring · enumRequiredPossible values:
workflowInstanceIdstring · uuidRequired
post/workflows/{workflowId}/instances
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 Reply

post

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.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
ticketIdstringRequired
Query parameters
slackUserIdstringRequired
slackWorkspaceIdstringRequired
Body
markdownTextstringRequired

The reply body in Slack formatted markdown. Required.

authorSlackUserIdstringOptional

The Slack user ID to attribute the reply to. You must provide either an authorSlackUserId or an authorEmail, not both.

authorEmailstring · emailOptional

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.

isPrivatebooleanOptional

Post the reply as private (visible only to agents/observers). Requires agent or admin access.

Responses
200

Create Reply Response

application/json
successbooleanRequired
post/tickets/{ticketId}/reply
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?