강력한 기능, 간단한 사용법
몇 줄의 코드로 이메일 인증을 구현하세요
OTP 이메일 인증
6자리 OTP로 안전하게 사용자 인증. 비밀번호 없이 회원가입/로그인을 구현하세요.
대량 메일 발송
캠페인 기반 이메일 마케팅. 뉴스레터, 프로모션 메일을 손쉽게 발송하세요.
템플릿 빌더
드래그 앤 드롭으로 이메일 템플릿 제작. 코딩 없이 전문적인 디자인을 완성하세요.
실시간 분석
오픈율, 클릭률, 구독취소율 등 상세한 통계로 캠페인 성과를 분석하세요.
강력한 API
RESTful API와 SDK로 손쉽게 연동. PHP, Node.js 등 다양한 언어를 지원합니다.
보안 최우선
TLS 암호화, Rate Limiting, 스팸 방지. 엔터프라이즈급 보안을 제공합니다.
몇 줄이면 끝
복잡한 인증 로직, MailPass API로 간단하게 해결하세요
# pip install requests
import requests
API_KEY = "mp_live_your_api_key_here"
BASE_URL = "https://api.mailpass.im/v1"
# Send OTP
response = requests.post(
f"{BASE_URL}/otp/send",
headers={"Authorization": f"Bearer {API_KEY}"},
json={"email": "user@example.com"}
)
data = response.json()
# Verify OTP
result = requests.post(
f"{BASE_URL}/otp/verify",
headers={"Authorization": f"Bearer {API_KEY}"},
json={
"email": "user@example.com",
"code": "123456"
}
).json()
if result["data"]["verified"]:
token = result["data"]["token"]
print("Verified!")
// Spring RestTemplate
@Service
public class MailPassService {
private final RestTemplate restTemplate;
private final String apiKey = "mp_live_your_api_key_here";
private final String baseUrl = "https://api.mailpass.im/v1";
// Send OTP
public OtpResponse sendOtp(String email) {
HttpHeaders headers = new HttpHeaders();
headers.setBearerAuth(apiKey);
headers.setContentType(MediaType.APPLICATION_JSON);
Map<String, String> body = Map.of("email", email);
HttpEntity<Map> request = new HttpEntity<>(body, headers);
return restTemplate.postForObject(
baseUrl + "/otp/send", request, OtpResponse.class
);
}
// Verify OTP
public VerifyResponse verifyOtp(String email, String code) {
HttpHeaders headers = new HttpHeaders();
headers.setBearerAuth(apiKey);
headers.setContentType(MediaType.APPLICATION_JSON);
Map<String, String> body = Map.of(
"email", email,
"code", code
);
HttpEntity<Map> request = new HttpEntity<>(body, headers);
return restTemplate.postForObject(
baseUrl + "/otp/verify", request, VerifyResponse.class
);
}
}
// npm install axios
const axios = require('axios');
const API_KEY = 'mp_live_your_api_key_here';
const BASE_URL = 'https://api.mailpass.im/v1';
const client = axios.create({
baseURL: BASE_URL,
headers: { 'Authorization': `Bearer ${API_KEY}` }
});
// Send OTP
async function sendOtp(email) {
const { data } = await client.post('/otp/send', { email });
return data;
}
// Verify OTP
async function verifyOtp(email, code) {
const { data } = await client.post('/otp/verify', { email, code });
if (data.data.verified) {
console.log('Verified!', data.data.token);
}
return data;
}
// Usage
(async () => {
await sendOtp('user@example.com');
await verifyOtp('user@example.com', '123456');
})();
# Send OTP
curl -X POST https://api.mailpass.im/v1/otp/send \
-H "Authorization: Bearer mp_live_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{"email": "user@example.com"}'
# Response
# {
# "success": true,
# "data": {
# "request_id": "otp_abc123def456",
# "expires_at": "2026-01-11T10:05:00Z"
# }
# }
# Verify OTP
curl -X POST https://api.mailpass.im/v1/otp/verify \
-H "Authorization: Bearer mp_live_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{"email": "user@example.com", "code": "123456"}'
# Response
# {
# "success": true,
# "data": {
# "verified": true,
# "token": "eyJhbGciOiJIUzI1NiIs..."
# }
# }