Read an attention item's thread
GET /v2/attention-items/{attentionItemId}/thread
Parameters
Path parameters
Responses
200 — Successful response
Content-Type: application/json
Example
{
"data": {
"attentionItemThread": {
"subject": "string",
"account_email": "string",
"messages": [
{
"id": "string",
"from": "string",
"reply_to": "string",
"subject": "string",
"date": "string",
"html": "string",
"text": "string",
"from_user": false
}
]
}
}
}
400 — Request body failed validation.
Content-Type: application/json
401 — Missing or invalid API key.
Content-Type: application/json
403 — Valid key, insufficient permission.
Content-Type: application/json
404 — Resource does not exist.
Content-Type: application/json
409 — Request conflicts with the current state of the resource.
Content-Type: application/json
429 — Rate limit exceeded.
Content-Type: application/json
500 — Unexpected server error.
Content-Type: application/json
Code samples
curl https://api.prod.getdex.com/v2/attention-items/00000000-0000-0000-0000-000000000000/thread \
--header 'Authorization: Bearer YOUR_API_KEY'
fetch('https://api.prod.getdex.com/v2/attention-items/00000000-0000-0000-0000-000000000000/thread', {
headers: {
Authorization: 'Bearer YOUR_API_KEY'
}
})
requests.get(
"https://api.prod.getdex.com/v2/attention-items/00000000-0000-0000-0000-000000000000/thread",
headers={
"Authorization": "Bearer YOUR_API_KEY"
}
)
Draft a reply to an attention item
Draft the user's reply to the item's thread in their saved drafting style. Nothing is sent or saved. Optional body: `instruction` (≤300 characters, e.g. "shorter") and `draft: { subject, body }` to re
Send a reply to an attention item
Send the user's plain-text reply (`body`) into the item's thread from the mailbox that holds it, to the sender of `message_id` (a message `id` from the thread endpoint), then mark the item done. **Req

