---
title: "Write again in a support request (opens a closed one again)"
method: POST
path: "/support/tickets/{ticketId}/messages"
tags: ["Support"]
---

# Write again in a support request (opens a closed one again)

`POST /support/tickets/{ticketId}/messages`

## Request

- Base URL: `https://hostingsurge.com/api/v1`
- URL: `https://hostingsurge.com/api/v1/support/tickets/{ticketId}/messages`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `__Host-hs_session`

## Path parameters

- `ticketId` string, uuid, required

## Request body

- object
  - `body` string, required
  - `attachments` object[]
    - `filename` string, required
    - `contentType` 'image/png' | 'image/jpeg' | 'image/gif' | 'image/webp' | 'application/pdf' | 'text/plain', required
    - `data` string, required: the file, base64 (at most 3 MiB)

## Response `200`

Sent

- object
  - `ticket` object, required
    - `id` string, uuid, required
    - `organizationId` string, uuid, required
    - `subject` string, required
    - `category` 'question' | 'problem' | 'billing' | 'account' | 'other', required
    - `status` 'open' | 'answered' | 'closed', required: open: waiting for support; answered: support wrote last
    - `projectId` string, uuid, nullable, required
    - `projectName` string, nullable, required
    - `mine` boolean, required: you opened it
    - `messageCount` integer, required
    - `lastMessageAt` string, required: ISO-8601 timestamp
    - `lastAuthor` 'customer' | 'operator', required
    - `closedAt` string, nullable, required: ISO-8601 timestamp
    - `createdAt` string, required: ISO-8601 timestamp
  - `messages` object[], required
    - `id` string, uuid, required
    - `authorKind` 'customer' | 'operator', required
    - `author` string, nullable, required: customer messages: the teammate's email (null: no longer in the team); support: null
    - `mine` boolean, required
    - `body` string, required
    - `createdAt` string, required: ISO-8601 timestamp
    - `attachments` object[], required
      - `id` string, uuid, required
      - `filename` string, required
      - `contentType` 'image/png' | 'image/jpeg' | 'image/gif' | 'image/webp' | 'application/pdf' | 'text/plain', required
      - `sizeBytes` integer, required

## Other responses

- `400`: Invalid request (code invalid_request)
- `401`: Missing or invalid session/token (code unauthorized)
- `403`: Authenticated but not permitted (code forbidden)
- `404`: Not found or not visible to the caller (code not_found)
- `409`: Conflict (code conflict), e.g. the status page address is taken
- `413`: The request body is too large
- `429`: Too many requests (code rate_limited); see Retry-After or details.limit
- `501`: Not available on this server yet (code not_configured): migration 194 is not applied

---

[API](https://skmtc.dev/hostingsurge/apis/hostingsurge-platform-api.md) · [All operations](https://skmtc.dev/hostingsurge/apis/hostingsurge-platform-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hostingsurge/apis/hostingsurge-platform-api/revisions/4d08337cdff1?raw)
