Tham chieu API
Xay dung cac tich hop manh me voi Icebox API. Truy cap email, danh ba va nhieu hon nua theo cach lap trinh.
Thiet ke RESTful
URL sach, de doan va cac phuong thuc HTTP tieu chuan
Bao mat Mac dinh
Tuy chon xac thuc OAuth 2.0 va khoa API
Webhook Thoi gian thuc
Nhan thong bao ngay lap tuc khi co su kien
SDK Chinh thuc
Thu vien cho cac ngon ngu va framework pho bien
https://api.icebox.cool/v1Bat dau Nhanh
Bat dau su dung Icebox API trong vai phut.
// Install the SDK
npm install @icebox/sdk
// Initialize the client
import { Icebox } from '@icebox/sdk';
const icebox = new Icebox({
apiKey: 'your_api_key_here'
});
// Fetch emails from inbox
const emails = await icebox.emails.list({
folder: 'inbox',
limit: 10
});
console.log(emails);curl -X GET "https://api.icebox.cool/v1/emails" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"{
"data": [
{
"id": "msg_abc123",
"subject": "Welcome to Icebox",
"from": {
"email": "hello@icebox.cool",
"name": "Icebox Team"
},
"date": "2025-01-15T10:30:00Z",
"snippet": "Thanks for signing up...",
"labels": ["inbox", "unread"]
}
],
"pagination": {
"total": 156,
"page": 1,
"per_page": 10
}
}Diem cuoi API
Kham pha cac diem cuoi co san duoc sap xep theo tai nguyen.
Gui, nhan va quan ly tin nhan email
/emailsLiet ke tat ca email/emails/{id}Lay email cu the/emailsGui email moi/emails/{id}Cap nhat sieu du lieu email/emails/{id}Xoa emailDanh ba
Quan ly so dia chi va thong tin lien lac cua ban
/contactsLiet ke tat ca danh ba/contacts/{id}Lay danh ba cu the/contactsTao danh ba moi/contacts/{id}Cap nhat danh ba/contacts/{id}Xoa danh baThu muc va Nhan
Sap xep email voi thu muc va nhan
/foldersLiet ke tat ca thu muc/foldersTao thu muc moi/labelsLiet ke tat ca nhan/labelsTao nhan moiWebhook
Nhan thong bao thoi gian thuc cho cac su kien
/webhooksLiet ke dang ky webhook/webhooksTao webhook/webhooks/{id}Xoa webhookTai khoan
Quan ly cai dat va tuy chon tai khoan
/accountLay chi tiet tai khoan/accountCap nhat cai dat tai khoan/account/usageLay thong ke su dung APITep dinh kem
Tai len va tai xuong tep dinh kem email
/attachments/{id}Tai xuong tep dinh kem/attachmentsTai len tep dinh kem/attachments/{id}Xoa tep dinh kemSDK Chinh thuc
Su dung thu vien chinh thuc cua chung toi de tich hop nhanh hon.
JavaScript / TypeScript
npm install @icebox/sdkPython
pip install icebox-sdkRuby
gem install iceboxGo
go get github.com/icebox/sdk-goGioi han Toc do
Gioi han toc do API dua tren cap do dang ky cua ban.
Xac thuc
Tat ca yeu cau API yeu cau xac thuc qua khoa API hoac token OAuth 2.0. Bao gom thong tin xac thuc cua ban trong header Authorization.
Authorization: Bearer YOUR_API_KEYSan sang bat dau?
Tao khoa API va bat dau xay dung tich hop cua ban ngay hom nay.