POST /v1/threads/\{threadId\}/attachments
Service: comms · operationId: (none)
Upload a file attachment (image or PDF) for a DM thread. Max 10MB, EXIF stripped from images.
Required scopes
(no scope declared — review service config)
Path parameters
threadId(string) required —
Responses
201 Attachment uploaded
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"thread_id": {
"type": "string",
"format": "uuid"
},
"kind": {
"type": "string",
"enum": [
"image",
"pdf"
]
},
"file_name": {
"type": "string"
},
"file_size": {
"type": "number"
},
"content_type": {
"type": "string"
},
"created_at": {
"type": "string"
}
},
"required": [
"id",
"thread_id",
"kind",
"file_name",
"file_size",
"content_type",
"created_at"
]
}400 Validation error
{
"type": "object",
"properties": {
"error": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"error",
"message"
]
}503 Attachment service not available
{
"type": "object",
"properties": {
"error": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"error",
"message"
]
}Example
curl -X POST https://comms.platform.loop.health/v1/threads/{threadId}/attachments \
-H "Authorization: Bearer $ACCESS_TOKEN"Related
services/comms— service overview- All endpoints — directory across services
- Auth model — how scopes are enforced