POST
/
v1
/
teams
/
{team_id}
/
tickets
/
{ticket_id}
/
messages
Create Message
curl --request POST \
  --url https://public.api.serval.com/v1/teams/{team_id}/tickets/{ticket_id}/messages \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "message": "<string>",
  "authorUserId": "<string>",
  "createdAt": "1s"
}'
{
  "message": {
    "messageId": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

team_id
string
required

The ID of the Serval team that the ticket belongs to.

ticket_id
string
required

The ID of the Serval ticket that the message belongs to.

Body

application/json
message
string

The content of the message to be added to the ticket.

authorUserId
string

The ID of the Serval user who is the author of the message.

createdAt
string<date-time>

Timestamp indicating when the ticket was created. Must be in RFC 3339 format (e.g., "2017-01-15T01:30:15.01Z"). Accepts UTC timestamps with nanosecond precision. If not provided, defaults to the current server time.

Examples:

"1s"

"1.000340012s"

Response

Success

message
object

The created message.