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

Generate private Gmail Id

POST
/gmail/generate
If gmailId is not specified, the system will randomly select from all Gmail IDs associated with your account.
Setting plus to true generates addresses with the format username+random@gmail.com, which is useful for email filtering and tracking.
All generated addresses will work with Gmail's systems and will deliver mail to your original Gmail account.
The maximum value for number may be limited based on your account type and permissions.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json
gmailId
string 
optional
Specifies a particular Gmail ID to use for email generation. If not provided, the system will use all Gmail IDs associated with your account.
number
integer 
required
The number of email addresses to generate. This determines how many unique Gmail addresses will be returned.
Example:
1
plus
boolean 
required
When set to true, generated addresses will include the "+" notation (e.g., username+random@gmail.com), which can be used for email filtering. When false or omitted, addresses will use standard Gmail address formats.
Default:
true
Example
{
    "gmailId": "string",
    "number": 1,
    "plus": true
}

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/generate' \
--header 'Content-Type: application/json' \
--data-raw '{
    "gmailId": "string",
    "number": 1,
    "plus": true
}'

Responses

🟢200Success
application/json
Body
code
integer 
required
status
boolean 
required
msg
string 
required
data
object 
required
items
array[string]
required
domains
array[string]
required
Example
{
    "code": 200,
    "status": true,
    "msg": "success",
    "data": {
        "items": [
            "aa.bb.cc+2gwhp1f03",
            "aa.bb.cc+oxjhqbrp",
            "aa.bb.cc+hado15fd6",
            "aa.bb.cc+wekzk7",
            "aa.bb.cc+tdic7",
            "aa.bb.cc+9520w",
            "aa.bb.cc+95u7",
            "aa.bb.cc+amk5r4i",
            "aa.bb.cc+qngyem",
            "aa.bb.cc+rhnz"
        ],
        "domains": [
            "@gmail.com",
            "@googlemail.com"
        ]
    }
}
Previous
Purchase private Gmail IDs
Next
Gets Messages
Built with