The sync webhook endpoint lets Feishu Automation (飞书自动化) trigger a data sync whenever new records are added or updated in a Feishu Bitable. Unlike the admin job API, this endpoint does not require a session cookie — it authenticates via a shared Bearer token instead, making it suitable for automated, server-to-server calls from within the Feishu platform. The sync job runs asynchronously in the background; the endpoint returns immediately after queuing the job.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/HNU-himematsu/HNU-TimeLetter/llms.txt
Use this file to discover all available pages before exploring further.
POST /api/admin/sync/webhook
Queues a Feishu data sync job and returns immediately. The job runs in the background; useGET /api/admin/sync/jobs/:jobId to monitor progress.
Authentication: Bearer token — does not use the admin_auth cookie. See Authentication below.
Rate limit: 60 requests per hour per IP address. Exceeding this limit returns 429 Too Many Requests.
Authentication
Two authentication methods are supported. Use whichever is compatible with your Feishu Automation environment.| Method | Example | Notes |
|---|---|---|
Authorization header | Authorization: Bearer <SYNC_WEBHOOK_SECRET> | Recommended — keeps the secret out of URLs and server logs. |
secret query parameter | ?secret=<SYNC_WEBHOOK_SECRET> | Use only when custom request headers are not supported. |
SYNC_WEBHOOK_SECRET environment variable. If that variable is not set, the server falls back to ADMIN_PASSWORD.
Query parameters
A comma-separated list of
SyncTableKey values specifying which tables to sync. Defaults to creation_board when omitted.Valid values: locations, stories, creation_headers, creation_board, contributorsExample: ?tables=creation_board,creation_headersAlternative authentication method. Provide the value of
SYNC_WEBHOOK_SECRET here if your environment does not support custom request headers. See the Authentication section above.Request body
The request body is ignored. You may send an empty body, or allow Feishu Automation to send its default payload — the server does not read it.Responses
202 Accepted — Sync job was queued successfully. The job is now running in the background.
400 Bad Request — One or more values in the tables parameter are not valid SyncTableKey values.
401 Unauthorized — The Bearer token is missing or does not match SYNC_WEBHOOK_SECRET.
409 Conflict — Another sync job is already running. Wait for it to finish before triggering a new one.
429 Too Many Requests — This IP has exceeded 60 requests in the past hour.
Feishu Automation setup
In Feishu Automation (飞书自动化), add a “发送 HTTP 请求” (Send HTTP Request) action to your automation rule and fill in the fields as shown below.Config 1 — Sync creation_board only
Use this when you only need to refresh the creation board after new entries are submitted.| Field | Value |
|---|---|
| Method | POST |
| URL | https://himematsu.cn/api/admin/sync/webhook |
| Headers | Authorization: Bearer <SYNC_WEBHOOK_SECRET> |
| Body | (empty) |
Config 2 — Sync creation_board and creation_headers together
Use this when your automation rule affects both the main board table and its header metadata table.| Field | Value |
|---|---|
| Method | POST |
| URL | https://himematsu.cn/api/admin/sync/webhook?tables=creation_board,creation_headers |
| Headers | Authorization: Bearer <SYNC_WEBHOOK_SECRET> |
| Body | (empty) |
Config 3 — Query-param auth (no custom headers)
Use this only if your Feishu Automation environment does not support setting custom HTTP headers.| Field | Value |
|---|---|
| Method | POST |
| URL | https://himematsu.cn/api/admin/sync/webhook?secret=<SYNC_WEBHOOK_SECRET>&tables=creation_board |
| Body | (empty) |