Get Message
POST
/gmail/message
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
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
}
}