API Documentation

Email Purchase Tool

Enter your key(s) below to check balance or purchase emails. You can enter multiple keys, one per line.

Enter your key(s):
Results:

API Documentation

1. Check User Balance

Retrieve the balance associated with a user's key.

GET http://91.214.78.42:8000/balance?apikey=USER_KEY

  • apikey: User's key for authentication. The key you received after purchase.
Example Request: http://91.214.78.42:8000/balance?apikey=HLKfsnGmPoXJPecYtNXu8DAehGDzkiGoxJc7rw6Z
Example Response:
{
  "apikey": "USER_KEY",
  "balance": 50
}

2. Check Email Stock

Retrieve the number of available emails for purchase.

GET http://91.214.78.42:8000/instock

Example Response:
{
  "hotmail.com": 120,
  "outlook.com": 300
}

3. Purchase Emails

Buy email accounts using a user's key.

GET http://91.214.78.42:8000/buy?mail_domain=DOMAIN&quantity=NUMBER&apikey=USER_KEY&format=FORMAT

  • mail_domain: Specify the domain (hotmail or outlook).
  • quantity: Number of accounts to purchase.
  • apikey: User's key for authentication. The key you received after purchase.
  • format: Format of the response (1, 2, or 3).
Example Request: http://91.214.78.42:8000/buy?mail_domain=hotmail&quantity=1&apikey=HLKfsnGmPoXJPecYtNXu8DAehGDzkiGoxJc7rw6Z&format=1
Response Formats:
  • 1: JSON format (default).
  • 2: email:password:refresh_token:client_id.
  • 3: email:password.
Example Response (Format 1):
[
  {
    "email": "example@hotmail.com",
    "password": "password",
    "refresh_token": "refreshtoken",
    "access_token": "accesstoken",
    "r_expire": "date",
    "client_id": "clientid"
  }
]
Example Response (Format 2):
example@hotmail.com:password:refreshtoken:accesstoken:clientid
Example Response (Format 3):
example@hotmail.com:password

How to Purchase an Email

Step-by-Step Guide

Follow these simple steps to purchase an email account:

  1. Open your browser's search bar.
  2. Paste API requests from the documentation into the search bar to check your balance, check available email stock or purchase an email account.
  3. Replace USER_KEY with your actual API key.

Video Tutorial

Watch the video below for a detailed guide on how to purchase an email:

Important Information

⏰ 24/7 Registration and Updates

We register and add emails around the clock. If the required accounts are not currently available, it may be due to temporary software issues. Our team actively monitors the process and does everything possible to resolve issues as quickly as possible.

⌛️ Account Lifespan

Please note that accounts are active for 1 to 6 hours. After this time, a phone number verification request may appear. We recommend using the accounts immediately after purchase.

💼 Replacement Guarantee

If an account turns out to be non-functional, we provide a guarantee for its replacement within 30 minutes of purchase.

🛡 What are Access Token, Refresh Token, and Client ID, and how to use OAuth2 for IMAP?

OAuth2 is a new way to connect to Microsoft email. To understand how these tokens work together and how to connect to email via IMAP using OAuth2, we have prepared a detailed article for you. In it, you will find simple explanations and practical examples in Python and JavaScript.

OAuth2 Documentation for IMAP

💡 All You Need to Know About Microsoft OAuth2 Authorization for IMAP

Recently, Microsoft made OAuth2 authorization mandatory for working with email accounts via the IMAP protocol. This means you now need to use tokens and specific credentials instead of a simple username and password. Let's break it down to make it easy to understand how it works.

🔍 What is OAuth2 Authorization?

OAuth2 is a modern and secure way to authorize access to your data without sharing your login credentials directly. Instead, you use temporary tokens that allow apps to interact with your email safely.

📌 Key Terms You Should Know

  • Access Token: A temporary key that allows your app to work with your email account on your behalf. Typically valid for 1 hour, after which it needs to be refreshed.
  • Refresh Token: A token used to get a new Access Token when the current one expires. Long-lived and doesn't need to be updated frequently.
  • Client ID: A unique identifier for your app, provided by Microsoft when you register it. It identifies your bot in the OAuth2 system.

🛠️ Connecting to IMAP with Access Token

To connect to your email using IMAP, you'll need:

  • Access Token (temporary access key)
  • Email Address
  • Password (if required by your setup)

⚙️ Example: How to connect using Python

import imaplib

# Connection details
email = "your_email@example.com"
access_token = "your_access_token"
imap_host = "outlook.office365.com"

# Establish connection
mail = imaplib.IMAP4_SSL(imap_host)
auth_string = f"user={email} \x01auth=Bearer {access_token}\x01\x01"
mail.authenticate("XOAUTH2", lambda x: auth_string)

# Access the inbox
mail.select("inbox")
status, messages = mail.search(None, "ALL")
print("Messages:", messages)
                    

⚙️ Example: How to connect using JavaScript

const { ImapFlow } = require('imapflow');

async function connectToMailbox() {
    const client = new ImapFlow({
        host: 'outlook.office365.com',
        port: 993,
        secure: true,
        auth: {
            user: 'your_email@example.com',
            accessToken: 'your_access_token'
        }
    });

    try {
        await client.connect();
        console.log('Connected to the mailbox!');
    } catch (error) {
        console.error('Error:', error);
    }
}
                    

🔄 Refreshing Access Token with Refresh Token

To refresh your Access Token, you'll need:

  • Refresh Token
  • Client ID

📎 Example: How to refresh token using Python

import requests

url = "https://login.live.com/oauth20_token.srf"
payload = {
    "client_id": "<your_client_id>",
    "grant_type": "refresh_token",
    "refresh_token": "<your_refresh_token>"
}
headers = {
    "Content-Type": "application/x-www-form-urlencoded"
}

response = requests.post(url, data=payload, headers=headers)

if response.status_code == 200:
    print("Access Token:", response.json()["access_token"])
else:
    print("Error:", response.json())
                    

📎 Example: How to refresh token using JavaScript

const fetch = require('node-fetch');

const url = "https://login.live.com/oauth20_token.srf";

const payload = new URLSearchParams({
    client_id: "<your_client_id>",
    grant_type: "refresh_token",
    refresh_token: "<your_refresh_token>"
});

fetch(url, {
    method: "POST",
    headers: {
        "Content-Type": "application/x-www-form-urlencoded"
    },
    body: payload
})
    .then(response => {
        if (!response.ok) {
            throw new Error(`Error: ${response.status}`);
        }
        return response.json();
    })
    .then(data => {
        console.log("Access Token:", data.access_token);
    })
    .catch(error => {
        console.error("Error:", error);
    });
                    

🤝 Why OAuth2 is Important?

OAuth2 ensures your login credentials are never shared directly, making your email access more secure. By using tokens, you can automate access and refresh authentication seamlessly.