chatwoot/swagger/paths/application
Sojan Jose 33dea83716
docs: document message attachment uploads (#14600)
Updates the Create New Message API documentation to explain how to send
file attachments with multipart form data.

Closes #10472
Closes #12672

## Why

The endpoint already accepts attachment uploads, but the published API
docs only described the JSON request body. That made it unclear that
clients need to use multipart form data and send files through the
`attachments[]` field.

## What changed

- Adds `multipart/form-data` as a documented request body option for
Create New Message.
- Documents the `attachments` binary array and form encoding used by
`attachments[]`.
- Adds a multipart cURL request example for a message with an
attachment.
- Regenerates the Swagger JSON artifacts.

## Screenshots

Create New Message API docs with the multipart cURL sample and
`multipart/form-data` request sample selected:

<img width="1702" height="1083"
alt="create-message-attachment-docs-multipart"
src="https://github.com/user-attachments/assets/5fef9082-6eb9-494d-91d1-8dc0b7880212"
/>

## How to test

1. Open `/swagger`.
2. Navigate to Application -> Messages -> Create New Message.
3. Confirm the endpoint documents both `application/json` and
`multipart/form-data`, including the attachment payload schema.
2026-06-02 14:33:02 +05:30
..
accounts docs: add swagger spec for accounts API (#11620) 2025-05-29 11:23:27 +05:30
agent_bots feat: Update swagger to openapi 3.0.4, update request payloads with examples (#11374) 2025-05-22 14:26:44 +07:00
agents feat: Update swagger to openapi 3.0.4, update request payloads with examples (#11374) 2025-05-22 14:26:44 +07:00
article feat: Update swagger to openapi 3.0.4, update request payloads with examples (#11374) 2025-05-22 14:26:44 +07:00
audit_logs fix: increase audit log page size (#14582) 2026-05-28 12:35:44 +05:30
automation_rule feat: Update swagger to openapi 3.0.4, update request payloads with examples (#11533) 2025-05-22 17:57:12 +07:00
canned_responses feat: Update swagger to openapi 3.0.4, update request payloads with examples (#11374) 2025-05-22 14:26:44 +07:00
category feat: Update swagger to openapi 3.0.4, update request payloads with examples (#11374) 2025-05-22 14:26:44 +07:00
contact_inboxes fix: label tags for contactable inboxes (#12838) 2025-11-12 18:31:09 +05:30
contactable_inboxes fix: label tags for contactable inboxes (#12838) 2025-11-12 18:31:09 +05:30
contacts chore(docs): Add contact merge endpoint to swagger documentation (#13172) 2026-01-09 15:30:46 -08:00
conversation docs: document message attachment uploads (#14600) 2026-06-02 14:33:02 +05:30
custom_attributes feat: Update swagger to openapi 3.0.4, update request payloads with examples (#11374) 2025-05-22 14:26:44 +07:00
custom_filters feat: Update swagger to openapi 3.0.4, update request payloads with examples (#11374) 2025-05-22 14:26:44 +07:00
inboxes docs: Document API inbox webhook URL (#14593) 2026-06-01 12:37:07 +04:00
integrations feat: Update swagger to openapi 3.0.4, update request payloads with examples (#11533) 2025-05-22 17:57:12 +07:00
labels docs(swagger): document account label endpoints (#13760) 2026-03-10 22:24:16 -07:00
portal feat: Update swagger to openapi 3.0.4, update request payloads with examples (#11533) 2025-05-22 17:57:12 +07:00
reporting_events feat: allow querying reporting events via the API (#12832) 2025-11-13 12:46:55 +05:30
reports feat: Add standalone outgoing messages count API endpoint (#13419) 2026-02-04 19:36:50 +05:30
team_members feat: Update swagger to openapi 3.0.4, update request payloads with examples (#11374) 2025-05-22 14:26:44 +07:00
teams feat: Update swagger to openapi 3.0.4, update request payloads with examples (#11374) 2025-05-22 14:26:44 +07:00
webhooks feat: Update swagger to openapi 3.0.4, update request payloads with examples (#11374) 2025-05-22 14:26:44 +07:00