Messages
Get Message Attachment
Path Parameters
inbox_id*string
message_id*string
attachment_id*string
ID of attachment.
Header Parameters
Authorization*string
Bearer authentication
Response Body
application/json
curl -X GET "https://api.agentry.to/human/v0/inboxes/string/messages/string/attachments/string" \ -H "Authorization: string"{
"attachment_id": "string",
"filename": "string",
"size": 0,
"content_type": "string",
"content_disposition": "inline",
"content_id": "string",
"download_url": "string",
"expires_at": "2019-08-24T14:15:22Z"
}Get Message Context
Path Parameters
inbox_id*string
message_id*string
Header Parameters
Authorization*string
Bearer authentication
Response Body
application/json
curl -X GET "https://api.agentry.to/human/v0/inboxes/string/messages/string/context" \ -H "Authorization: string"{
"message_id": "string",
"inbox_id": "string",
"context": {},
"deep_context_credits_consumed": 0
}Get Message Raw
Path Parameters
inbox_id*string
message_id*string
Header Parameters
Authorization*string
Bearer authentication
Response Body
application/json
curl -X GET "https://api.agentry.to/human/v0/inboxes/string/messages/string/raw" \ -H "Authorization: string"{
"message_id": "string",
"size": 0,
"download_url": "string",
"expires_at": "2019-08-24T14:15:22Z"
}Send Message
Path Parameters
inbox_id*string
Header Parameters
Authorization*string
Bearer authentication
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://api.agentry.to/human/v0/inboxes/string/messages/send" \ -H "Authorization: string" \ -H "Content-Type: application/json" \ -d '{ "to": "string", "markdown_body": "string" }'{
"inbox_id": "string",
"draft_only": true,
"status": "draft_created"
}