There There Ticket messages API
The Ticket messages API from There There — 6 operation(s) for ticket messages.
The Ticket messages API from There There — 6 operation(s) for ticket messages.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/there-there-app:there-there-app-ticket-messages-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: There There Ticket messages API
description: 'REST API for There There, the AI-powered helpdesk. All endpoints require
authentication via a bearer token, and most require the
`X-Workspace-Id` header to identify which workspace the request targets.
You can copy the workspace ID from
Settings > Account > API Tokens or
Settings > Workspace > General.
Responses follow a consistent shape: single resources are returned under a
`data` key; collections return `data` alongside `meta` and `links` for
pagination.'
version: 1.0.0
servers:
- url: https://there-there.app/api
description: Production
security:
- bearerAuth: []
tags:
- name: Ticket messages
paths:
/attachments:
post:
operationId: uploadAttachment
tags:
- Ticket messages
summary: Upload a file and receive a single-use token
description: Streams a file to storage and returns an opaque token. Reference the token in a message's attachment_ids (and, for inline images, embed it in the body as ). Tokens are single-use, scoped to the creating API token, and deleted ~30 minutes after upload if not used. Max 25 MB per file.
parameters:
- $ref: '#/components/parameters/WorkspaceHeader'
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
required:
- file
properties:
file:
type: string
format: binary
responses:
'201':
description: File parked
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/PendingAttachment'
'422':
$ref: '#/components/responses/ValidationError'
'429':
description: Upload rate limit (30 per API token per minute) or workspace parked cap (50 files or 500 MB) exceeded
/attachments/{media}:
get:
operationId: downloadAttachment
tags:
- Ticket messages
summary: Download an attachment or inline image
description: 'Returns the file itself, served inline under its own content type. The url and download_url on a message''s attachments and inline_images point here whenever the ticket was fetched with an API token, so use those values rather than building this URL yourself. Files kept on object storage answer with a redirect to a short-lived storage URL, so follow redirects. No X-Workspace-Id header is needed: the workspace is derived from the file.'
parameters:
- name: media
in: path
required: true
description: ULID of the file, taken from a message's attachments or inline_images.
schema:
type: string
- name: download
in: query
required: false
description: Set to 1 to receive a Content-Disposition attachment header instead of an inline one.
schema:
type: boolean
responses:
'200':
description: The file
content:
application/octet-stream:
schema:
type: string
format: binary
'302':
description: Redirect to a short-lived object storage URL
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
/tickets/{ticket}/reply:
post:
operationId: replyToTicket
tags:
- Ticket messages
summary: Reply to a ticket
parameters:
- $ref: '#/components/parameters/WorkspaceHeader'
- $ref: '#/components/parameters/TicketUlid'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- body
properties:
body:
type: string
to_recipients:
type: array
items:
type: string
format: email
cc_recipients:
type: array
items:
type: string
format: email
bcc_recipients:
type: array
items:
type: string
format: email
attachment_ids:
type: array
maxItems: 10
items:
type: string
example: upl_screenshot_8f3c1a
description: Upload tokens from POST /attachments. Embed a token as <img src="cid:TOKEN"> in the body to render it inline.
responses:
'201':
description: Message created
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/Message'
/tickets/{ticket}/forward:
post:
operationId: forwardTicket
tags:
- Ticket messages
summary: Forward a ticket
parameters:
- $ref: '#/components/parameters/WorkspaceHeader'
- $ref: '#/components/parameters/TicketUlid'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- body
- to_recipients
properties:
body:
type: string
to_recipients:
type: array
minItems: 1
items:
type: string
format: email
cc_recipients:
type: array
items:
type: string
format: email
bcc_recipients:
type: array
items:
type: string
format: email
forwarded_from_message_ulid:
type: string
nullable: true
description: ULID of the message being forwarded.
attachment_ids:
type: array
maxItems: 10
items:
type: string
example: upl_screenshot_8f3c1a
description: Upload tokens from POST /attachments. Embed a token as <img src="cid:TOKEN"> in the body to render it inline.
responses:
'201':
description: Forward message created
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/Message'
/tickets/{ticket}/note:
post:
operationId: addNoteToTicket
tags:
- Ticket messages
summary: Add an internal note
description: HTML, Markdown, and plain text are supported. Mention a member with @Full Name, matched case-insensitively against their complete workspace display name. Duplicate names require an explicit mention using @Name, using a ULID from GET /members. Mentions notify members who can access the ticket, subject to notification preferences. Plain-name matching ignores email addresses, links, code, and quoted text. Repeated mentions do not send duplicate notifications.
parameters:
- $ref: '#/components/parameters/WorkspaceHeader'
- $ref: '#/components/parameters/TicketUlid'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- body
properties:
body:
type: string
attachment_ids:
type: array
maxItems: 10
items:
type: string
example: upl_screenshot_8f3c1a
description: Upload tokens from POST /attachments. Embed a token as <img src="cid:TOKEN"> in the body to render it inline.
responses:
'201':
description: Note message created
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/Message'
/tickets/{ticket}/messages/{message}:
delete:
operationId: deleteTicketMessage
tags:
- Ticket messages
summary: Permanently delete one message (admin only)
description: Deletes the message, its attachments, stored original email, and matching inbound payload, including starter-inbox deliveries. Clears the ticket title, greeting, summary, resolution narrative, and embedding, and rejects in-flight AI results generated before deletion. Keeps the ticket and its other messages. Does not recall sent mail or erase copies in other messages, drafts, integrations, or backups.
parameters:
- $ref: '#/components/parameters/WorkspaceHeader'
- $ref: '#/components/parameters/TicketUlid'
- name: message
in: path
required: true
schema:
type: string
description: ULID of a message belonging to this ticket.
responses:
'200':
description: Message deleted
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
example: true
'403':
description: Administrator access required
'404':
description: Ticket or message not found or inaccessible
components:
schemas:
Message:
type: object
properties:
id:
type: integer
ulid:
type: string
type:
type: string
enum:
- inbound
- outbound
- note
body_html:
type: string
body_text:
type: string
nullable: true
sender:
type: object
properties:
id:
type: integer
type:
type: string
enum:
- contact
- user
name:
type: string
nullable: true
email:
type: string
nullable: true
avatar_url:
type: string
nullable: true
attachments:
type: array
description: 'Files sent alongside the message. Fetch `url` (or `download_url`)
with the same Bearer token, see `GET /attachments/{media}`.
'
items:
type: object
properties:
id:
type: integer
name:
type: string
url:
type: string
format: uri
download_url:
type: string
format: uri
size:
type: integer
mime_type:
type: string
inline_images:
type: array
description: 'Images embedded inside `body_html` (typically bug screenshots
customers paste into emails). Each item exposes a stable
`url` matching the `<img src>` in the body, plus a
`download_url` that forces a file download. Use these URLs
with the same Bearer token to fetch the binary, see
`GET /attachments/{media}`.
'
items:
type: object
properties:
id:
type: integer
name:
type: string
mime_type:
type: string
size:
type: integer
content_id:
type: string
nullable: true
url:
type: string
format: uri
download_url:
type: string
format: uri
is_forward:
type: boolean
send_status:
type: string
nullable: true
description: 'Delivery state of an outbound email. `null` for inbound messages,
notes and support bubble replies, which have no delivery of their
own. `sending` means a retry is in flight.
'
enum:
- demo
- pending
- sending
- sent
- failed
created_at:
type: string
format: date-time
PendingAttachment:
type: object
properties:
token:
type: string
example: upl_screenshot_8f3c1a
filename:
type: string
example: screenshot.png
mime_type:
type: string
example: image/png
size:
type: integer
example: 84213
expires_at:
type: string
format: date-time
parameters:
WorkspaceHeader:
name: X-Workspace-Id
in: header
required: false
schema:
type: integer
description: 'Workspace ID this request targets. Required for tokens that have
access to multiple workspaces or to all workspaces. Optional for
tokens scoped to a single workspace (auto-resolved). Find the ID under
[Settings > Account > API Tokens](https://there-there.app/settings/account/api-tokens) or
[Settings > Workspace > General](https://there-there.app/settings/workspace/general).
'
TicketUlid:
name: ticket
in: path
required: true
schema:
type: string
description: Ticket ULID.
responses:
Forbidden:
description: Not allowed
content:
application/json:
schema:
type: object
properties:
message:
type: string
NotFound:
description: Resource not found
content:
application/json:
schema:
type: object
properties:
message:
type: string
ValidationError:
description: Validation failed
content:
application/json:
schema:
type: object
properties:
message:
type: string
errors:
type: object
additionalProperties:
type: array
items:
type: string
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: Sanctum API token. Generate one from Settings > API Tokens.