Add Comment
Adds a plain text comment, with optional attachments, to an open ticket. You cannot comment on a closed ticket.
To attach files, upload each file with Upload Attachment first and pass the tokens in attachments. If the API cannot attach a file, it still adds the comment and returns the failed tokens in failed_attachments.
ticket_id
The ID of the ticket.
attachments
Array of strings. Batch tokens returned by Upload Attachment . Up to 5.
text
The text of the comment. Maximum length: 1500 characters.
/v1/support/tickets/:ticket_id/comments
Add Comment
curl -X post 'https://sandboxapi.rapyd.net/v1/support/tickets/49230885151/comments' \ -H 'access_key: your-access-key-here' \ -H 'Content-Type: application/json' \ -H 'idempotency: your-idempotency-parameter-here' \ -H 'salt: your-random-string-here' \ -H 'signature: your-calculated-signature-here' \ -H 'timestamp: your-unix-timestamp-here' \ --data-raw '{ "text": "The bank statement is attached.", "attachments": [ "batch_9f1c2d7e4a6b" ] }'{ "status": { "error_code": "", "status": "SUCCESS", "message": "", "response_code": "", "operation_id": "6f1c1d0e-2b7a-4f0e-9d0a-3c1d8e2b7a11" }, "data": { "id": "63519371323", "created_at": 1791448200, "attachment_ids": [ "224063538994" ], "failed_attachments": [] } }