Giao Diện
Tai lieu Nha phat trien

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

URL Co so
https://api.icebox.cool/v1

Bat dau Nhanh

Bat dau su dung Icebox API trong vai phut.

JavaScript
// 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);
Yeu cau cURL
curl -X GET "https://api.icebox.cool/v1/emails" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
Phan hoi
{
  "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.

Email

Gui, nhan va quan ly tin nhan email

GET/emailsLiet ke tat ca email
GET/emails/{id}Lay email cu the
POST/emailsGui email moi
PUT/emails/{id}Cap nhat sieu du lieu email
DELETE/emails/{id}Xoa email

Danh ba

Quan ly so dia chi va thong tin lien lac cua ban

GET/contactsLiet ke tat ca danh ba
GET/contacts/{id}Lay danh ba cu the
POST/contactsTao danh ba moi
PUT/contacts/{id}Cap nhat danh ba
DELETE/contacts/{id}Xoa danh ba

Thu muc va Nhan

Sap xep email voi thu muc va nhan

GET/foldersLiet ke tat ca thu muc
POST/foldersTao thu muc moi
GET/labelsLiet ke tat ca nhan
POST/labelsTao nhan moi

Webhook

Nhan thong bao thoi gian thuc cho cac su kien

GET/webhooksLiet ke dang ky webhook
POST/webhooksTao webhook
DELETE/webhooks/{id}Xoa webhook

Tai khoan

Quan ly cai dat va tuy chon tai khoan

GET/accountLay chi tiet tai khoan
PUT/accountCap nhat cai dat tai khoan
GET/account/usageLay thong ke su dung API

Tep dinh kem

Tai len va tai xuong tep dinh kem email

GET/attachments/{id}Tai xuong tep dinh kem
POST/attachmentsTai len tep dinh kem
DELETE/attachments/{id}Xoa tep dinh kem

SDK Chinh thuc

Su dung thu vien chinh thuc cua chung toi de tich hop nhanh hon.

JavaScript / TypeScript

npm install @icebox/sdk

Python

pip install icebox-sdk

Ruby

gem install icebox

Go

go get github.com/icebox/sdk-go

Gioi han Toc do

Gioi han toc do API dua tren cap do dang ky cua ban.

Cap doGioi han Toc doGioi han Hang ngay
Mien phi100 yeu cau/phut1.000/ngay
Pro1.000 yeu cau/phut50.000/ngay
Doanh nghiệp5.000 yeu cau/phut250.000/ngay
Doanh nghiệp lớnTuy chinhKhong gioi han

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_KEY

San sang bat dau?

Tao khoa API va bat dau xay dung tich hop cua ban ngay hom nay.