{"openapi":"3.1.0","info":{"title":"G1 Tasks API","version":"1.0.0","description":"Task management, documents, notifications, attachments"},"servers":[{"url":"https://tasks-api.g1.network"}],"paths":{"/health":{"get":{"summary":"GET /health","responses":{"200":{"description":"Success"}}}},"/_routes":{"get":{"summary":"GET /_routes","responses":{"200":{"description":"Success"}}}},"/docs":{"get":{"summary":"GET /docs","responses":{"200":{"description":"Success"}}}},"/openapi.json":{"get":{"summary":"GET /openapi.json","responses":{"200":{"description":"Success"}}}},"/api/projects":{"get":{"summary":"GET /api/projects","responses":{"200":{"description":"Success"}}},"post":{"summary":"POST /api/projects","responses":{"200":{"description":"Success"}}}},"/api/projects/{id}":{"get":{"summary":"GET /api/projects/:id","responses":{"200":{"description":"Success"}}},"patch":{"summary":"PATCH /api/projects/:id","responses":{"200":{"description":"Success"}}},"delete":{"summary":"DELETE /api/projects/:id","responses":{"200":{"description":"Success"}}}},"/api/tasks":{"get":{"summary":"GET /api/tasks","responses":{"200":{"description":"Success"}}},"post":{"summary":"POST /api/tasks","responses":{"200":{"description":"Success"}}}},"/api/tasks/{id}":{"get":{"summary":"GET /api/tasks/:id","responses":{"200":{"description":"Success"}}},"patch":{"summary":"PATCH /api/tasks/:id","responses":{"200":{"description":"Success"}}},"delete":{"summary":"DELETE /api/tasks/:id","responses":{"200":{"description":"Success"}}}},"/api/tasks/{id}/move":{"patch":{"summary":"PATCH /api/tasks/:id/move","responses":{"200":{"description":"Success"}}}},"/api/tasks/{id}/activity":{"get":{"summary":"GET /api/tasks/:id/activity","responses":{"200":{"description":"Success"}}}},"/api/routines":{"get":{"summary":"GET /api/routines","responses":{"200":{"description":"Success"}}},"post":{"summary":"POST /api/routines","responses":{"200":{"description":"Success"}}}},"/api/routines/{id}":{"get":{"summary":"GET /api/routines/:id","responses":{"200":{"description":"Success"}}},"patch":{"summary":"PATCH /api/routines/:id","responses":{"200":{"description":"Success"}}},"delete":{"summary":"DELETE /api/routines/:id","responses":{"200":{"description":"Success"}}}},"/api/routines/{id}/run-now":{"post":{"summary":"POST /api/routines/:id/run-now","responses":{"200":{"description":"Success"}}}},"/api/comments":{"get":{"summary":"GET /api/comments","responses":{"200":{"description":"Success"}}},"post":{"summary":"POST /api/comments","responses":{"200":{"description":"Success"}}}},"/api/comments/{id}":{"patch":{"summary":"PATCH /api/comments/:id","responses":{"200":{"description":"Success"}}},"delete":{"summary":"DELETE /api/comments/:id","responses":{"200":{"description":"Success"}}}},"/api/attachments":{"get":{"summary":"GET /api/attachments","responses":{"200":{"description":"Success"}}},"post":{"summary":"POST /api/attachments","responses":{"200":{"description":"Success"}}}},"/api/attachments/{id}/download":{"get":{"summary":"GET /api/attachments/:id/download","responses":{"200":{"description":"Success"}}}},"/api/attachments/{id}":{"delete":{"summary":"DELETE /api/attachments/:id","responses":{"200":{"description":"Success"}}}},"/api/notifications":{"get":{"summary":"GET /api/notifications","responses":{"200":{"description":"Success"}}}},"/api/notifications/{id}/read":{"post":{"summary":"POST /api/notifications/:id/read","responses":{"200":{"description":"Success"}}}},"/api/notifications/read-all":{"post":{"summary":"POST /api/notifications/read-all","responses":{"200":{"description":"Success"}}}},"/api/users":{"get":{"summary":"GET /api/users","responses":{"200":{"description":"Success"}}}},"/api/folders":{"get":{"summary":"GET /api/folders","responses":{"200":{"description":"Success"}}},"post":{"summary":"POST /api/folders","responses":{"200":{"description":"Success"}}}},"/api/folders/{id}":{"patch":{"summary":"PATCH /api/folders/:id","responses":{"200":{"description":"Success"}}},"delete":{"summary":"DELETE /api/folders/:id","responses":{"200":{"description":"Success"}}}},"/api/documents":{"get":{"summary":"GET /api/documents","responses":{"200":{"description":"Success"}}},"post":{"summary":"POST /api/documents","responses":{"200":{"description":"Success"}}}},"/api/documents/{id}":{"get":{"summary":"GET /api/documents/:id","responses":{"200":{"description":"Success"}}},"patch":{"summary":"PATCH /api/documents/:id","responses":{"200":{"description":"Success"}}},"delete":{"summary":"DELETE /api/documents/:id","responses":{"200":{"description":"Success"}}}},"/api/documents/{id}/versions":{"get":{"summary":"GET /api/documents/:id/versions","responses":{"200":{"description":"Success"}}}},"/api/documents/{id}/versions/{versionId}":{"get":{"summary":"GET /api/documents/:id/versions/:versionId","responses":{"200":{"description":"Success"}}}},"/api/documents/{id}/restore/{versionId}":{"post":{"summary":"POST /api/documents/:id/restore/:versionId","responses":{"200":{"description":"Success"}}}},"/api/diagram-folders":{"get":{"summary":"GET /api/diagram-folders","responses":{"200":{"description":"Success"}}},"post":{"summary":"POST /api/diagram-folders","responses":{"200":{"description":"Success"}}}},"/api/diagram-folders/{id}":{"patch":{"summary":"PATCH /api/diagram-folders/:id","responses":{"200":{"description":"Success"}}},"delete":{"summary":"DELETE /api/diagram-folders/:id","responses":{"200":{"description":"Success"}}}},"/api/diagrams":{"get":{"summary":"GET /api/diagrams","responses":{"200":{"description":"Success"}}},"post":{"summary":"POST /api/diagrams","responses":{"200":{"description":"Success"}}}},"/api/diagrams/{id}":{"get":{"summary":"GET /api/diagrams/:id","responses":{"200":{"description":"Success"}}},"patch":{"summary":"PATCH /api/diagrams/:id","responses":{"200":{"description":"Success"}}},"delete":{"summary":"DELETE /api/diagrams/:id","responses":{"200":{"description":"Success"}}}},"/api/diagrams/{id}/versions":{"get":{"summary":"GET /api/diagrams/:id/versions","responses":{"200":{"description":"Success"}}}},"/api/diagrams/{id}/versions/{versionId}":{"get":{"summary":"GET /api/diagrams/:id/versions/:versionId","responses":{"200":{"description":"Success"}}}},"/api/diagrams/{id}/restore/{versionId}":{"post":{"summary":"POST /api/diagrams/:id/restore/:versionId","responses":{"200":{"description":"Success"}}}},"/api/links/tasks":{"get":{"summary":"GET /api/links/tasks","responses":{"200":{"description":"Success"}}}},"/api/links":{"get":{"summary":"GET /api/links","responses":{"200":{"description":"Success"}}},"post":{"summary":"POST /api/links","responses":{"200":{"description":"Success"}}}},"/api/links/{id}":{"delete":{"summary":"DELETE /api/links/:id","responses":{"200":{"description":"Success"}}}},"/spike/shim":{"get":{"summary":"GET /spike/shim","responses":{"200":{"description":"Success"}}}},"/spike/tasks":{"get":{"summary":"GET /spike/tasks","responses":{"200":{"description":"Success"}}}},"/spike/tasks/{id}/touch":{"post":{"summary":"POST /spike/tasks/:id/touch","responses":{"200":{"description":"Success"}}}},"/internal/agent/tasks/create":{"post":{"summary":"POST /internal/agent/tasks/create","responses":{"200":{"description":"Success"}}}},"/internal/agent/followups/{id}/promote":{"post":{"summary":"POST /internal/agent/followups/:id/promote","responses":{"200":{"description":"Success"}}}},"/internal/agent/followups/{id}/dismiss":{"post":{"summary":"POST /internal/agent/followups/:id/dismiss","responses":{"200":{"description":"Success"}}}},"/internal/agent/tasks/{id}/latest-run":{"post":{"summary":"POST /internal/agent/tasks/:id/latest-run","responses":{"200":{"description":"Success"}}}},"/internal/agent/tasks/{id}/block":{"post":{"summary":"POST /internal/agent/tasks/:id/block","responses":{"200":{"description":"Success"}}}},"/internal/agent/revert-clarified":{"post":{"summary":"POST /internal/agent/revert-clarified","responses":{"200":{"description":"Success"}}}},"/api/entities/search":{"get":{"summary":"GET /api/entities/search","responses":{"200":{"description":"Success"}}}},"/api/entities/{type}/{id}/summary":{"get":{"summary":"GET /api/entities/:type/:id/summary","responses":{"200":{"description":"Success"}}}},"/api/flows":{"get":{"summary":"GET /api/flows","responses":{"200":{"description":"Success"}}},"post":{"summary":"POST /api/flows","responses":{"200":{"description":"Success"}}}},"/api/flows/{id}":{"get":{"summary":"GET /api/flows/:id","responses":{"200":{"description":"Success"}}},"patch":{"summary":"PATCH /api/flows/:id","responses":{"200":{"description":"Success"}}},"delete":{"summary":"DELETE /api/flows/:id","responses":{"200":{"description":"Success"}}}},"/api/configs":{"get":{"summary":"GET /api/configs","responses":{"200":{"description":"Success"}}},"post":{"summary":"POST /api/configs","responses":{"200":{"description":"Success"}}}},"/api/configs/{id}":{"get":{"summary":"GET /api/configs/:id","responses":{"200":{"description":"Success"}}},"patch":{"summary":"PATCH /api/configs/:id","responses":{"200":{"description":"Success"}}},"delete":{"summary":"DELETE /api/configs/:id","responses":{"200":{"description":"Success"}}}},"/api/ad-accounts":{"get":{"summary":"GET /api/ad-accounts","responses":{"200":{"description":"Success"}}}},"/api/ad-accounts/{providerId}/detect-assets":{"post":{"summary":"POST /api/ad-accounts/:providerId/detect-assets","responses":{"200":{"description":"Success"}}}},"/api/service-agents":{"get":{"summary":"GET /api/service-agents","responses":{"200":{"description":"Success"}}}},"/api/service-agents/{id}":{"get":{"summary":"GET /api/service-agents/:id","responses":{"200":{"description":"Success"}}}},"/api/agent-labels":{"get":{"summary":"GET /api/agent-labels","responses":{"200":{"description":"Success"}}}},"/api/v1/projects":{"get":{"summary":"GET /api/v1/projects","responses":{"200":{"description":"Success"}}},"post":{"summary":"POST /api/v1/projects","responses":{"200":{"description":"Success"}}}},"/api/v1/projects/{id}":{"get":{"summary":"GET /api/v1/projects/:id","responses":{"200":{"description":"Success"}}},"patch":{"summary":"PATCH /api/v1/projects/:id","responses":{"200":{"description":"Success"}}},"delete":{"summary":"DELETE /api/v1/projects/:id","responses":{"200":{"description":"Success"}}}},"/api/v1/tasks":{"get":{"summary":"GET /api/v1/tasks","responses":{"200":{"description":"Success"}}},"post":{"summary":"POST /api/v1/tasks","responses":{"200":{"description":"Success"}}}},"/api/v1/tasks/{id}":{"get":{"summary":"GET /api/v1/tasks/:id","responses":{"200":{"description":"Success"}}},"patch":{"summary":"PATCH /api/v1/tasks/:id","responses":{"200":{"description":"Success"}}},"delete":{"summary":"DELETE /api/v1/tasks/:id","responses":{"200":{"description":"Success"}}}},"/api/v1/tasks/{id}/move":{"patch":{"summary":"PATCH /api/v1/tasks/:id/move","responses":{"200":{"description":"Success"}}}},"/api/v1/tasks/{id}/activity":{"get":{"summary":"GET /api/v1/tasks/:id/activity","responses":{"200":{"description":"Success"}}}},"/api/v1/routines":{"get":{"summary":"GET /api/v1/routines","responses":{"200":{"description":"Success"}}},"post":{"summary":"POST /api/v1/routines","responses":{"200":{"description":"Success"}}}},"/api/v1/routines/{id}":{"get":{"summary":"GET /api/v1/routines/:id","responses":{"200":{"description":"Success"}}},"patch":{"summary":"PATCH /api/v1/routines/:id","responses":{"200":{"description":"Success"}}},"delete":{"summary":"DELETE /api/v1/routines/:id","responses":{"200":{"description":"Success"}}}},"/api/v1/routines/{id}/run-now":{"post":{"summary":"POST /api/v1/routines/:id/run-now","responses":{"200":{"description":"Success"}}}},"/api/v1/comments":{"get":{"summary":"GET /api/v1/comments","responses":{"200":{"description":"Success"}}},"post":{"summary":"POST /api/v1/comments","responses":{"200":{"description":"Success"}}}},"/api/v1/comments/{id}":{"patch":{"summary":"PATCH /api/v1/comments/:id","responses":{"200":{"description":"Success"}}},"delete":{"summary":"DELETE /api/v1/comments/:id","responses":{"200":{"description":"Success"}}}},"/api/v1/attachments":{"get":{"summary":"GET /api/v1/attachments","responses":{"200":{"description":"Success"}}},"post":{"summary":"POST /api/v1/attachments","responses":{"200":{"description":"Success"}}}},"/api/v1/attachments/{id}/download":{"get":{"summary":"GET /api/v1/attachments/:id/download","responses":{"200":{"description":"Success"}}}},"/api/v1/attachments/{id}":{"delete":{"summary":"DELETE /api/v1/attachments/:id","responses":{"200":{"description":"Success"}}}},"/api/v1/notifications":{"get":{"summary":"GET /api/v1/notifications","responses":{"200":{"description":"Success"}}}},"/api/v1/notifications/{id}/read":{"post":{"summary":"POST /api/v1/notifications/:id/read","responses":{"200":{"description":"Success"}}}},"/api/v1/notifications/read-all":{"post":{"summary":"POST /api/v1/notifications/read-all","responses":{"200":{"description":"Success"}}}},"/api/v1/users":{"get":{"summary":"GET /api/v1/users","responses":{"200":{"description":"Success"}}}},"/api/v1/agent-labels":{"get":{"summary":"GET /api/v1/agent-labels","responses":{"200":{"description":"Success"}}}},"/api/v1/folders":{"get":{"summary":"GET /api/v1/folders","responses":{"200":{"description":"Success"}}},"post":{"summary":"POST /api/v1/folders","responses":{"200":{"description":"Success"}}}},"/api/v1/folders/{id}":{"patch":{"summary":"PATCH /api/v1/folders/:id","responses":{"200":{"description":"Success"}}},"delete":{"summary":"DELETE /api/v1/folders/:id","responses":{"200":{"description":"Success"}}}},"/api/v1/documents":{"get":{"summary":"GET /api/v1/documents","responses":{"200":{"description":"Success"}}},"post":{"summary":"POST /api/v1/documents","responses":{"200":{"description":"Success"}}}},"/api/v1/documents/{id}":{"get":{"summary":"GET /api/v1/documents/:id","responses":{"200":{"description":"Success"}}},"patch":{"summary":"PATCH /api/v1/documents/:id","responses":{"200":{"description":"Success"}}},"delete":{"summary":"DELETE /api/v1/documents/:id","responses":{"200":{"description":"Success"}}}},"/api/v1/documents/{id}/versions":{"get":{"summary":"GET /api/v1/documents/:id/versions","responses":{"200":{"description":"Success"}}}},"/api/v1/documents/{id}/versions/{versionId}":{"get":{"summary":"GET /api/v1/documents/:id/versions/:versionId","responses":{"200":{"description":"Success"}}}},"/api/v1/documents/{id}/restore/{versionId}":{"post":{"summary":"POST /api/v1/documents/:id/restore/:versionId","responses":{"200":{"description":"Success"}}}},"/api/v1/diagram-folders":{"get":{"summary":"GET /api/v1/diagram-folders","responses":{"200":{"description":"Success"}}},"post":{"summary":"POST /api/v1/diagram-folders","responses":{"200":{"description":"Success"}}}},"/api/v1/diagram-folders/{id}":{"patch":{"summary":"PATCH /api/v1/diagram-folders/:id","responses":{"200":{"description":"Success"}}},"delete":{"summary":"DELETE /api/v1/diagram-folders/:id","responses":{"200":{"description":"Success"}}}},"/api/v1/diagrams":{"get":{"summary":"GET /api/v1/diagrams","responses":{"200":{"description":"Success"}}},"post":{"summary":"POST /api/v1/diagrams","responses":{"200":{"description":"Success"}}}},"/api/v1/diagrams/{id}":{"get":{"summary":"GET /api/v1/diagrams/:id","responses":{"200":{"description":"Success"}}},"patch":{"summary":"PATCH /api/v1/diagrams/:id","responses":{"200":{"description":"Success"}}},"delete":{"summary":"DELETE /api/v1/diagrams/:id","responses":{"200":{"description":"Success"}}}},"/api/v1/diagrams/{id}/versions":{"get":{"summary":"GET /api/v1/diagrams/:id/versions","responses":{"200":{"description":"Success"}}}},"/api/v1/diagrams/{id}/versions/{versionId}":{"get":{"summary":"GET /api/v1/diagrams/:id/versions/:versionId","responses":{"200":{"description":"Success"}}}},"/api/v1/diagrams/{id}/restore/{versionId}":{"post":{"summary":"POST /api/v1/diagrams/:id/restore/:versionId","responses":{"200":{"description":"Success"}}}},"/api/v1/links/tasks":{"get":{"summary":"GET /api/v1/links/tasks","responses":{"200":{"description":"Success"}}}},"/api/v1/links":{"get":{"summary":"GET /api/v1/links","responses":{"200":{"description":"Success"}}},"post":{"summary":"POST /api/v1/links","responses":{"200":{"description":"Success"}}}},"/api/v1/links/{id}":{"delete":{"summary":"DELETE /api/v1/links/:id","responses":{"200":{"description":"Success"}}}},"/api/v1/entities/search":{"get":{"summary":"GET /api/v1/entities/search","responses":{"200":{"description":"Success"}}}},"/api/v1/entities/{type}/{id}/summary":{"get":{"summary":"GET /api/v1/entities/:type/:id/summary","responses":{"200":{"description":"Success"}}}},"/api/v1/flows":{"get":{"summary":"GET /api/v1/flows","responses":{"200":{"description":"Success"}}},"post":{"summary":"POST /api/v1/flows","responses":{"200":{"description":"Success"}}}},"/api/v1/flows/{id}":{"get":{"summary":"GET /api/v1/flows/:id","responses":{"200":{"description":"Success"}}},"patch":{"summary":"PATCH /api/v1/flows/:id","responses":{"200":{"description":"Success"}}},"delete":{"summary":"DELETE /api/v1/flows/:id","responses":{"200":{"description":"Success"}}}},"/api/v1/configs":{"get":{"summary":"GET /api/v1/configs","responses":{"200":{"description":"Success"}}},"post":{"summary":"POST /api/v1/configs","responses":{"200":{"description":"Success"}}}},"/api/v1/configs/{id}":{"get":{"summary":"GET /api/v1/configs/:id","responses":{"200":{"description":"Success"}}},"patch":{"summary":"PATCH /api/v1/configs/:id","responses":{"200":{"description":"Success"}}},"delete":{"summary":"DELETE /api/v1/configs/:id","responses":{"200":{"description":"Success"}}}},"/api/v1/ad-accounts":{"get":{"summary":"GET /api/v1/ad-accounts","responses":{"200":{"description":"Success"}}}},"/api/v1/ad-accounts/{providerId}/detect-assets":{"post":{"summary":"POST /api/v1/ad-accounts/:providerId/detect-assets","responses":{"200":{"description":"Success"}}}},"/api/v1/service-agents":{"get":{"summary":"GET /api/v1/service-agents","responses":{"200":{"description":"Success"}}}},"/api/v1/service-agents/{id}":{"get":{"summary":"GET /api/v1/service-agents/:id","responses":{"200":{"description":"Success"}}}}}}