Skip to content

Post a message to a ticket

POST
/api/v1/organizations/{orgID}/tickets/{ticketID}/messages
curl --request POST \
--url https://api.aetherplatform.cloud/api/v1/organizations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/tickets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "body": "example", "attachments": [ "example" ], "attachment_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ] }'

Appends a message to the thread. The author is derived from the caller’s auth context: author_id from the JWT subject, author_type = provider when the caller holds the platform-admin role, otherwise tenant. Posting recomputes the ticket’s status (a tenant reply reopens a waiting/resolved ticket; a provider reply on an open ticket moves it to in_progress) and stamps first_response_at on the first provider message — all in one transaction.

orgID
required
string format: uuid

Organization UUID.

ticketID
required
string format: uuid

Support ticket UUID.

Media typeapplication/json
object
body
required
string
attachments
Array
attachment_ids

IDs of pending attachments (previously reserved via the presign-upload endpoint) to confirm onto this message. Each id must be a pending upload owned by this ticket; any foreign/unknown id rejects the whole message (422) and rolls back the transaction.

Array<string>
Examplegenerated
{
"body": "example",
"attachments": [
"example"
],
"attachment_ids": [
"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
]
}

Message created.

Media typeapplication/json
object
id
required
string format: uuid
ticket_id
required
string format: uuid
author_id

JWT subject of the author; null for API-token requests.

string | null format: uuid
author_type
required
string
Allowed values: tenant provider
body
required
string
attachments

Opaque legacy attachments blob (structured attachments arrive in a later phase).

Array
created_at
required
string format: date-time
Example
{
"author_type": "tenant"
}

Missing or invalid credentials.

Media typeapplication/json
object
error
required
object
code
required

A stable, machine-readable error code.

string
message
required
string
details
Array<object>
object
field
required
string
code
required
string
message
required
string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": [
{
"field": "example",
"code": "example",
"message": "example"
}
]
}
}

The requested resource was not found.

Media typeapplication/json
object
error
required
object
code
required

A stable, machine-readable error code.

string
message
required
string
details
Array<object>
object
field
required
string
code
required
string
message
required
string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": [
{
"field": "example",
"code": "example",
"message": "example"
}
]
}
}

Request validation failed.

Media typeapplication/json
object
error
required
object
code
required

A stable, machine-readable error code.

string
message
required
string
details
Array<object>
object
field
required
string
code
required
string
message
required
string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": [
{
"field": "example",
"code": "example",
"message": "example"
}
]
}
}