# Create or link an issue

```http
POST https://trydimmi.com/api/v1/tickets/{ticket}/issues
```

## Authorization

Send an API token as `Authorization: Bearer <token>`.
The token needs: `tickets:write`.

## Path parameters

- `ticket` (string, required): Id of the ticket, starting with tkt_, such as tkt_01jx2m8k4t. Find it with GET /tickets.

## Body

- `installation_id` (string): An installation id from GET /integrations.
- `key` (string): To link an issue that already exists instead of creating one: its key or id in the tool, such as "ENG-123" for Linear or Jira, "acme/api#42" for GitHub, "INC-12" for incident.io. Use this or url; leave both out to create a new issue.
- `project_id` (string): When creating an issue: the id from the tool's "projects" list for the picked team, a Linear project or a Jira issue type, such as "10001". Left out, the default saved in the tool's issue settings is used.
- `service_id` (string): When creating an incident: the id of the service it is on, from the tool's "services" list, such as "PABC123". PagerDuty needs one, here or saved in the tool's issue settings.
- `severity_id` (string): When creating an incident: the id of its severity, from the tool's "severities" list. Left out, the default saved in the tool's issue settings is used.
- `team_id` (string): A team id from GET /integration-installations/{installation}/issue-teams.
- `title` (string): The title of the issue, at most 200 characters.
- `url` (string): A pasted issue URL; the tool is found from it.

## Response 201 (Created)

- `data` (object, required)
  - `created_at` (string, required): When it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
  - `deployed_at` (string | null, required): When the issue's fix was seen deployed. Null until then.
  - `done_at` (string | null, required): When the issue was seen done in its tool. Null until then.
  - `external_id` (string, required): The issue's or incident's own id in the provider's tool.
  - `id` (string, required): The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
  - `installation_id` (string | null, required): Id of the connected integration the issue is read through, such as itg_.... Null when that integration is gone or none is used.
  - `key` (string, required): The issue's short key as its tool shows it, such as ENG-123.
  - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
  - `provider` (string, required): The tool the issue or incident lives in: linear, jira, github, incident_io, rootly or pagerduty.
  - `severity` (string, required): The issue's or incident's severity as the provider names it. Empty when none is known.
  - `status` (string, required): The issue's status as its tool names it, as last seen, such as In Progress. Empty when not yet read.
  - `status_group` (string, required): What dimmi maps the issue's status to: backlog, unstarted, started, done or canceled.
  - `sync_error` (string | null, required): Why the last check of the issue failed. Null when it worked.
  - `synced_at` (string | null, required): When the issue was last checked against its tool. Null when never checked.
  - `team_id` (string, required): The provider's own id of the team the issue belongs to. Empty when not known.
  - `team_name` (string, required): Name of the team the issue belongs to in its tool. Empty when not known.
  - `ticket_id` (string, required): Id of the ticket the issue is linked to, such as tkt_....
  - `title` (string, required): The issue's title as last seen in its tool. Empty when not yet read.
  - `url` (string, required): Web address of the issue in its tool.
  - `warning` (string | null, required): A problem a person should know about, such as a Linear team the app cannot see. Null when there is none.

## Response default (Error)

- `code` (string, required): Stable code for programs to tell errors apart, such as validation_failed or internal_error.
- `errors` (object): Each rejected field mapped to its messages. Only present when the input was invalid.
- `message` (string, required): What went wrong, in words safe to show a person.

## Example request

```bash
curl --request POST \
  --url 'https://trydimmi.com/api/v1/tickets/{ticket}/issues' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "installation_id": "<string>",
  "key": "<string>",
  "project_id": "<string>",
  "service_id": "<string>",
  "severity_id": "<string>",
  "team_id": "<string>",
  "title": "<string>",
  "url": "<string>"
}'
```

## Example response

```json
{
  "data": {
    "created_at": "2026-11-01T09:30:00Z",
    "deployed_at": "2026-11-01T09:30:00Z",
    "done_at": "2026-11-01T09:30:00Z",
    "external_id": "<string>",
    "id": "<string>",
    "installation_id": "<string>",
    "key": "<string>",
    "object": "<string>",
    "provider": "<string>",
    "severity": "<string>",
    "status": "<string>",
    "status_group": "<string>",
    "sync_error": "<string>",
    "synced_at": "2026-11-01T09:30:00Z",
    "team_id": "<string>",
    "team_name": "<string>",
    "ticket_id": "<string>",
    "title": "<string>",
    "url": "<string>",
    "warning": "<string>"
  }
}
```

---

Index of all dimmi docs: https://trydimmi.com/llms.txt (full text: https://trydimmi.com/llms-full.txt)
