Download OpenAPI specification:
Interface between the frontend and backend of the Agent Control application.
Creates a new project by linking a GitHub repository.
| github_repo | string |
| github_account_id | integer |
| csrf_token | string |
github_repo=google%2Fjules&github_account_id=1&csrf_token=token_abc_123
Manually triggers the Jules agent for a specific task.
| trigger_agent | string |
| task_id | integer |
| csrf_token | string |
trigger_agent=Run%20Agent&task_id=42&csrf_token=token_abc_123
<html>...Agent response...</html>
Receives 'issues' events from GitHub.
| X-Hub-Signature-256 required | string Examples:
|
| X-GitHub-Event required | string Value: "issues" Examples:
|
| action | string |
object | |
object |
{- "action": "opened",
- "issue": {
- "number": 101,
- "title": "Bug: App crashes",
- "body": "Steps to reproduce..."
}, - "repository": {
- "full_name": "google/jules"
}
}OK
Receives updates from the Telegram Bot API.
| X-Telegram-Bot-Api-Secret-Token required | string Examples:
|
{- "update_id": 12345,
- "message": {
- "message_id": 1,
- "from": {
- "id": 98765,
- "first_name": "John"
}, - "chat": {
- "id": 98765,
- "type": "private"
}, - "date": 1610000000,
- "text": "/start token_abc"
}
}OK
Returns a list of projects associated with the authenticated user.
[- {
- "id": 1,
- "user_id": 1,
- "github_account_id": 1,
- "github_repo": "google/jules",
- "webhook_secret": "secret_123",
- "created_at": "2023-10-27T10:05:00Z",
- "github_username": "johndoe_git",
- "blockly_config": {
- "xml": "string",
- "js": "string"
}, - "roadmap_data": [
- {
- "name": "string",
- "html_url": "string",
- "next_task": "string"
}
], - "roadmap_updated_at": "2023-10-27T10:05:00Z"
}
]Creates a new project by linking a GitHub repository.
| github_repo required | string |
| github_account_id required | integer |
{- "github_repo": "string",
- "github_account_id": 0
}{- "status": "string",
- "project_id": 0,
- "message": "string"
}Returns details for a specific project, including roadmap data.
| id required | integer Project ID |
{- "id": 1,
- "user_id": 1,
- "github_account_id": 1,
- "github_repo": "google/jules",
- "webhook_secret": "secret_123",
- "created_at": "2023-10-27T10:05:00Z",
- "github_username": "johndoe_git",
- "blockly_config": {
- "xml": "string",
- "js": "string"
}, - "roadmap_data": [
- {
- "name": "string",
- "html_url": "string",
- "next_task": "string"
}
], - "roadmap_updated_at": "2023-10-27T10:05:00Z"
}Triggers actions like issue synchronization, creating issues from templates/roadmap, or updating settings.
| id required | integer Project ID |
| action required | string Enum: "sync_issues" "create_from_template" "create_from_roadmap" "update_settings" "update_notifications" "create_github_issue" |
| title | string Required for 'create_github_issue' |
| body | string Optional for 'create_github_issue' |
| labels | Array of strings Optional labels for 'create_github_issue' |
| template_id | integer Required for 'create_from_template' |
object Parameter values for the template | |
| roadmap_name | string Required for 'create_from_roadmap' |
| github_repo | string Required for 'update_settings' |
| github_account_id | integer Required for 'update_settings' |
| blockly_config | string or null Optional for 'update_settings' |
object Required for 'update_notifications' |
{- "action": "sync_issues",
- "title": "string",
- "body": "string",
- "labels": [
- "string"
], - "template_id": 0,
- "params": {
- "property1": "string",
- "property2": "string"
}, - "roadmap_name": "string",
- "github_repo": "string",
- "github_account_id": 0,
- "blockly_config": "string",
- "status_settings": {
- "property1": true,
- "property2": true
}
}{- "status": "string",
- "message": "string"
}Returns a list of tasks, optionally filtered by project or status.
| id | integer Project ID (optional) |
| filter | string Enum: "all_open" "github_running" "github_passed" "github_failed" "jules_analyzing" "jules_executing" "jules_failed" "open_issues" Filter criteria |
[- {
- "id": 42,
- "project_id": 1,
- "issue_number": 101,
- "title": "Bug: App crashes",
- "body": "Steps to reproduce...",
- "status": "created",
- "agent_response": "The bug is caused by...",
- "jules_status": "coding",
- "github_state": "open",
- "github_repo": "google/jules",
- "created_at": "2023-10-27T10:10:00Z",
- "last_synced_at": "2023-10-27T10:15:00Z",
- "autorepeat_remaining": 5,
- "labels": [
- {
- "name": "string",
- "color": "string"
}
], - "pr_details": {
- "title": "string",
- "body": "string",
- "state": "string",
- "merged": true,
- "base": {
- "ref": "string"
}, - "head": {
- "ref": "string"
}, - "mergeable_state": "string",
- "draft": true
}, - "jules_messages": [
- {
- "user": {
- "login": "string"
}, - "body": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "html_url": "string"
}
]
}
]Returns a list of all active autorepeat tasks for the authenticated user.
[- {
- "id": 42,
- "project_id": 1,
- "issue_number": 101,
- "title": "Bug: App crashes",
- "body": "Steps to reproduce...",
- "status": "created",
- "agent_response": "The bug is caused by...",
- "jules_status": "coding",
- "github_state": "open",
- "github_repo": "google/jules",
- "created_at": "2023-10-27T10:10:00Z",
- "last_synced_at": "2023-10-27T10:15:00Z",
- "autorepeat_remaining": 5,
- "labels": [
- {
- "name": "string",
- "color": "string"
}
], - "pr_details": {
- "title": "string",
- "body": "string",
- "state": "string",
- "merged": true,
- "base": {
- "ref": "string"
}, - "head": {
- "ref": "string"
}, - "mergeable_state": "string",
- "draft": true
}, - "jules_messages": [
- {
- "user": {
- "login": "string"
}, - "body": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "html_url": "string"
}
]
}
]Returns details for a specific task.
| id required | integer Task ID |
{- "id": 42,
- "project_id": 1,
- "issue_number": 101,
- "title": "Bug: App crashes",
- "body": "Steps to reproduce...",
- "status": "created",
- "agent_response": "The bug is caused by...",
- "jules_status": "coding",
- "github_state": "open",
- "github_repo": "google/jules",
- "created_at": "2023-10-27T10:10:00Z",
- "last_synced_at": "2023-10-27T10:15:00Z",
- "autorepeat_remaining": 5,
- "labels": [
- {
- "name": "string",
- "color": "string"
}
], - "pr_details": {
- "title": "string",
- "body": "string",
- "state": "string",
- "merged": true,
- "base": {
- "ref": "string"
}, - "head": {
- "ref": "string"
}, - "mergeable_state": "string",
- "draft": true
}, - "jules_messages": [
- {
- "user": {
- "login": "string"
}, - "body": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "html_url": "string"
}
]
}Triggers actions like agent execution or PR merging for a task.
| id required | integer Task ID |
| action required | string Enum: "trigger_agent" "merge_close" "merge_close_duplicate" |
{- "action": "trigger_agent"
}{- "status": "string",
- "message": "string",
- "agent_response": "string"
}Returns logs for a specific task.
| id required | integer Task ID |
[- {
- "id": 500,
- "task_id": 42,
- "message": "Agent triggered by user John Doe",
- "level": "info",
- "created_at": "2023-10-27T10:11:00Z"
}
]Returns a list of webhook logs for the authenticated user or all logs if admin.
[- {
- "id": 1000,
- "user_id": 1,
- "user_email": "john@example.com",
- "endpoint": "github/webhook.php",
- "payload": "string",
- "headers": "string",
- "status_code": 200,
- "error_message": "string",
- "created_at": "2023-10-27T10:20:00Z"
}
]Returns a list of performance and API logs for the authenticated user or all logs if admin.
[- {
- "id": 2000,
- "user_id": 1,
- "user_email": "john@example.com",
- "type": "api",
- "target": "GET /api/projects",
- "duration": 0.123,
- "context": { },
- "status_code": 200,
- "error_message": "Not Found",
- "created_at": "2023-10-27T10:30:00Z"
}
]Returns a list of issue templates for the authenticated user.
[- {
- "id": 1,
- "name": "Bug Report",
- "title_template": "Bug: %1",
- "body_template": "Steps to reproduce: %2",
- "parameter_config": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2023-10-27T10:00:00Z"
}
]Creates a new issue template or updates an existing one.
| id | integer Template ID (for updates) |
| name required | string |
| title_template required | string |
| body_template | string |
object |
{- "id": 0,
- "name": "string",
- "title_template": "string",
- "body_template": "string",
- "parameter_config": {
- "property1": "string",
- "property2": "string"
}
}Returns the profile and configuration of the currently authenticated user.
{- "id": 1,
- "google_id": "123456789",
- "name": "John Doe",
- "email": "john@example.com",
- "role": "user",
- "created_at": "2023-10-27T10:00:00Z",
- "telegram_bot_name": "MyAgentBot",
- "telegram_bot_token": "string",
- "telegram_webhook_secret": "string",
- "telegram_chat_id": 123456789,
- "jules_api_key": "string",
- "has_jules_key": true,
- "jules_quota_usage": 150,
- "jules_quota_limit": 1000,
- "blockly_config": {
- "xml": "string",
- "js": "string"
}, - "github_accounts": [
- {
- "github_account_id": 0,
- "github_username": "string"
}
], - "notification_settings": {
- "in_app": true,
- "browser": true,
- "telegram": true
}, - "notification_event_settings": {
- "created": true,
- "processing": true,
- "ready": true,
- "finished": true,
- "failed": true,
- "analyzing": true,
- "planning": true,
- "executing": true,
- "verifying": true,
- "implemented": true,
- "checking": true,
- "failed_jules": true,
- "failed_pr": true
}
}Updates the profile and configuration of the currently authenticated user.
| jules_api_key | string or null |
| blockly_config | string or null |
| telegram_bot_name | string or null |
| telegram_bot_token | string or null |
| telegram_webhook_secret | string or null |
object | |
object |
{- "jules_api_key": "string",
- "blockly_config": "string",
- "telegram_bot_name": "string",
- "telegram_bot_token": "string",
- "telegram_webhook_secret": "string",
- "notification_settings": {
- "in_app": true,
- "browser": true,
- "telegram": true
}, - "notification_event_settings": {
- "created": true,
- "processing": true,
- "ready": true,
- "finished": true,
- "failed": true,
- "analyzing": true,
- "planning": true,
- "executing": true,
- "verifying": true,
- "implemented": true,
- "checking": true,
- "failed_jules": true,
- "failed_pr": true
}
}{- "id": 1,
- "google_id": "123456789",
- "name": "John Doe",
- "email": "john@example.com",
- "role": "user",
- "created_at": "2023-10-27T10:00:00Z",
- "telegram_bot_name": "MyAgentBot",
- "telegram_bot_token": "string",
- "telegram_webhook_secret": "string",
- "telegram_chat_id": 123456789,
- "jules_api_key": "string",
- "has_jules_key": true,
- "jules_quota_usage": 150,
- "jules_quota_limit": 1000,
- "blockly_config": {
- "xml": "string",
- "js": "string"
}, - "github_accounts": [
- {
- "github_account_id": 0,
- "github_username": "string"
}
], - "notification_settings": {
- "in_app": true,
- "browser": true,
- "telegram": true
}, - "notification_event_settings": {
- "created": true,
- "processing": true,
- "ready": true,
- "finished": true,
- "failed": true,
- "analyzing": true,
- "planning": true,
- "executing": true,
- "verifying": true,
- "implemented": true,
- "checking": true,
- "failed_jules": true,
- "failed_pr": true
}
}Returns a list of notifications for the authenticated user.
| action | string Enum: "list" "unread_count" |
{- "status": "string",
- "notifications": [
- {
- "notification_id": 0,
- "user_id": 0,
- "title": "string",
- "message": "string",
- "title_plain": "string",
- "message_plain": "string",
- "github_repo": "string",
- "is_read": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "source_url": "string"
}
}
], - "unread_count": 0,
- "settings": { }
}Marks notifications as read or clears all.
| action required | string Enum: "mark_read" "mark_all_read" "clear_all" "test_broadcast" |
| notification_id | integer |
{- "action": "mark_read",
- "notification_id": 0
}Returns global status counts for GitHub checks and Jules agents.
| fast | integer Enum: 0 1 If 1, skip external API calls and return cached data. |
{- "status": "string",
- "quota_usage": 0,
- "quota_limit": 0,
- "total_tasks": 0,
- "open_issues": 0,
- "completed_tasks": 0,
- "jules_analyzing": 0,
- "jules_executing": 0,
- "jules_failed": 0,
- "github_running": 0,
- "github_passed": 0,
- "github_failed": 0,
- "telegram_connected": true
}Returns a list of all users with project counts. Requires admin privileges.
[- {
- "id": 1,
- "google_id": "123456789",
- "github_id": "987654321",
- "name": "John Doe",
- "email": "john@example.com",
- "role": "user",
- "created_at": "2023-10-27T10:00:00Z",
- "project_count": 5
}
]Returns database connection status, missing patches, table validation, and basic data health. Requires admin privileges.
{- "connection_status": {
- "status": "string",
- "driver": "string",
- "version": "string",
- "message": "string"
}, - "missing_patches": [
- "string"
], - "table_status": [
- {
- "table": "string",
- "exists": true,
- "rows": 0,
- "error": "string"
}
], - "basic_data_status": [
- {
- "name": "string",
- "status": "string",
- "message": "string"
}
]
}Applies pending database patches. Requires admin privileges.
| patch | string Default: "all" Patch name to apply or 'all' to apply all pending. |
{- "patch": "all"
}{- "status": "string",
- "message": "string",
- "logs": [
- "string"
]
}