/v1/workspaces/{workspace_id}/integrations/github/sync/latestAuthThe most recent sync that changed or rejected something (kept 30 days), with the per-file errors and skips. 404 when there is none.
Path parameters
workspace_id*string · uuidId of the workspace.
Response · 200
status*objectWhere the sync is: `running`, then `completed` or `failed`.
started_at*string · date-timeWhen the sync started.
ended_at*string · date-timeWhen the sync finished; null while running.
summary*objectCounts of what the sync changed; null while running.
error*stringWhy the sync failed; null unless `failed`.
trigger*objectWhat started the run: `manual` (console or API), `schedule` (the 5-minute poll) or `webhook` (a push to the branch).
Example
Request
GET https://api.mail.productcraft.co/v1/workspaces/{workspace_id}/integrations/github/sync/latest
Authorization: Bearer YOUR_TOKENResponse
{
"status": {},
"started_at": "2026-01-01T00:00:00.000Z",
"ended_at": "2026-01-01T00:00:00.000Z",
"summary": {},
"error": "string",
"trigger": {}
}