API - Mail10p.com

API - Mail10p.com

Khóa API: pdZWgJngWyba9BH2SzOn8wlmNjifV1f

Tài liệu API

Điểm cuối: api/domains/{apiKey}/{type}

Phương pháp: GET

Các thông số:

  • apiKey- Khóa API của bạn.
  • type- Loại tên miền cần lấy (miễn phí, cao cấp, tất cả).

Ví dụ yêu cầu:

GET api/domains/your-api-key/all

Ví dụ trả lời:

{
    "status": true,
    "data": {
        "domains": [
            {
                "domain": "free.com",
                "type": "Free"
            },
            {
                "domain": "lobage.com",
                "type": "Free"
            },
            {
                "domain": "premium.com",
                "type": "Premium"
            }
        ]
    }
}

Điểm cuối: api/emails/{apiKey}

Phương pháp: POST

Các thông số:

  • apiKey- Khóa API của bạn.

Ví dụ yêu cầu:

POST api/emails/your-api-key

Ví dụ trả lời:

{
    "status": true,
    "data": {
        "email": "[email protected]",
        "domain": "example.com",
        "ip": "127.0.0.1",
        "fingerprint": "eef780ab2ec7535e66c1405c0bff1c64",
        "expire_at": "2025-01-01T00:00:00.000000Z",
        "created_at": "2025-01-01T00:00:00.000000Z",
        "id": 1,
        "email_token": "email_token"
    }
}

Điểm cuối: api/emails/{apiKey}/{email}/{username}/{domain}

Phương pháp: POST

Các thông số:

  • apiKey- Khóa API của bạn.
  • email- Địa chỉ email hiện tại.
  • username- Tên người dùng mới.
  • domain- Tên miền mới.

Ví dụ yêu cầu:

POST api/emails/your-api-key/[email protected]/newuser/newexample.com

Ví dụ trả lời:

{
    "status": true,
    "data": {
        "email": "[email protected]",
        "domain": "newexample.com",
        "ip": "127.0.0.1",
        "fingerprint": "eef780ab2ec7535e66c1405c0bff1c64",
        "expire_at": "2025-01-01T00:00:00.000000Z",
        "created_at": "2025-01-01T00:00:00.000000Z",
        "id": 2,
        "email_token": "email_token"
    }
}

Điểm cuối: api/emails/{apiKey}/{email}

Phương pháp: POST

Các thông số:

  • apiKey- Khóa API của bạn.
  • email- Địa chỉ email cần xóa.

Ví dụ yêu cầu:

POST api/emails/your-api-key/[email protected]

Ví dụ trả lời:

{
    "status": true,
    "message": "Email has been successfully deleted."
}

Điểm cuối: api/messages/{apiKey}/{email}

Phương pháp: GET

Các thông số:

  • apiKey- Khóa API của bạn.
  • email- Địa chỉ email để nhận tin nhắn.

Ví dụ yêu cầu:

GET api/messages/your-api-key/[email protected]

Ví dụ trả lời:

{
    "status": true,
    "mailbox": "[email protected]",
    "messages": [
        {
            "is_seen": true,
            "subject": "Test Subject",
            "from": "John Doe",
            "from_email": "[email protected]",
            "to": "[email protected]",
            "receivedAt": "2025-01-01 00:00:38",
            "id": "ap94AWDg123ELQz07vrVB9dLXlbqZM5NGwYxOJKko8n6m1",
            "html": true,
            "content": "Test content",
            "attachments": [
                {
                    "name": "file.txt",
                    "extension": "txt",
                    "size": 91,
                    "url": "http://yoursite.com/api/d/ap94AWDg123ELQz07vrVB9dLXlbqZM5NGwYxOJKko8n6m1/file.txt"
                }
            ]
        }
    ]
}

Điểm cuối: api/messages/{apiKey}/message/{messageId}

Phương pháp: GET

Các thông số:

  • apiKey- Khóa API của bạn.
  • messageId- ID của tin nhắn cần lấy.

Ví dụ yêu cầu:

GET api/messages/your-api-key/message/ap94AWDg123ELQz07vrVB9dLXlbqZM5NGwYxOJKko8n6m1

Ví dụ trả lời:

{
    "status": true,
    "data": {
        "is_seen": true,
        "subject": "Test Subject",
        "from": "John Doe",
        "from_email": "[email protected]",
        "to": "[email protected]",
        "receivedAt": "2024-12-28 00:00:38",
        "id": "ap94AWDg123ELQz07vrVB9dLXlbqZM5NGwYxOJKko8n6m1",
        "html": true,
        "content": "Test content",
        "attachments": [
            {
                "name": "file.txt",
                "extension": "txt",
                "size": 91,
                "url": "http://yoursite.come/api/d/ap94AWDg123ELQz07vrVB9dLXlbqZM5NGwYxOJKko8n6m1/file.txt"
            }
        ]
    }
}

Điểm cuối: api/messages/{apiKey}/message/{messageId}

Phương pháp: POST

Các thông số:

  • apiKey- Khóa API của bạn.
  • messageId- ID của tin nhắn cần xóa.

Ví dụ yêu cầu:

POST api/messages/your-api-key/message/ap94AWDg123ELQz07vrVB9dLXlbqZM5NGwYxOJKko8n6m1

Ví dụ trả lời:

{
    "status": true,
    "message": "Message was deleted successfully."
}

Điểm cuối: api/d/{hash_id}/{file?}

Phương pháp: GET

Các thông số:

  • hash_id- Mã băm của tin nhắn.
  • file- Tên tệp cần tải xuống (tùy chọn).

Ví dụ yêu cầu:

GET api/d/abc123/filename.pdf

Ví dụ trả lời:

The file will be downloaded directly.

Endpoint: /token/{email_token}

Method: GET

Description: Send your visitors to a site with a token to create the same email.

Parameters:

  • email_token - Your email token

Example Response:

The user will be redirected to a page where the email associated with the token is created or displayed.