Back to Docs

Developer docs

API reference

Read your account, workspaces, projects and tasks with API v1. The API supports GET requests only. It cannot create, update or delete records.

Quickstart

Set KONSUL_BASE_URL to the HTTPS origin of your enabled environment. Provide a valid signed-in user access token for that environment as KONSUL_ACCESS_TOKEN. Keep the token out of source control and logs. Refresh an expired token using your approved sign-in flow.

Authentication uses Authorization: Bearer <access-token>. Cookie authentication, API keys, personal access tokens, OAuth client grants and cross-origin browser requests are not supported. Use a CLI or server-side integration.

curl -fsS "$KONSUL_BASE_URL/api/v1/me" \
  -H "Authorization: Bearer $KONSUL_ACCESS_TOKEN"

curl -fsS "$KONSUL_BASE_URL/api/v1/workspaces?limit=25" \
  -H "Authorization: Bearer $KONSUL_ACCESS_TOKEN"

Set WORKSPACE_ID to an ID from your workspace list. Use an ID from the project list as PROJECT_ID to read its tasks:

curl -fsS "$KONSUL_BASE_URL/api/v1/workspaces/$WORKSPACE_ID/projects" \
  -H "Authorization: Bearer $KONSUL_ACCESS_TOKEN"

# Set PROJECT_ID to a project id returned above.
curl -fsS "$KONSUL_BASE_URL/api/v1/workspaces/$WORKSPACE_ID/projects/$PROJECT_ID/tasks" \
  -H "Authorization: Bearer $KONSUL_ACCESS_TOKEN"

Endpoints

Add the /api/v1 prefix to the paths below. All path IDs are UUIDs. Workspace owner, admin and member roles can read projects and tasks within that workspace; a client portal login alone does not grant workspace membership. The verified token determines the caller. There are no separate OAuth scopes in v1.

GET/me
Get the signed-in user’s ID, email and name.
GET/workspaces
List your workspaces with your role in each.
GET/workspaces/{workspaceId}/projects
List projects in one workspace.
GET/workspaces/{workspaceId}/projects/{projectId}
Get one project in that workspace.
GET/workspaces/{workspaceId}/projects/{projectId}/tasks
List tasks in one project.
GET/workspaces/{workspaceId}/projects/{projectId}/tasks/{taskId}
Get one task in that project.

Projects include the name, client, health, due label and timestamps. Tasks include the title, status, priority, due label and timestamps. Task descriptions, assignees, notes and comments are outside this API.

Responses and pagination

A successful request returns JSON with status 200 and Cache-Control: no-store. A single resource uses { "data": { … } }. A list returns an array and page metadata, for example:

{
  "data": [
    {
      "id": "22222222-2222-4222-8222-222222222222",
      "name": "Example Firm",
      "slug": "example-firm",
      "role": "member"
    }
  ],
  "page": {
    "limit": 25,
    "nextCursor": null
  }
}

Only list endpoints accept limit (1–100, default 25) and cursor. If page.nextCursor is a string, send it as the cursor for the next request to the same list. Stop when it is null. Treat cursors as opaque; do not edit them. An underfilled page can still have a next cursor.

curl -fsSG "$KONSUL_BASE_URL/api/v1/workspaces" \
  -H "Authorization: Bearer $KONSUL_ACCESS_TOKEN" \
  --data-urlencode "limit=25" \
  --data-urlencode "cursor=$NEXT_CURSOR"

Errors

{
  "error": {
    "code": "invalid_request",
    "message": "The request is not valid.",
    "field": "limit"
  }
}

Handle the status and error.code. An invalid request may also name an input in error.field.

400invalid_request
Check the path IDs or supported query parameters.
401unauthenticated
Provide a valid, unexpired user access token.
404not_found
API is off or this route does not exist.
404workspace_not_found, project_not_found, task_not_found
The resource is missing or outside the caller’s permitted workspace or project.
405method_not_allowed
Use GET.
500internal_error
The server could not complete the request.
503service_unavailable
The service is temporarily unavailable.

MCP

Konsul has an internal, in-process MCP adapter for the same six read operations. It is disabled by default and is not a public or remotely connectable MCP server. The HTTP examples on this page are separate from MCP.