Xây dựng với BusyBee.Day
Tích hợp lập lịch thông minh vào ứng dụng của bạn qua REST API và webhook.
// Create a task via the BusyBee.Day API
const response = await fetch('https://api.busybee.day/api/tasks', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_JWT_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
title: 'Review pull request',
priority: 'P2',
due_date: '2026-04-01',
duration: 30,
project_id: 'proj_abc123'
})
});
const task = await response.json();
console.log(task);Tài nguyên cho nhà phát triển
Tài liệu API
Tham chiếu REST API cho nhiệm vụ, dự án, thói quen và lập lịch
Xác thực
Xác thực dựa trên JWT để truy cập API
Bắt đầu nhanh
Tạo nhiệm vụ và dự án đầu tiên qua API trong 5 phút
Webhook
Webhook đến và đi với 11+ loại sự kiện và ánh xạ trường
Tham chiếu API
Endpoint cho nhiệm vụ, dự án, thói quen, thời gian tập trung, webhook và hơn nữa
Ví dụ tích hợp
Mẫu payload webhook và mẫu tích hợp
API Overview
The BusyBee.Day API is a JSON REST API. The base URL is https://api.busybee.day. Every endpoint is prefixed with /api/. Requests and responses use UTF-8 JSON. All timestamps are ISO 8601 in UTC.
Authentication is via JWT bearer tokens. Rate limits are 600 requests per minute per token. Pagination uses page and page_size query parameters (max page size: 100).
Authentication
BusyBee.Day uses JWT bearer tokens. Obtain a token by calling /api/auth/login with your email and password. Pass the returned token in the Authorization header on every subsequent request.
// 1. Log in to obtain a JWT
const { token } = await fetch('https://api.busybee.day/api/auth/login', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
email: '[email protected]',
password: 'your-password'
})
}).then(r => r.json());
// 2. Use the token in subsequent requests
const tasks = await fetch('https://api.busybee.day/api/tasks', {
headers: { 'Authorization': `Bearer ${token}` }
}).then(r => r.json());Quickstart
- Create an account at /register.
- Log in via the API to obtain a JWT (see Authentication above).
- Create your first project with
POST /api/projects. - Add tasks with
POST /api/tasks, passing theproject_idfrom step 3. - Subscribe to events with
POST /api/webhooksto be notified when tasks change.
Endpoint Reference
Looking for a specific endpoint not listed? Reach out via Contact.
Integration Examples
Outgoing webhooks fire when tasks, projects, habits, or meetings change. Each delivery includes an HMAC-SHA256 signature so you can verify the payload came from BusyBee.Day.
// Outgoing webhook payload (task.completed event)
{
"event": "task.completed",
"delivered_at": "2026-05-06T14:32:11Z",
"data": {
"id": "task_8f3a...",
"title": "Review pull request",
"priority": "P2",
"project_id": "proj_abc123",
"completed_at": "2026-05-06T14:32:10Z",
"completed_by": "user_61d0..."
}
}
// Verify signature header
// X-BusyBee-Signature: sha256=<hex>
// HMAC-SHA256(body, your_signing_secret)Full webhook setup, event list, and JSON-path mapping for incoming payloads is documented at /integrations/webhooks.
Bạn có thể xây dựng gì
Cần trợ giúp?
Đội hỗ trợ nhà phát triển của chúng tôi ở đây để giúp bạn xây dựng.
Liên hệ hỗ trợ nhà phát triển →