Tài liệu API: API Documentation:

Phiên bản 1.0.0 Version 1.0.0

Tổng quan về API

API Overview

API này cung cấp chức năng cho hệ thống email tạm thời, cho phép người dùng thêm tên miền và nhận email. Bạn có thể tạo tên miền tùy chỉnh, kiểm tra nội dung hộp thư đến và quản lý từng email riêng lẻ.

This API provides functionality for a temporary email system, allowing users to add domains and receive emails. You can create custom domains, check inbox content, and manage individual emails.

POST /api/add-domain/{domain} Thêm tên miền mới vào hệ thống Add a new domain to the system

Thêm một tên miền mới vào hệ thống email tạm thời. Tên miền phải có bản ghi MX hợp lệ trỏ đến tinyhost.shop.

Adds a new domain to the temporary email system. The domain must have valid MX records pointing to tinyhost.shop.

Parameters

Parameters

Name Name In In Type Type Required Required Description Description
domain đường dẫn path chuỗi string Yes Tên miền cần thêm (ví dụ: example.com) Domain name to add (e.g., example.com)

Bảng điều khiển kiểm tra

Test Console


            
GET /api/email/{domain}/{user}/ Lấy tất cả email cho một người dùng cụ thể Get all emails for a specific user

Lấy tất cả email cho một người dùng cụ thể tại một tên miền cụ thể.

Retrieves all emails for a specific user at a specific domain.

Parameters

Parameters

Name Name In In Type Type Required Required Description Description
domain đường dẫn path chuỗi string Yes Tên miền (ví dụ: example.com) Domain name (e.g., example.com)
user đường dẫn path chuỗi string Yes Phần tên người dùng của email (ví dụ: john cho john@example.com) Username part of the email (e.g., john for john@example.com)

Bảng điều khiển kiểm tra

Test Console


            
GET /api/email/{domain}/{user}/{uid} Lấy một email cụ thể Get a specific email

Lấy một email cụ thể cho một người dùng tại một tên miền cụ thể.

Retrieves a specific email for a user at a specific domain.

Parameters

Parameters

Name Name In In Type Type Required Required Description Description
domain đường dẫn path chuỗi string Yes Tên miền (ví dụ: example.com) Domain name (e.g., example.com)
user đường dẫn path chuỗi string Yes Phần tên người dùng của email (ví dụ: john cho john@example.com) Username part of the email (e.g., john for john@example.com)
uid đường dẫn path số nguyên integer Yes ID email cần lấy Email ID to retrieve

Bảng điều khiển kiểm tra

Test Console


            
DELETE /api/email/{domain}/{user}/{uid} Xóa một email cụ thể Delete a specific email

Xóa một email cụ thể cho một người dùng tại một tên miền cụ thể.

Deletes a specific email for a user at a specific domain.

Parameters

Parameters

Name Name In In Type Type Required Required Description Description
domain đường dẫn path chuỗi string Yes Tên miền (ví dụ: example.com) Domain name (e.g., example.com)
user đường dẫn path chuỗi string Yes Phần tên người dùng của email (ví dụ: john cho john@example.com) Username part of the email (e.g., john for john@example.com)
uid đường dẫn path số nguyên integer Yes ID email cần xóa Email ID to delete

Bảng điều khiển kiểm tra

Test Console