---
title: "Open a thread"
method: POST
path: "/v2/agent/org/issues"
tags: ["agent"]
---

# Open a thread

`POST /v2/agent/org/issues`

## Request

- Base URL: `https://api.cardog.app`
- URL: `https://api.cardog.app/v2/agent/org/issues`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Opens a thread in your organization, as the person the grant names, with the same checks as the workspace: the thread type must allow opening, a read-only seat is a 403, and every participant must be in `GET /v2/agent/org/directory`. The body is plain text; blank lines separate paragraphs.

The agent calls this only after the person approved the draft. Costs 0 credits.

## Headers

- `X-Cardog-Agent-Grant` string, required

## Request body

- AgentOrgIssueCreateRequest
  - `title` string, required: The thread's title, up to 200 characters
  - `body` string, required: The first message. Plain text; blank lines separate paragraphs.
  - `participants` string[]: Organizations to add, by `slug` from `GET /v2/agent/org/directory`. Up to 20.
  - `kind` 'vin' | 'listing' | 'seller' | 'document' | 'delivery' | 'campaign' | 'data' | 'general': What kind of thread it is, e.g. "vin"
  - `subjectRef` string, nullable: What the thread is about, e.g. "vin:2T3RWRFV5MW123456"

## Response `201`

The thread's ID, number, key and workspace link

- AgentOrgIssueCreated
  - `issue` object, required: The new thread
    - `id` string, required: The thread ID
    - `number` integer, required: The thread's number within its organization
    - `key` string, required: The thread's short key, e.g. "EXAMPLE-DEALER-12"
  - `links` object, required: Where to go next
    - `issue` string, required: Where to read the thread: `GET /v2/agent/org/issues/{issueId}`

## Other responses

- `400`: The request is invalid. The error response names each bad value in `refs` or `details` and, where it can, suggests the nearest valid ref in `suggestions`. We never fall back to a fuzzy match.
- `401`: No valid API key or session
- `403`: Your credential cannot use this endpoint (`forbidden`)
- `404`: Resource not found
- `429`: Per-minute rate limit exceeded
- `500`: Internal error
- `503`: Temporarily unavailable (`unavailable`); retry with backoff

## Changes

- **2026-11-20** `d7a9494f5c04`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/cardog/apis/cardog-api-v2/changes/v2/agent/org/issues/post.md)

---

[API](https://skmtc.dev/cardog/apis/cardog-api-v2.md) - [All operations](https://skmtc.dev/cardog/apis/cardog-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/cardog/apis/cardog-api-v2/revisions/016058226dc5?raw)
