✉️Get a Specific Message

This is the GraphQL query to run when you want to get the body and html of a particular message.

This is the only GraphQL query that will allow you to get the raw body and the html of the message.

Gets a specific message, by id, from a mailbox.

POST https://api.maildrop.cc/graphql

This GraphQL query takes a mailbox and an id as required parameters. Returns a Message object with valid "data" and "html" fields.

Headers

NameTypeDescription

Content-Type

String

application/json

Request Body

NameTypeDescription

String

'{"query":"query Example { message(mailbox:\"testing\", id:\"AIm59ihdGy\") { id headerfrom subject date } }"}'

{
    "data": {
        "message": {
            "id": "AIm59ihdGy",
            "headerfrom": "Test <test@test.com>",
            "subject": "Testing!",
            "date": "2023-02-09T23:51:14.411Z"
        }
    }
}

See Also

Examples

curl --request POST \
    --header 'content-type: application/json' \
    --url https://api.maildrop.cc/graphql \
    --data '{"query":"query Example {\n  message(mailbox:\"testing\", id:\"AIm59ihdGy\") { id headerfrom subject date }\n}"}'

returns:

{"data":{"message":{"id":"AIm59ihdGy","headerfrom":"test@test.com","subject":"Testing!","date":"2023-02-09T23:51:14.411Z"}}}

Last updated