Temp Email
  1. Gmail
Temp Email
  • Welcome
  • Authentication
    • Use Password
      POST
    • Use Token
      POST
  • Domains
    • Get Domains
      GET
    • Get Premium Domains
      GET
    • Get Private Domains
      GET
  • Account
    • Get an Account
      GET
    • Get an Premium Account
      GET
    • Get an Private Account
      GET
  • Inbox
    • Gets Messages
      POST
    • Get Message
      POST
    • Deletes Message
      DELETE
  • Gmail
    • Retrieve all private Gmail IDs
      POST
    • Purchase private Gmail IDs
      POST
    • Generate private Gmail Id
      POST
    • Gets Messages
      POST
    • Get Message
      POST
    • Deletes Message
      DELETE
  1. Gmail

Get Message

POST
/gmail/message
Retrieves a Message resource with a specific messageId (It has way more information than a message retrieved with GET /gmail/inbox )

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json
messageId
string 
required
The message you want to get by messageId
Example
{
    "messageId": "string"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://22.do/api/v2/gmail/message' \
--header 'Content-Type: application/json' \
--data-raw '{
    "messageId": "string"
}'

Responses

🟢200Success
application/json
Body
code
integer 
required
status
boolean 
required
msg
string 
required
data
object 
required
time
integer 
required
subject
string 
required
body
string 
required
html
string 
required
from
string 
required
to
string 
required
tos
array[string]
required
messageId
string 
required
expireTime
integer 
required
Example
{
    "code": 200,
    "status": true,
    "msg": "success",
    "data": {
        "time": 1745411165,
        "subject": "subject",
        "body": "body content",
        "html": "html content",
        "from": "noreply <noreply@notice.22.do>",
        "to": "user@gmail.com",
        "tos": [
            "user@example.com",
            "user1@example.com",
            "user2@example.com"
        ],
        "messageId": "1589e29186e7d311882f8d7b5e07b3d5",
        "expireTime": 1745425565
    }
}
Previous
Gets Messages
Next
Deletes Message
Built with