---
title: "Dispatch exception to external system"
method: POST
path: "/v1/exceptions/{exceptionId}/dispatch"
tags: ["Exception"]
---

# Dispatch exception to external system

`POST /v1/exceptions/{exceptionId}/dispatch`

Use this endpoint to dispatch an exception to an external ticketing system such as JIRA or ServiceNow for tracking and resolution.

## Path parameters

- `exceptionId` string, required

## Headers

- `X-Request-Id` string
- `X-Idempotency-Key` string

## Request body

- DispatchRequest — Dispatch request payload
  - `queue` string — Optional queue or team assignment
  - `targetSystem` 'JIRA' | 'SERVICENOW' | 'WEBHOOK' | 'MANUAL', required — Target system to dispatch to

## Response `200`

Indicates that the request was successful and the response contains the expected data.

The response includes the `X-Idempotency-Replayed` header.

If the value is false, the request was just processed. If the value is true, the response is a replay of a previously processed request.

See [Retries and idempotency](/en/reference/retries-idempotency) for more details.

- DispatchResponse — Dispatch result
  - `acknowledged` boolean — Whether the dispatch was acknowledged
  - `dispatchedAt` string — When the dispatch occurred in RFC3339 format
  - `exceptionId` string — Exception ID that was dispatched
  - `externalReference` string — External reference ID from target system
  - `target` string — Target system dispatched to

## Other responses

- `400` — The request contains invalid parameters or payload.
- `401` — The request lacks valid authentication credentials.
- `403` — You do not have permission to access this resource.
- `404` — The requested resource was not found.
- `422` — The request was well-formed but contains semantic errors.
- `500` — An unexpected error occurred on the server.

---

[API](https://skmtc.net/lerian/apis/identity-plugin.md) · [All operations](https://skmtc.net/lerian/apis/identity-plugin/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lerian/identity-plugin/versions/25daba385532/schema)
