iTasks Logo iTasks
🇷🇺RU
Documentation topic

AI API Access

How a workspace owner connects AI assistants to iTasks with a connection link, MCP URL, Bearer protection, and ready Codex CLI / Claude Code prompts.

AI API connects an external AI assistant to one iTasks workspace. The assistant can access only the selected workspace data: projects, members, tasks, comments, time logs, and HelpDesk workflows.

Important: only the workspace owner can configure the connection link. We strongly recommend enabling additional Bearer protection. Leave link-only access enabled only when the AI system cannot send the Authorization header.

iTasks AI API setup: workspace settings entry, connection link, access status, and extra Bearer protection

1. Requirements Before Connecting

  • Only a user with the OWNER role can configure access.
  • AI API requires an active PRO subscription on this workspace.
  • If PRO expires, discovery, MCP, OpenAPI, and REST stop working until the subscription is restored. Workspace data is not deleted automatically; plan behavior is covered in Subscription, Plans, and Limits.

2. How to Enable AI API

  1. Open Administration → Workspace settings.
  2. In the AI access section, select AI API.
  3. Create an access token if it has not been created yet.
  4. Enable AI access for the workspace.
  5. Copy the connection link and send it to the AI assistant.

The link already contains the workspace token, so the AI client does not need to choose or send a workspaceId. All requests are automatically scoped to one workspace.

3. Extra Bearer Protection

The URL token inside the link grants access to the workspace AI API by itself. For real integrations, create a Bearer token and enable extra protection: the client must then send Authorization: Bearer <token> together with the connection link.

The full Bearer token is shown only once after creation or rotation. If the client loses it, the owner must rotate the token in this section. Link-only access should be left enabled only for AI systems that technically cannot send an authorization header.

4. Available Connection Options

The interface shows several URLs for different client types:

  • Connection link — the recommended discovery address for most assistants.
  • MCP URL — Model Context Protocol access.
  • OpenAPI schema — an OpenAPI 3.1 description of the REST API for clients that can import a schema.
  • REST base URL — the base JSON REST API URL for manual setup.

5. Working Scenarios: Codex and Claude Code

For a quick discovery check, send the assistant the connection link. For manual MCP client setup, use the MCP URL. If extra Bearer protection is enabled, the MCP URL must be used together with the Bearer token, which iTasks shows only once after creation or rotation.

Codex CLI

Use the MCP URL from iTasks for manual Codex CLI setup. Codex stores MCP servers in its config and also supports adding a remote HTTP server from the CLI. If Bearer protection is enabled in iTasks, keep the Bearer token in an environment variable and point Codex to that variable.

Codex command with Bearer protection
# If extra Bearer protection is enabled, first set ITASKS_AI_BEARER_TOKEN in your shell.
codex mcp add itasks --url "<MCP_URL_FROM_ITASKS>" --bearer-token-env-var ITASKS_AI_BEARER_TOKEN
codex mcp list
Codex command when Bearer protection is off
codex mcp add itasks --url "<MCP_URL_FROM_ITASKS>"
codex mcp list

After starting Codex in your project, paste one of these prompts. The first prompt is a safe discovery check; the second one creates real tasks.

English discovery prompt
Connect to iTasks with this link:
<CONNECTION_LINK_FROM_ITASKS>

Do not change anything yet. Read the discovery/MCP capabilities, check projects, members, and task statuses. Briefly explain what you can do in this workspace and which actions need my explicit confirmation.
English task creation prompt
Use the iTasks MCP server `itasks`. In the "<PROJECT_NAME>" project, prepare and launch a landing page about "<TOPIC>".

First run safe read operations: projects, members, and task statuses. Then create a task set with clear titles, Taskbot rich text HTML descriptions, priorities, due dates, and assignees selected only from the discovered members. Do not delete or close existing tasks. At the end, return the created task list, assignees, due dates, and assumptions.

Reference: Codex CLI exposes codex mcp add, codex mcp list, and remote MCP setup through the official openai/codex repository.

Claude Code

Use the MCP URL from iTasks and add it as an HTTP MCP server. If Bearer protection is enabled, pass the Authorization header. Then run claude mcp list or open /mcp inside Claude Code to check the server status.

Claude Code command with Bearer protection
claude mcp add --transport http --header "Authorization: Bearer <ITASKS_BEARER_TOKEN>" itasks "<MCP_URL_FROM_ITASKS>"
claude mcp list
Claude Code command when Bearer protection is off
claude mcp add --transport http itasks "<MCP_URL_FROM_ITASKS>"
claude mcp list

If you only want the assistant to discover the integration first, paste the connection link with the discovery prompt. Use the task prompt only when you are ready for real task creation.

English discovery prompt
Connect to iTasks with this link:
<CONNECTION_LINK_FROM_ITASKS>

Do not change anything yet. Read the discovery/MCP capabilities, check projects, members, and task statuses. Briefly explain what you can do in this workspace and which actions need my explicit confirmation.
English task creation prompt
Use the iTasks MCP server `itasks`. In the "<PROJECT_NAME>" project, prepare and launch a landing page about "<TOPIC>".

First run safe read operations: projects, members, and task statuses. Then create a task set with clear titles, Taskbot rich text HTML descriptions, priorities, due dates, and assignees selected only from the discovered members. Do not delete or close existing tasks. At the end, return the created task list, assignees, due dates, and assumptions.

Reference: Claude Code documents HTTP MCP setup, optional headers, claude mcp list, and the in-session /mcp status panel in the official Claude Code MCP guide.

6. What the Assistant Can Work With

The current implementation exposes workspace workflows to AI tools: reading projects, members, tasks, and statuses; task search; creating, updating, and deleting tasks; changing status, workflow, and assignee; working with subtasks, comments, and time logs; viewing HelpDesk channels, conversations, and messages; adding external replies, internal notes, and task links for conversations.

In the current implementation, external AI requests act on behalf of the workspace owner. Treat the connection link and Bearer token as administrative access, not as a normal public link.

7. Technical Notes for Client Setup

  • The main REST exchange format is JSON.
  • Formatted text fields for tasks, comments, and HelpDesk messages are sent as HTML.
  • AI API has workspace-scoped rate limits. When the limit is exceeded, the API returns 429, so clients should avoid tight polling.
  • The connection link, MCP, OpenAPI, and REST belong to one workspace. Another workspace requires its own owner-configured access.

General workspace controls are covered in Workspace Settings. Owner and admin roles are covered in Members and Roles. If AI needs to work with HelpDesk, configure bots and support channels first.

Related topics

Want to try this scenario in the app?

Open iTasks in Telegram now, and come back here when you need a full step-by-step guide.

Open iTasks