Skip to content

List Thread attachments

GET
/api/v1/mail/threads/{id}/attachments
curl --request GET \
--url https://example.com/api/v1/mail/threads/example/attachments \
--header 'Authorization: Bearer <token>'

Requires a signed-in User. It returns the attachments in the Thread with their Message details. It returns 404 when the Thread is missing. Route: /api/v1/mail/threads/{id}/attachments. Inputs: id. Safe reads can use bounded retries.

id
required
string
Media typeapplication/json
object
items
required
Array<object>
object
attachment
required
object
content_type
required
string
filename
required
string
section_id
required
string
size_bytes
required
integer format: int32
message_id
required
string
received_ms
required
integer format: int64
subject
required
string
thread_id
required
string
Examplegenerated
{
"items": [
{
"attachment": {
"content_type": "example",
"filename": "example",
"section_id": "example",
"size_bytes": 1
},
"message_id": "example",
"received_ms": 1,
"subject": "example",
"thread_id": "example"
}
]
}
Media typeapplication/json

The standard API error response: { "error": { ... } }.

object
error
required

Error details.

object
code
required

Stable machine-readable code.

string
Allowed values: bad_request unauthorized forbidden not_found conflict name_conflict_case name_too_long push_endpoint_rejected too_many_requests internal service_unavailable
details
One of:

Optional field or operation details.

object
key
additional properties
string
message
required

Safe text for logs or a user-facing error message.

string
Example
{
"error": {
"code": "bad_request"
}
}
Media typeapplication/json

The standard API error response: { "error": { ... } }.

object
error
required

Error details.

object
code
required

Stable machine-readable code.

string
Allowed values: bad_request unauthorized forbidden not_found conflict name_conflict_case name_too_long push_endpoint_rejected too_many_requests internal service_unavailable
details
One of:

Optional field or operation details.

object
key
additional properties
string
message
required

Safe text for logs or a user-facing error message.

string
Example
{
"error": {
"code": "bad_request"
}
}