Skip to main content
POST
/
tickets
/
{ticketId}
/
message
/
{messageId}
/
attachment
Upload attachment to Ticket message
curl --request POST \
  --url https://api.mijnklantportaal.nl/v1/tickets/{ticketId}/message/{messageId}/attachment \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form attachment=@example-file
{
  "id": "tic_abc12345def678",
  "customerId": "cst_abc12354678",
  "title": "Invoice issue",
  "source": "portal",
  "status": "open",
  "messages": [
    {
      "id": "tim_abc12345def678",
      "postedBy": "John Appleseed",
      "isPostedByCustomer": true,
      "message": "<p>Hello, help me with my invoice please</p>",
      "postedAt": "2024-04-29T21:00:00+02:00",
      "attachments": [
        {
          "id": "tma_abc12345def678",
          "name": "Screenshot.png",
          "size": 1256,
          "mime": "image/png"
        }
      ]
    }
  ],
  "createdAt": "2024-04-29T21:00:00+02:00"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

ticketId
string
required

ID of the ticket record

messageId
string
required

ID of the ticket message record

Body

multipart/form-data
attachment
file
required

The file you want to upload

Response

The attachment is uploaded and posted

Ticket record with the messages

id
string

ID of the Webhook record, always starting with tic_.

Example:

"tic_abc12345def678"

customerId
string | null

ID of the Customer this ticket belongs to

Example:

"cst_abc12354678"

title
string

Title of the ticket, mostly describing the ticket

Example:

"Invoice issue"

source
string

Source of the ticket. Can be portal, email or chat.

Example:

"portal"

status
string

Current status of the ticket. Can be open or closed.

Example:

"open"

messages
object[]

An array with the messages in this ticket

createdAt
string

Date and time when the ticket was created, written in ATOM format.

Example:

"2024-04-29T21:00:00+02:00"

I