This reference is generated from the OpenAPI source at content/docs/api-reference/openapi.yaml. It covers public and gated /api/* routes implemented by the Next.js route handlers. Routes under /api/internal/* are intentionally excluded.

Each operation includes authentication requirements, parameters, request and response schemas, example payloads, cURL, JavaScript, and Python samples, plus an in-browser request tester. Use the tester against your local origin or set the Base URL to https://app.kommander.ai.

Kommander.ai API Reference

Reference generated from Next.js route handlers under app/api. Response schemas intentionally describe public envelopes and common fields, not database schemas.

v1.0.0
Groups
15
Paths
112
Operations
171

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

widgetIdentity

Signed widget identity payload. Pair with identityPayload and identityTimestamp, or use legacy userHash where still accepted.

Errors

Most handlers return JSON errors shaped as { error: string, details?: unknown }. Message endpoints may also return { status: "error", error: string }. Streaming endpoints emit JSON error events in the event stream where possible.

400 Bad request or validation failure401 Authentication required403 Permission denied404 Resource not found409 Concurrent update conflict429 Rate limit exceeded500 Server or upstream provider error

Rate Limits

Rate limits are enforced on selected authenticated organization and admin endpoints. Clients should treat 429 as retryable after backoff and should honor Retry-After when present.

  • Use exponential backoff for 429 and transient 5xx responses.
  • Do not retry non-idempotent POST requests unless the caller provides an idempotency key or the endpoint is explicitly idempotent.
  • Streaming clients should reconnect with the last known conversation or cursor state.

Auth

Authentication endpoints.

post/api/auth/auto-loginCreate or run Auth Auto Login

Create or run Auth Auto Login. This authentication endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/auth/auto-login \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/auth/auto-login', {
  method: 'POST',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/auth/auto-login',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/auth/auto-login

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/auth/{path}Get Auth Pathnextauth

NextAuth route handler for provider sign-in, callback, session, CSRF, and sign-out actions.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
pathpathstringyespath route parameter.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/auth/{path} \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/auth/{path}', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/auth/{path}',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/auth/{path}

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
post/api/auth/{path}Create or run Auth Pathnextauth

NextAuth route handler for provider sign-in, callback, session, CSRF, and sign-out actions.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
pathpathstringyespath route parameter.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/auth/{path} \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/auth/{path}', {
  method: 'POST',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/auth/{path}',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/auth/{path}

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
post/api/get-ws-tokenCreate or run Get WebSocket Token

Create or run Get WebSocket Token. This authentication endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/get-ws-token \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/get-ws-token', {
  method: 'POST',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/get-ws-token',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/get-ws-token

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
options/api/get-ws-tokenCORS preflight for get ws token

CORS preflight for /api/get-ws-token. Used by browsers before cross-origin requests.

Authentication

No authentication requirement is declared for this operation.

Code examples

cURL

curl -X OPTIONS https://app.kommander.ai/api/get-ws-token

JavaScript

const response = await fetch('https://app.kommander.ai/api/get-ws-token', {
  method: 'OPTIONS',
  headers: {},
});

const data = await response.json();

Python

import requests

response = requests.options(
    'https://app.kommander.ai/api/get-ws-token',
    headers={}
)

data = response.json()

Interactive testing

OPTIONS /api/get-ws-token

Responses

204

Preflight accepted. The response includes Access-Control-Allow-* headers where the route supports browser cross-origin calls.

405

Preflight is not allowed for this deployment or route configuration.

Conversations

Conversations endpoints.

get/api/conversationsGet Conversations

Get Conversations. This conversations endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
userIdquerystringnoOwner, bot, or context user identifier when the handler accepts visitor-scoped requests.
sitequerystringnoConversation channel or site identifier.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/conversations \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/conversations', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/conversations',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/conversations

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
post/api/conversationsCreate or run Conversations

Create or run Conversations. This conversations endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/conversations \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/conversations', {
  method: 'POST',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/conversations',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/conversations

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/conversations/latestGet Conversations Latest

Get Conversations Latest. This conversations endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
userIdquerystringnoOwner, bot, or context user identifier when the handler accepts visitor-scoped requests.
sitequerystringnoConversation channel or site identifier.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/conversations/latest \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/conversations/latest', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/conversations/latest',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/conversations/latest

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/conversations/moreGet Conversations More

Get Conversations More. This conversations endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
userIdquerystringnoOwner, bot, or context user identifier when the handler accepts visitor-scoped requests.
sitequerystringnoConversation channel or site identifier.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/conversations/more \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/conversations/more', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/conversations/more',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/conversations/more

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/conversations/streamGet Conversations Stream

Streaming or polling endpoint. Clients should handle incremental responses, reconnects, and standard JSON error events.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
userIdquerystringnoOwner, bot, or context user identifier when the handler accepts visitor-scoped requests.
sitequerystringnoConversation channel or site identifier.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/conversations/stream \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/conversations/stream', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/conversations/stream',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/conversations/stream

Responses

200text/event-streamapplication/json

Successful response from the route handler.

text/event-stream schema

{
  "type": "string",
  "description": "Server-sent events stream."
}

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

"string"
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/conversations/{id}Get Conversations ID

Get Conversations ID. This conversations endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
idpathstringyesid route parameter.
userIdquerystringnoOwner, bot, or context user identifier when the handler accepts visitor-scoped requests.
sitequerystringnoConversation channel or site identifier.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/conversations/123 \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/conversations/123', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/conversations/123',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/conversations/123

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
post/api/conversations/{id}Create or run Conversations ID

Create or run Conversations ID. This conversations endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
idpathstringyesid route parameter.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/conversations/123 \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/conversations/123', {
  method: 'POST',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/conversations/123',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/conversations/123

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
delete/api/conversations/{id}Delete Conversations ID

Delete Conversations ID. This conversations endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
idpathstringyesid route parameter.

Code examples

cURL

curl -X DELETE https://app.kommander.ai/api/conversations/123 \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/conversations/123', {
  method: 'DELETE',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.delete(
    'https://app.kommander.ai/api/conversations/123',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

DELETE /api/conversations/123

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
post/api/conversations/{id}/agent-messageCreate or run Conversations ID Agent Message

Create or run Conversations ID Agent Message. This conversations endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
idpathstringyesid route parameter.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/conversations/123/agent-message \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/conversations/123/agent-message', {
  method: 'POST',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/conversations/123/agent-message',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/conversations/123/agent-message

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/conversations/{id}/tool-debugGet Conversations ID Tool Debug

Get Conversations ID Tool Debug. This conversations endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
idpathstringyesid route parameter.
userIdquerystringnoOwner, bot, or context user identifier when the handler accepts visitor-scoped requests.
sitequerystringnoConversation channel or site identifier.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/conversations/123/tool-debug \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/conversations/123/tool-debug', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/conversations/123/tool-debug',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/conversations/123/tool-debug

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/conversations/{id}/updatesGet Conversations ID Updates

Streaming or polling endpoint. Clients should handle incremental responses, reconnects, and standard JSON error events.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
idpathstringyesid route parameter.
userIdquerystringnoOwner, bot, or context user identifier when the handler accepts visitor-scoped requests.
sitequerystringnoConversation channel or site identifier.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/conversations/123/updates \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/conversations/123/updates', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/conversations/123/updates',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/conversations/123/updates

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/user-conversations/{userId}Get User Conversations UserId

Get User Conversations UserId. This conversations endpoint is documented from the matching route handler under app/api.

Authentication

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

cookieAuth

Authenticated dashboard session issued by NextAuth.

widgetIdentity

Signed widget identity payload. Pair with identityPayload and identityTimestamp, or use legacy userHash where still accepted.

Parameters

NameInTypeRequiredDescription
userIdpathstringyesuserId route parameter.
userIdquerystringnoOwner, bot, or context user identifier when the handler accepts visitor-scoped requests.
sitequerystringnoConversation channel or site identifier.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/user-conversations/123 \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/user-conversations/123', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/user-conversations/123',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/user-conversations/123

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
options/api/user-conversations/{userId}CORS preflight for user conversations userId

CORS preflight for /api/user-conversations/{userId}. Used by browsers before cross-origin requests.

Authentication

No authentication requirement is declared for this operation.

Code examples

cURL

curl -X OPTIONS https://app.kommander.ai/api/user-conversations/123

JavaScript

const response = await fetch('https://app.kommander.ai/api/user-conversations/123', {
  method: 'OPTIONS',
  headers: {},
});

const data = await response.json();

Python

import requests

response = requests.options(
    'https://app.kommander.ai/api/user-conversations/123',
    headers={}
)

data = response.json()

Interactive testing

OPTIONS /api/user-conversations/123

Responses

204

Preflight accepted. The response includes Access-Control-Allow-* headers where the route supports browser cross-origin calls.

405

Preflight is not allowed for this deployment or route configuration.

RAG

RAG endpoints.

post/api/kommander-queryCreate or run Kommander Query

Create or run Kommander Query. This rag endpoint is documented from the matching route handler under app/api.

Authentication

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

cookieAuth

Authenticated dashboard session issued by NextAuth.

widgetIdentity

Signed widget identity payload. Pair with identityPayload and identityTimestamp, or use legacy userHash where still accepted.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/kommander-query \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/kommander-query', {
  method: 'POST',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/kommander-query',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/kommander-query

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
options/api/kommander-queryCORS preflight for kommander query

CORS preflight for /api/kommander-query. Used by browsers before cross-origin requests.

Authentication

No authentication requirement is declared for this operation.

Code examples

cURL

curl -X OPTIONS https://app.kommander.ai/api/kommander-query

JavaScript

const response = await fetch('https://app.kommander.ai/api/kommander-query', {
  method: 'OPTIONS',
  headers: {},
});

const data = await response.json();

Python

import requests

response = requests.options(
    'https://app.kommander.ai/api/kommander-query',
    headers={}
)

data = response.json()

Interactive testing

OPTIONS /api/kommander-query

Responses

204

Preflight accepted. The response includes Access-Control-Allow-* headers where the route supports browser cross-origin calls.

405

Preflight is not allowed for this deployment or route configuration.

post/api/kommander-query-streamCreate or run Kommander Query Stream

Streaming or polling endpoint. Clients should handle incremental responses, reconnects, and standard JSON error events.

Authentication

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

cookieAuth

Authenticated dashboard session issued by NextAuth.

widgetIdentity

Signed widget identity payload. Pair with identityPayload and identityTimestamp, or use legacy userHash where still accepted.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/kommander-query-stream \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/kommander-query-stream', {
  method: 'POST',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/kommander-query-stream',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/kommander-query-stream

Responses

200text/event-streamapplication/json

200 or 201 response from the route handler.

text/event-stream schema

{
  "type": "string",
  "description": "Server-sent events stream."
}

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

"string"
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
options/api/kommander-query-streamCORS preflight for kommander query stream

CORS preflight for /api/kommander-query-stream. Used by browsers before cross-origin requests.

Authentication

No authentication requirement is declared for this operation.

Code examples

cURL

curl -X OPTIONS https://app.kommander.ai/api/kommander-query-stream

JavaScript

const response = await fetch('https://app.kommander.ai/api/kommander-query-stream', {
  method: 'OPTIONS',
  headers: {},
});

const data = await response.json();

Python

import requests

response = requests.options(
    'https://app.kommander.ai/api/kommander-query-stream',
    headers={}
)

data = response.json()

Interactive testing

OPTIONS /api/kommander-query-stream

Responses

204

Preflight accepted. The response includes Access-Control-Allow-* headers where the route supports browser cross-origin calls.

405

Preflight is not allowed for this deployment or route configuration.

post/api/kommander-rag-callbackCreate or run Kommander RAG Callback

Create or run Kommander RAG Callback. This rag endpoint is documented from the matching route handler under app/api.

Authentication

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

cookieAuth

Authenticated dashboard session issued by NextAuth.

widgetIdentity

Signed widget identity payload. Pair with identityPayload and identityTimestamp, or use legacy userHash where still accepted.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/kommander-rag-callback \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/kommander-rag-callback', {
  method: 'POST',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/kommander-rag-callback',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/kommander-rag-callback

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
options/api/kommander-rag-callbackCORS preflight for kommander rag callback

CORS preflight for /api/kommander-rag-callback. Used by browsers before cross-origin requests.

Authentication

No authentication requirement is declared for this operation.

Code examples

cURL

curl -X OPTIONS https://app.kommander.ai/api/kommander-rag-callback

JavaScript

const response = await fetch('https://app.kommander.ai/api/kommander-rag-callback', {
  method: 'OPTIONS',
  headers: {},
});

const data = await response.json();

Python

import requests

response = requests.options(
    'https://app.kommander.ai/api/kommander-rag-callback',
    headers={}
)

data = response.json()

Interactive testing

OPTIONS /api/kommander-rag-callback

Responses

204

Preflight accepted. The response includes Access-Control-Allow-* headers where the route supports browser cross-origin calls.

405

Preflight is not allowed for this deployment or route configuration.

post/api/kommander-rag-queryCreate or run Kommander RAG Query

Streaming or polling endpoint. Clients should handle incremental responses, reconnects, and standard JSON error events.

Authentication

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

cookieAuth

Authenticated dashboard session issued by NextAuth.

widgetIdentity

Signed widget identity payload. Pair with identityPayload and identityTimestamp, or use legacy userHash where still accepted.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/kommander-rag-query \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/kommander-rag-query', {
  method: 'POST',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/kommander-rag-query',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/kommander-rag-query

Responses

200text/event-streamapplication/json

200 or 201 response from the route handler.

text/event-stream schema

{
  "type": "string",
  "description": "Server-sent events stream."
}

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

"string"
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
options/api/kommander-rag-queryCORS preflight for kommander rag query

CORS preflight for /api/kommander-rag-query. Used by browsers before cross-origin requests.

Authentication

No authentication requirement is declared for this operation.

Code examples

cURL

curl -X OPTIONS https://app.kommander.ai/api/kommander-rag-query

JavaScript

const response = await fetch('https://app.kommander.ai/api/kommander-rag-query', {
  method: 'OPTIONS',
  headers: {},
});

const data = await response.json();

Python

import requests

response = requests.options(
    'https://app.kommander.ai/api/kommander-rag-query',
    headers={}
)

data = response.json()

Interactive testing

OPTIONS /api/kommander-rag-query

Responses

204

Preflight accepted. The response includes Access-Control-Allow-* headers where the route supports browser cross-origin calls.

405

Preflight is not allowed for this deployment or route configuration.

post/api/kommander-rag-streamCreate or run Kommander RAG Stream

Streaming or polling endpoint. Clients should handle incremental responses, reconnects, and standard JSON error events.

Authentication

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

cookieAuth

Authenticated dashboard session issued by NextAuth.

widgetIdentity

Signed widget identity payload. Pair with identityPayload and identityTimestamp, or use legacy userHash where still accepted.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/kommander-rag-stream \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/kommander-rag-stream', {
  method: 'POST',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/kommander-rag-stream',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/kommander-rag-stream

Responses

200text/event-streamapplication/json

200 or 201 response from the route handler.

text/event-stream schema

{
  "type": "string",
  "description": "Server-sent events stream."
}

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

"string"
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
options/api/kommander-rag-streamCORS preflight for kommander rag stream

CORS preflight for /api/kommander-rag-stream. Used by browsers before cross-origin requests.

Authentication

No authentication requirement is declared for this operation.

Code examples

cURL

curl -X OPTIONS https://app.kommander.ai/api/kommander-rag-stream

JavaScript

const response = await fetch('https://app.kommander.ai/api/kommander-rag-stream', {
  method: 'OPTIONS',
  headers: {},
});

const data = await response.json();

Python

import requests

response = requests.options(
    'https://app.kommander.ai/api/kommander-rag-stream',
    headers={}
)

data = response.json()

Interactive testing

OPTIONS /api/kommander-rag-stream

Responses

204

Preflight accepted. The response includes Access-Control-Allow-* headers where the route supports browser cross-origin calls.

405

Preflight is not allowed for this deployment or route configuration.

post/api/kommander-rag-triggerCreate or run Kommander RAG Trigger

Create or run Kommander RAG Trigger. This rag endpoint is documented from the matching route handler under app/api.

Authentication

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

cookieAuth

Authenticated dashboard session issued by NextAuth.

widgetIdentity

Signed widget identity payload. Pair with identityPayload and identityTimestamp, or use legacy userHash where still accepted.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/kommander-rag-trigger \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/kommander-rag-trigger', {
  method: 'POST',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/kommander-rag-trigger',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/kommander-rag-trigger

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
options/api/kommander-rag-triggerCORS preflight for kommander rag trigger

CORS preflight for /api/kommander-rag-trigger. Used by browsers before cross-origin requests.

Authentication

No authentication requirement is declared for this operation.

Code examples

cURL

curl -X OPTIONS https://app.kommander.ai/api/kommander-rag-trigger

JavaScript

const response = await fetch('https://app.kommander.ai/api/kommander-rag-trigger', {
  method: 'OPTIONS',
  headers: {},
});

const data = await response.json();

Python

import requests

response = requests.options(
    'https://app.kommander.ai/api/kommander-rag-trigger',
    headers={}
)

data = response.json()

Interactive testing

OPTIONS /api/kommander-rag-trigger

Responses

204

Preflight accepted. The response includes Access-Control-Allow-* headers where the route supports browser cross-origin calls.

405

Preflight is not allowed for this deployment or route configuration.

post/api/kommander-rag-trigger-whatsappCreate or run Kommander RAG Trigger Whatsapp

Create or run Kommander RAG Trigger Whatsapp. This rag endpoint is documented from the matching route handler under app/api.

Authentication

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

cookieAuth

Authenticated dashboard session issued by NextAuth.

widgetIdentity

Signed widget identity payload. Pair with identityPayload and identityTimestamp, or use legacy userHash where still accepted.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/kommander-rag-trigger-whatsapp \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/kommander-rag-trigger-whatsapp', {
  method: 'POST',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/kommander-rag-trigger-whatsapp',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/kommander-rag-trigger-whatsapp

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
options/api/kommander-rag-trigger-whatsappCORS preflight for kommander rag trigger whatsapp

CORS preflight for /api/kommander-rag-trigger-whatsapp. Used by browsers before cross-origin requests.

Authentication

No authentication requirement is declared for this operation.

Code examples

cURL

curl -X OPTIONS https://app.kommander.ai/api/kommander-rag-trigger-whatsapp

JavaScript

const response = await fetch('https://app.kommander.ai/api/kommander-rag-trigger-whatsapp', {
  method: 'OPTIONS',
  headers: {},
});

const data = await response.json();

Python

import requests

response = requests.options(
    'https://app.kommander.ai/api/kommander-rag-trigger-whatsapp',
    headers={}
)

data = response.json()

Interactive testing

OPTIONS /api/kommander-rag-trigger-whatsapp

Responses

204

Preflight accepted. The response includes Access-Control-Allow-* headers where the route supports browser cross-origin calls.

405

Preflight is not allowed for this deployment or route configuration.

Messages

Messages endpoints.

post/api/append-messagesCreate or run Append Messages

Create or run Append Messages. This messages endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/append-messages \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/append-messages', {
  method: 'POST',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/append-messages',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/append-messages

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
options/api/append-messagesCORS preflight for append messages

CORS preflight for /api/append-messages. Used by browsers before cross-origin requests.

Authentication

No authentication requirement is declared for this operation.

Code examples

cURL

curl -X OPTIONS https://app.kommander.ai/api/append-messages

JavaScript

const response = await fetch('https://app.kommander.ai/api/append-messages', {
  method: 'OPTIONS',
  headers: {},
});

const data = await response.json();

Python

import requests

response = requests.options(
    'https://app.kommander.ai/api/append-messages',
    headers={}
)

data = response.json()

Interactive testing

OPTIONS /api/append-messages

Responses

204

Preflight accepted. The response includes Access-Control-Allow-* headers where the route supports browser cross-origin calls.

405

Preflight is not allowed for this deployment or route configuration.

post/api/append-messages-agent-modeCreate or run Append Messages Agent Mode

Create or run Append Messages Agent Mode. This messages endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/append-messages-agent-mode \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/append-messages-agent-mode', {
  method: 'POST',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/append-messages-agent-mode',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/append-messages-agent-mode

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
options/api/append-messages-agent-modeCORS preflight for append messages agent mode

CORS preflight for /api/append-messages-agent-mode. Used by browsers before cross-origin requests.

Authentication

No authentication requirement is declared for this operation.

Code examples

cURL

curl -X OPTIONS https://app.kommander.ai/api/append-messages-agent-mode

JavaScript

const response = await fetch('https://app.kommander.ai/api/append-messages-agent-mode', {
  method: 'OPTIONS',
  headers: {},
});

const data = await response.json();

Python

import requests

response = requests.options(
    'https://app.kommander.ai/api/append-messages-agent-mode',
    headers={}
)

data = response.json()

Interactive testing

OPTIONS /api/append-messages-agent-mode

Responses

204

Preflight accepted. The response includes Access-Control-Allow-* headers where the route supports browser cross-origin calls.

405

Preflight is not allowed for this deployment or route configuration.

post/api/save-chatbot-responseCreate or run Save Chatbot Response

Create or run Save Chatbot Response. This messages endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/save-chatbot-response \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/save-chatbot-response', {
  method: 'POST',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/save-chatbot-response',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/save-chatbot-response

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}

Training

Training endpoints.

post/api/mark-faq-editedCreate or run Mark Faq Edited

Create or run Mark Faq Edited. This training endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/mark-faq-edited \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/mark-faq-edited', {
  method: 'POST',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/mark-faq-edited',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/mark-faq-edited

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
options/api/mark-faq-editedCORS preflight for mark faq edited

CORS preflight for /api/mark-faq-edited. Used by browsers before cross-origin requests.

Authentication

No authentication requirement is declared for this operation.

Code examples

cURL

curl -X OPTIONS https://app.kommander.ai/api/mark-faq-edited

JavaScript

const response = await fetch('https://app.kommander.ai/api/mark-faq-edited', {
  method: 'OPTIONS',
  headers: {},
});

const data = await response.json();

Python

import requests

response = requests.options(
    'https://app.kommander.ai/api/mark-faq-edited',
    headers={}
)

data = response.json()

Interactive testing

OPTIONS /api/mark-faq-edited

Responses

204

Preflight accepted. The response includes Access-Control-Allow-* headers where the route supports browser cross-origin calls.

405

Preflight is not allowed for this deployment or route configuration.

post/api/process-fileCreate or run Process File

Create or run Process File. This training endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Request body (required)

multipart/form-data

multipart/form-data schema

{
  "type": "object",
  "additionalProperties": true
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/process-file \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: multipart/form-data" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/process-file', {
  method: 'POST',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "multipart/form-data"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/process-file',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "multipart/form-data"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/process-file

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/settings/{userId}Get Settings UserId

Get Settings UserId. This training endpoint is documented from the matching route handler under app/api.

Authentication

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

cookieAuth

Authenticated dashboard session issued by NextAuth.

widgetIdentity

Signed widget identity payload. Pair with identityPayload and identityTimestamp, or use legacy userHash where still accepted.

Parameters

NameInTypeRequiredDescription
userIdpathstringyesuserId route parameter.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/settings/123 \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/settings/123', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/settings/123',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/settings/123

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
put/api/settings/{userId}Replace Settings UserId

Replace Settings UserId. This training endpoint is documented from the matching route handler under app/api.

Authentication

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

cookieAuth

Authenticated dashboard session issued by NextAuth.

widgetIdentity

Signed widget identity payload. Pair with identityPayload and identityTimestamp, or use legacy userHash where still accepted.

Parameters

NameInTypeRequiredDescription
userIdpathstringyesuserId route parameter.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X PUT https://app.kommander.ai/api/settings/123 \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/settings/123', {
  method: 'PUT',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.put(
    'https://app.kommander.ai/api/settings/123',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

PUT /api/settings/123

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
options/api/settings/{userId}CORS preflight for settings userId

CORS preflight for /api/settings/{userId}. Used by browsers before cross-origin requests.

Authentication

No authentication requirement is declared for this operation.

Code examples

cURL

curl -X OPTIONS https://app.kommander.ai/api/settings/123

JavaScript

const response = await fetch('https://app.kommander.ai/api/settings/123', {
  method: 'OPTIONS',
  headers: {},
});

const data = await response.json();

Python

import requests

response = requests.options(
    'https://app.kommander.ai/api/settings/123',
    headers={}
)

data = response.json()

Interactive testing

OPTIONS /api/settings/123

Responses

204

Preflight accepted. The response includes Access-Control-Allow-* headers where the route supports browser cross-origin calls.

405

Preflight is not allowed for this deployment or route configuration.

Widget

Widget endpoints.

get/api/widget-conversations/{id}Get Widget Conversations ID

Get Widget Conversations ID. This widget endpoint is documented from the matching route handler under app/api.

Authentication

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

cookieAuth

Authenticated dashboard session issued by NextAuth.

widgetIdentity

Signed widget identity payload. Pair with identityPayload and identityTimestamp, or use legacy userHash where still accepted.

Parameters

NameInTypeRequiredDescription
idpathstringyesid route parameter.
userIdquerystringnoOwner, bot, or context user identifier when the handler accepts visitor-scoped requests.
sitequerystringnoConversation channel or site identifier.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/widget-conversations/123 \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/widget-conversations/123', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/widget-conversations/123',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/widget-conversations/123

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
options/api/widget-conversations/{id}CORS preflight for widget conversations id

CORS preflight for /api/widget-conversations/{id}. Used by browsers before cross-origin requests.

Authentication

No authentication requirement is declared for this operation.

Code examples

cURL

curl -X OPTIONS https://app.kommander.ai/api/widget-conversations/123

JavaScript

const response = await fetch('https://app.kommander.ai/api/widget-conversations/123', {
  method: 'OPTIONS',
  headers: {},
});

const data = await response.json();

Python

import requests

response = requests.options(
    'https://app.kommander.ai/api/widget-conversations/123',
    headers={}
)

data = response.json()

Interactive testing

OPTIONS /api/widget-conversations/123

Responses

204

Preflight accepted. The response includes Access-Control-Allow-* headers where the route supports browser cross-origin calls.

405

Preflight is not allowed for this deployment or route configuration.

get/api/widget-conversations/{id}/updatesGet Widget Conversations ID Updates

Streaming or polling endpoint. Clients should handle incremental responses, reconnects, and standard JSON error events.

Authentication

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

cookieAuth

Authenticated dashboard session issued by NextAuth.

widgetIdentity

Signed widget identity payload. Pair with identityPayload and identityTimestamp, or use legacy userHash where still accepted.

Parameters

NameInTypeRequiredDescription
idpathstringyesid route parameter.
userIdquerystringnoOwner, bot, or context user identifier when the handler accepts visitor-scoped requests.
sitequerystringnoConversation channel or site identifier.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/widget-conversations/123/updates \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/widget-conversations/123/updates', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/widget-conversations/123/updates',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/widget-conversations/123/updates

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
options/api/widget-conversations/{id}/updatesCORS preflight for widget conversations id updates

CORS preflight for /api/widget-conversations/{id}/updates. Used by browsers before cross-origin requests.

Authentication

No authentication requirement is declared for this operation.

Code examples

cURL

curl -X OPTIONS https://app.kommander.ai/api/widget-conversations/123/updates

JavaScript

const response = await fetch('https://app.kommander.ai/api/widget-conversations/123/updates', {
  method: 'OPTIONS',
  headers: {},
});

const data = await response.json();

Python

import requests

response = requests.options(
    'https://app.kommander.ai/api/widget-conversations/123/updates',
    headers={}
)

data = response.json()

Interactive testing

OPTIONS /api/widget-conversations/123/updates

Responses

204

Preflight accepted. The response includes Access-Control-Allow-* headers where the route supports browser cross-origin calls.

405

Preflight is not allowed for this deployment or route configuration.

Integrations

Integrations endpoints.

get/api/integrations/customer-dataGet Integrations Customer Data

Get Integrations Customer Data. This integrations endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
organizationIdquerystringnoOrganization scope when supported.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/integrations/customer-data \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/integrations/customer-data', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/integrations/customer-data',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/integrations/customer-data

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
post/api/integrations/customer-dataCreate or run Integrations Customer Data

Create or run Integrations Customer Data. This integrations endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/integrations/customer-data \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/integrations/customer-data', {
  method: 'POST',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/integrations/customer-data',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/integrations/customer-data

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/integrations/customer-data/{id}Get Integrations Customer Data ID

Get Integrations Customer Data ID. This integrations endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
idpathstringyesid route parameter.
organizationIdquerystringnoOrganization scope when supported.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/integrations/customer-data/123 \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/integrations/customer-data/123', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/integrations/customer-data/123',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/integrations/customer-data/123

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
patch/api/integrations/customer-data/{id}Update Integrations Customer Data ID

Update Integrations Customer Data ID. This integrations endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
idpathstringyesid route parameter.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X PATCH https://app.kommander.ai/api/integrations/customer-data/123 \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/integrations/customer-data/123', {
  method: 'PATCH',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.patch(
    'https://app.kommander.ai/api/integrations/customer-data/123',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

PATCH /api/integrations/customer-data/123

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
delete/api/integrations/customer-data/{id}Delete Integrations Customer Data ID

Delete Integrations Customer Data ID. This integrations endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
idpathstringyesid route parameter.

Code examples

cURL

curl -X DELETE https://app.kommander.ai/api/integrations/customer-data/123 \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/integrations/customer-data/123', {
  method: 'DELETE',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.delete(
    'https://app.kommander.ai/api/integrations/customer-data/123',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

DELETE /api/integrations/customer-data/123

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
post/api/integrations/customer-data/{id}/openapiCreate or run Integrations Customer Data ID Openapi

Create or run Integrations Customer Data ID Openapi. This integrations endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
idpathstringyesid route parameter.

Request body (required)

multipart/form-dataapplication/jsonapplication/yaml

multipart/form-data schema

{
  "type": "object",
  "properties": {
    "file": {
      "type": "string",
      "format": "binary"
    },
    "spec": {
      "type": "string"
    },
    "openapi": {
      "type": "string"
    }
  }
}

application/json schema

{
  "type": "object",
  "additionalProperties": true
}

application/yaml schema

{
  "type": "string"
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/integrations/customer-data/123/openapi \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: multipart/form-data" \
  --data '{
  "file": "string",
  "spec": "string",
  "openapi": "string"
}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/integrations/customer-data/123/openapi', {
  method: 'POST',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "multipart/form-data"
  },
  body: JSON.stringify({
  "file": "string",
  "spec": "string",
  "openapi": "string"
}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/integrations/customer-data/123/openapi',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "multipart/form-data"
    },
    json={
      "file": "string",
      "spec": "string",
      "openapi": "string"
    }
)

data = response.json()

Interactive testing

POST /api/integrations/customer-data/123/openapi

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
post/api/integrations/customer-data/{id}/testCreate or run Integrations Customer Data ID Test

Create or run Integrations Customer Data ID Test. This integrations endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
idpathstringyesid route parameter.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/integrations/customer-data/123/test \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/integrations/customer-data/123/test', {
  method: 'POST',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/integrations/customer-data/123/test',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/integrations/customer-data/123/test

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
post/api/integrations/engammo/faqsCreate or run Integrations Engammo Faqs

Create or run Integrations Engammo Faqs. This integrations endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/integrations/engammo/faqs \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/integrations/engammo/faqs', {
  method: 'POST',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/integrations/engammo/faqs',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/integrations/engammo/faqs

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/integrations/engammo/healthGet Integrations Engammo Health

Get Integrations Engammo Health. This integrations endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
organizationIdquerystringnoOrganization scope when supported.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/integrations/engammo/health \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/integrations/engammo/health', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/integrations/engammo/health',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/integrations/engammo/health

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/integrations/google-calendar/authorizeGet Integrations Google Calendar Authorize

Get Integrations Google Calendar Authorize. This integrations endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
organizationIdquerystringnoOrganization scope when supported.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/integrations/google-calendar/authorize \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/integrations/google-calendar/authorize', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/integrations/google-calendar/authorize',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/integrations/google-calendar/authorize

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/integrations/google-calendar/callbackGet Integrations Google Calendar Callback

Get Integrations Google Calendar Callback. This integrations endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
organizationIdquerystringnoOrganization scope when supported.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/integrations/google-calendar/callback \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/integrations/google-calendar/callback', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/integrations/google-calendar/callback',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/integrations/google-calendar/callback

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/organizations/{id}/integrations/engammoGet Organizations ID Integrations Engammo

Get Organizations ID Integrations Engammo. This integrations endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
idpathstringyesid route parameter.
organizationIdquerystringnoOrganization scope when supported.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/organizations/123/integrations/engammo \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/organizations/123/integrations/engammo', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/organizations/123/integrations/engammo',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/organizations/123/integrations/engammo

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
post/api/organizations/{id}/integrations/engammoCreate or run Organizations ID Integrations Engammo

Create or run Organizations ID Integrations Engammo. This integrations endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
idpathstringyesid route parameter.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/organizations/123/integrations/engammo \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/organizations/123/integrations/engammo', {
  method: 'POST',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/organizations/123/integrations/engammo',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/organizations/123/integrations/engammo

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
delete/api/organizations/{id}/integrations/engammoDelete Organizations ID Integrations Engammo

Delete Organizations ID Integrations Engammo. This integrations endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
idpathstringyesid route parameter.

Code examples

cURL

curl -X DELETE https://app.kommander.ai/api/organizations/123/integrations/engammo \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/organizations/123/integrations/engammo', {
  method: 'DELETE',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.delete(
    'https://app.kommander.ai/api/organizations/123/integrations/engammo',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

DELETE /api/organizations/123/integrations/engammo

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/organizations/{id}/integrations/engammo/eventsGet Organizations ID Integrations Engammo Events

Get Organizations ID Integrations Engammo Events. This integrations endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
idpathstringyesid route parameter.
organizationIdquerystringnoOrganization scope when supported.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/organizations/123/integrations/engammo/events \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/organizations/123/integrations/engammo/events', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/organizations/123/integrations/engammo/events',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/organizations/123/integrations/engammo/events

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/organizations/{id}/integrations/engammo/faqsGet Organizations ID Integrations Engammo Faqs

Get Organizations ID Integrations Engammo Faqs. This integrations endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
idpathstringyesid route parameter.
organizationIdquerystringnoOrganization scope when supported.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/organizations/123/integrations/engammo/faqs \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/organizations/123/integrations/engammo/faqs', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/organizations/123/integrations/engammo/faqs',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/organizations/123/integrations/engammo/faqs

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
post/api/organizations/{id}/integrations/engammo/rotateCreate or run Organizations ID Integrations Engammo Rotate

Create or run Organizations ID Integrations Engammo Rotate. This integrations endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
idpathstringyesid route parameter.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/organizations/123/integrations/engammo/rotate \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/organizations/123/integrations/engammo/rotate', {
  method: 'POST',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/organizations/123/integrations/engammo/rotate',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/organizations/123/integrations/engammo/rotate

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}

Webhooks

Webhooks endpoints.

post/api/meta/replyCreate or run Meta Reply

Create or run Meta Reply. This webhooks endpoint is documented from the matching route handler under app/api.

Authentication

No authentication requirement is declared for this operation.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/meta/reply \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/meta/reply', {
  method: 'POST',
  headers: {
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/meta/reply',
    headers={
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/meta/reply

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
options/api/meta/replyCORS preflight for meta reply

CORS preflight for /api/meta/reply. Used by browsers before cross-origin requests.

Authentication

No authentication requirement is declared for this operation.

Code examples

cURL

curl -X OPTIONS https://app.kommander.ai/api/meta/reply

JavaScript

const response = await fetch('https://app.kommander.ai/api/meta/reply', {
  method: 'OPTIONS',
  headers: {},
});

const data = await response.json();

Python

import requests

response = requests.options(
    'https://app.kommander.ai/api/meta/reply',
    headers={}
)

data = response.json()

Interactive testing

OPTIONS /api/meta/reply

Responses

204

Preflight accepted. The response includes Access-Control-Allow-* headers where the route supports browser cross-origin calls.

405

Preflight is not allowed for this deployment or route configuration.

get/api/meta/{userId}Get Meta UserId

Get Meta UserId. This webhooks endpoint is documented from the matching route handler under app/api.

Authentication

No authentication requirement is declared for this operation.

Parameters

NameInTypeRequiredDescription
userIdpathstringyesuserId route parameter.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/meta/123

JavaScript

const response = await fetch('https://app.kommander.ai/api/meta/123', {
  method: 'GET',
  headers: {},
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/meta/123',
    headers={}
)

data = response.json()

Interactive testing

GET /api/meta/123

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
post/api/meta/{userId}Create or run Meta UserId

Create or run Meta UserId. This webhooks endpoint is documented from the matching route handler under app/api.

Authentication

No authentication requirement is declared for this operation.

Parameters

NameInTypeRequiredDescription
userIdpathstringyesuserId route parameter.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/meta/123 \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/meta/123', {
  method: 'POST',
  headers: {
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/meta/123',
    headers={
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/meta/123

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
post/api/stripe/webhookCreate or run Stripe Webhook

Receives provider webhook callbacks. Verify provider signatures where configured and keep handlers idempotent.

Authentication

No authentication requirement is declared for this operation.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/stripe/webhook \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/stripe/webhook', {
  method: 'POST',
  headers: {
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/stripe/webhook',
    headers={
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/stripe/webhook

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
post/api/twilio/replyCreate or run Twilio Reply

Create or run Twilio Reply. This webhooks endpoint is documented from the matching route handler under app/api.

Authentication

No authentication requirement is declared for this operation.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/twilio/reply \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/twilio/reply', {
  method: 'POST',
  headers: {
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/twilio/reply',
    headers={
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/twilio/reply

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
options/api/twilio/replyCORS preflight for twilio reply

CORS preflight for /api/twilio/reply. Used by browsers before cross-origin requests.

Authentication

No authentication requirement is declared for this operation.

Code examples

cURL

curl -X OPTIONS https://app.kommander.ai/api/twilio/reply

JavaScript

const response = await fetch('https://app.kommander.ai/api/twilio/reply', {
  method: 'OPTIONS',
  headers: {},
});

const data = await response.json();

Python

import requests

response = requests.options(
    'https://app.kommander.ai/api/twilio/reply',
    headers={}
)

data = response.json()

Interactive testing

OPTIONS /api/twilio/reply

Responses

204

Preflight accepted. The response includes Access-Control-Allow-* headers where the route supports browser cross-origin calls.

405

Preflight is not allowed for this deployment or route configuration.

post/api/twilio/{userId}Create or run Twilio UserId

Create or run Twilio UserId. This webhooks endpoint is documented from the matching route handler under app/api.

Authentication

No authentication requirement is declared for this operation.

Parameters

NameInTypeRequiredDescription
userIdpathstringyesuserId route parameter.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/twilio/123 \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/twilio/123', {
  method: 'POST',
  headers: {
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/twilio/123',
    headers={
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/twilio/123

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/whatsapp/config/{userId}Get Whatsapp Config UserId

Get Whatsapp Config UserId. This webhooks endpoint is documented from the matching route handler under app/api.

Authentication

No authentication requirement is declared for this operation.

Parameters

NameInTypeRequiredDescription
userIdpathstringyesuserId route parameter.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/whatsapp/config/123

JavaScript

const response = await fetch('https://app.kommander.ai/api/whatsapp/config/123', {
  method: 'GET',
  headers: {},
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/whatsapp/config/123',
    headers={}
)

data = response.json()

Interactive testing

GET /api/whatsapp/config/123

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
post/api/whatsapp/config/{userId}Create or run Whatsapp Config UserId

Create or run Whatsapp Config UserId. This webhooks endpoint is documented from the matching route handler under app/api.

Authentication

No authentication requirement is declared for this operation.

Parameters

NameInTypeRequiredDescription
userIdpathstringyesuserId route parameter.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/whatsapp/config/123 \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/whatsapp/config/123', {
  method: 'POST',
  headers: {
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/whatsapp/config/123',
    headers={
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/whatsapp/config/123

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
post/api/whatsapp/startCreate or run Whatsapp Start

Create or run Whatsapp Start. This webhooks endpoint is documented from the matching route handler under app/api.

Authentication

No authentication requirement is declared for this operation.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/whatsapp/start \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/whatsapp/start', {
  method: 'POST',
  headers: {
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/whatsapp/start',
    headers={
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/whatsapp/start

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/whatsapp/statusGet Whatsapp Status

Get Whatsapp Status. This webhooks endpoint is documented from the matching route handler under app/api.

Authentication

No authentication requirement is declared for this operation.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/whatsapp/status

JavaScript

const response = await fetch('https://app.kommander.ai/api/whatsapp/status', {
  method: 'GET',
  headers: {},
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/whatsapp/status',
    headers={}
)

data = response.json()

Interactive testing

GET /api/whatsapp/status

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
post/api/whatsapp/stopCreate or run Whatsapp Stop

Create or run Whatsapp Stop. This webhooks endpoint is documented from the matching route handler under app/api.

Authentication

No authentication requirement is declared for this operation.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/whatsapp/stop \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/whatsapp/stop', {
  method: 'POST',
  headers: {
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/whatsapp/stop',
    headers={
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/whatsapp/stop

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}

Admin

Admin endpoints.

get/api/admin/access-logsinternalGet Admin Access Logs

Get Admin Access Logs. This admin endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/admin/access-logs \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/admin/access-logs', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/admin/access-logs',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/admin/access-logs

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/admin/assistants/overviewinternalGet Admin Assistants Overview

Get Admin Assistants Overview. This admin endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/admin/assistants/overview \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/admin/assistants/overview', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/admin/assistants/overview',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/admin/assistants/overview

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/admin/assistants/{id}internalGet Admin Assistants ID

Get Admin Assistants ID. This admin endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
idpathstringyesid route parameter.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/admin/assistants/123 \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/admin/assistants/123', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/admin/assistants/123',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/admin/assistants/123

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
patch/api/admin/assistants/{id}/planinternalUpdate Admin Assistants ID Plan

Update Admin Assistants ID Plan. This admin endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
idpathstringyesid route parameter.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X PATCH https://app.kommander.ai/api/admin/assistants/123/plan \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/admin/assistants/123/plan', {
  method: 'PATCH',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.patch(
    'https://app.kommander.ai/api/admin/assistants/123/plan',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

PATCH /api/admin/assistants/123/plan

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
post/api/admin/authinternalCreate or run Admin Auth

Create or run Admin Auth. This admin endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/admin/auth \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/admin/auth', {
  method: 'POST',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/admin/auth',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/admin/auth

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/admin/business-advisorinternalGet Admin Business Advisor

Get Admin Business Advisor. This admin endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/admin/business-advisor \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/admin/business-advisor', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/admin/business-advisor',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/admin/business-advisor

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
post/api/admin/business-advisorinternalCreate or run Admin Business Advisor

Create or run Admin Business Advisor. This admin endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/admin/business-advisor \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/admin/business-advisor', {
  method: 'POST',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/admin/business-advisor',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/admin/business-advisor

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/admin/chatbot-settings/{userId}internalGet Admin Chatbot Settings UserId

Get Admin Chatbot Settings UserId. This admin endpoint is documented from the matching route handler under app/api.

Authentication

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

cookieAuth

Authenticated dashboard session issued by NextAuth.

widgetIdentity

Signed widget identity payload. Pair with identityPayload and identityTimestamp, or use legacy userHash where still accepted.

Parameters

NameInTypeRequiredDescription
userIdpathstringyesuserId route parameter.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/admin/chatbot-settings/123 \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/admin/chatbot-settings/123', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/admin/chatbot-settings/123',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/admin/chatbot-settings/123

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
put/api/admin/chatbot-settings/{userId}internalReplace Admin Chatbot Settings UserId

Replace Admin Chatbot Settings UserId. This admin endpoint is documented from the matching route handler under app/api.

Authentication

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

cookieAuth

Authenticated dashboard session issued by NextAuth.

widgetIdentity

Signed widget identity payload. Pair with identityPayload and identityTimestamp, or use legacy userHash where still accepted.

Parameters

NameInTypeRequiredDescription
userIdpathstringyesuserId route parameter.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X PUT https://app.kommander.ai/api/admin/chatbot-settings/123 \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/admin/chatbot-settings/123', {
  method: 'PUT',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.put(
    'https://app.kommander.ai/api/admin/chatbot-settings/123',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

PUT /api/admin/chatbot-settings/123

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/admin/client-analysisinternalGet Admin Client Analysis

Get Admin Client Analysis. This admin endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/admin/client-analysis \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/admin/client-analysis', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/admin/client-analysis',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/admin/client-analysis

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/admin/connector-circuitsinternalGet Admin Connector Circuits

Get Admin Connector Circuits. This admin endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/admin/connector-circuits \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/admin/connector-circuits', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/admin/connector-circuits',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/admin/connector-circuits

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/admin/cost-summaryinternalGet Admin Cost Summary

Get Admin Cost Summary. This admin endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/admin/cost-summary \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/admin/cost-summary', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/admin/cost-summary',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/admin/cost-summary

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/admin/discount-codesinternalGet Admin Discount Codes

Get Admin Discount Codes. This admin endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/admin/discount-codes \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/admin/discount-codes', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/admin/discount-codes',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/admin/discount-codes

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
post/api/admin/discount-codesinternalCreate or run Admin Discount Codes

Create or run Admin Discount Codes. This admin endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/admin/discount-codes \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/admin/discount-codes', {
  method: 'POST',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/admin/discount-codes',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/admin/discount-codes

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/admin/discount-codes/{id}internalGet Admin Discount Codes ID

Get Admin Discount Codes ID. This admin endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
idpathstringyesid route parameter.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/admin/discount-codes/123 \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/admin/discount-codes/123', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/admin/discount-codes/123',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/admin/discount-codes/123

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
patch/api/admin/discount-codes/{id}internalUpdate Admin Discount Codes ID

Update Admin Discount Codes ID. This admin endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
idpathstringyesid route parameter.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X PATCH https://app.kommander.ai/api/admin/discount-codes/123 \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/admin/discount-codes/123', {
  method: 'PATCH',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.patch(
    'https://app.kommander.ai/api/admin/discount-codes/123',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

PATCH /api/admin/discount-codes/123

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
delete/api/admin/discount-codes/{id}internalDelete Admin Discount Codes ID

Delete Admin Discount Codes ID. This admin endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
idpathstringyesid route parameter.

Code examples

cURL

curl -X DELETE https://app.kommander.ai/api/admin/discount-codes/123 \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/admin/discount-codes/123', {
  method: 'DELETE',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.delete(
    'https://app.kommander.ai/api/admin/discount-codes/123',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

DELETE /api/admin/discount-codes/123

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/admin/discount-codes/{id}/redemptionsinternalGet Admin Discount Codes ID Redemptions

Get Admin Discount Codes ID Redemptions. This admin endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
idpathstringyesid route parameter.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/admin/discount-codes/123/redemptions \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/admin/discount-codes/123/redemptions', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/admin/discount-codes/123/redemptions',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/admin/discount-codes/123/redemptions

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/admin/feature-flagsinternalGet Admin Feature Flags

Get Admin Feature Flags. This admin endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/admin/feature-flags \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/admin/feature-flags', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/admin/feature-flags',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/admin/feature-flags

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/admin/organizationsinternalGet Admin Organizations

Get Admin Organizations. This admin endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/admin/organizations \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/admin/organizations', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/admin/organizations',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/admin/organizations

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/admin/orphan-organizationsinternalGet Admin Orphan Organizations

Get Admin Orphan Organizations. This admin endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/admin/orphan-organizations \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/admin/orphan-organizations', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/admin/orphan-organizations',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/admin/orphan-organizations

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/admin/subscriptionsinternalGet Admin Subscriptions

Get Admin Subscriptions. This admin endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/admin/subscriptions \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/admin/subscriptions', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/admin/subscriptions',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/admin/subscriptions

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
patch/api/admin/subscriptions/{id}internalUpdate Admin Subscriptions ID

Update Admin Subscriptions ID. This admin endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
idpathstringyesid route parameter.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X PATCH https://app.kommander.ai/api/admin/subscriptions/123 \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/admin/subscriptions/123', {
  method: 'PATCH',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.patch(
    'https://app.kommander.ai/api/admin/subscriptions/123',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

PATCH /api/admin/subscriptions/123

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/admin/subscriptions/{id}/customer-detailsinternalGet Admin Subscriptions ID Customer Details

Get Admin Subscriptions ID Customer Details. This admin endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
idpathstringyesid route parameter.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/admin/subscriptions/123/customer-details \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/admin/subscriptions/123/customer-details', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/admin/subscriptions/123/customer-details',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/admin/subscriptions/123/customer-details

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
patch/api/admin/subscriptions/{id}/customer-detailsinternalUpdate Admin Subscriptions ID Customer Details

Update Admin Subscriptions ID Customer Details. This admin endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
idpathstringyesid route parameter.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X PATCH https://app.kommander.ai/api/admin/subscriptions/123/customer-details \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/admin/subscriptions/123/customer-details', {
  method: 'PATCH',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.patch(
    'https://app.kommander.ai/api/admin/subscriptions/123/customer-details',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

PATCH /api/admin/subscriptions/123/customer-details

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
post/api/admin/subscriptions/{id}/push-customer-detailsinternalCreate or run Admin Subscriptions ID Push Customer Details

Create or run Admin Subscriptions ID Push Customer Details. This admin endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
idpathstringyesid route parameter.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/admin/subscriptions/123/push-customer-details \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/admin/subscriptions/123/push-customer-details', {
  method: 'POST',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/admin/subscriptions/123/push-customer-details',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/admin/subscriptions/123/push-customer-details

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
post/api/admin/subscriptions/{id}/syncinternalCreate or run Admin Subscriptions ID Sync

Create or run Admin Subscriptions ID Sync. This admin endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
idpathstringyesid route parameter.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/admin/subscriptions/123/sync \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/admin/subscriptions/123/sync', {
  method: 'POST',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/admin/subscriptions/123/sync',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/admin/subscriptions/123/sync

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/admin/tool-audit-logsinternalGet Admin Tool Audit Logs

Get Admin Tool Audit Logs. This admin endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/admin/tool-audit-logs \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/admin/tool-audit-logs', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/admin/tool-audit-logs',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/admin/tool-audit-logs

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/admin/usersinternalGet Admin Users

Get Admin Users. This admin endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/admin/users \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/admin/users', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/admin/users',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/admin/users

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/admin/users/{userId}internalGet Admin Users UserId

Get Admin Users UserId. This admin endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
userIdpathstringyesuserId route parameter.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/admin/users/123 \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/admin/users/123', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/admin/users/123',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/admin/users/123

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
post/api/admin/users/{userId}/grant-subscriptioninternalCreate or run Admin Users UserId Grant Subscription

Create or run Admin Users UserId Grant Subscription. This admin endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
userIdpathstringyesuserId route parameter.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/admin/users/123/grant-subscription \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/admin/users/123/grant-subscription', {
  method: 'POST',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/admin/users/123/grant-subscription',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/admin/users/123/grant-subscription

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}

Analytics

Analytics endpoints.

post/api/access-eventsCreate or run Access Events

Create or run Access Events. This analytics endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/access-events \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/access-events', {
  method: 'POST',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/access-events',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/access-events

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/analyticsGet Analytics

Get Analytics. This analytics endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
contextIdquerystringnoOrganization or user context to query.
timeframequeryday | week | month | lastmonth | alltimenoAnalytics window when supported.
startDatequerystring:date-timenoCustom range start when supported.
endDatequerystring:date-timenoCustom range end when supported.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/analytics \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/analytics', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/analytics',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/analytics

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/analytics/exportGet Analytics Export

Get Analytics Export. This analytics endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
contextIdquerystringnoOrganization or user context to export.
formatquerycsvnoExport format. Only CSV is supported.
timeframequeryday | week | month | lastmonth | alltimenoAnalytics window when supported.
startDatequerystring:date-timenoCustom range start when supported.
endDatequerystring:date-timenoCustom range end when supported.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/analytics/export \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/analytics/export', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/analytics/export',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/analytics/export

Responses

200text/csv

CSV export matching the analytics dashboard DTO for the requested context and range.

text/csv schema

{
  "type": "string"
}

Example response

"string"
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/analytics/sentimentGet Analytics Sentiment

Get Analytics Sentiment. This analytics endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
timeframequeryday | week | month | lastmonth | alltimenoAnalytics window when supported.
startDatequerystring:date-timenoCustom range start when supported.
endDatequerystring:date-timenoCustom range end when supported.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/analytics/sentiment \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/analytics/sentiment', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/analytics/sentiment',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/analytics/sentiment

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
post/api/analytics/sentimentCreate or run Analytics Sentiment

Create or run Analytics Sentiment. This analytics endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/analytics/sentiment \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/analytics/sentiment', {
  method: 'POST',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/analytics/sentiment',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/analytics/sentiment

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/dashboard/notificationsGet Dashboard Notifications

Get Dashboard Notifications. This analytics endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
timeframequeryday | week | month | lastmonth | alltimenoAnalytics window when supported.
startDatequerystring:date-timenoCustom range start when supported.
endDatequerystring:date-timenoCustom range end when supported.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/dashboard/notifications \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/dashboard/notifications', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/dashboard/notifications',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/dashboard/notifications

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
patch/api/dashboard/notificationsUpdate Dashboard Notifications

Update Dashboard Notifications. This analytics endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X PATCH https://app.kommander.ai/api/dashboard/notifications \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/dashboard/notifications', {
  method: 'PATCH',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.patch(
    'https://app.kommander.ai/api/dashboard/notifications',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

PATCH /api/dashboard/notifications

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/dashboard/preferencesGet Dashboard Preferences

Get Dashboard Preferences. This analytics endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
timeframequeryday | week | month | lastmonth | alltimenoAnalytics window when supported.
startDatequerystring:date-timenoCustom range start when supported.
endDatequerystring:date-timenoCustom range end when supported.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/dashboard/preferences \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/dashboard/preferences', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/dashboard/preferences',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/dashboard/preferences

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
put/api/dashboard/preferencesReplace Dashboard Preferences

Replace Dashboard Preferences. This analytics endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X PUT https://app.kommander.ai/api/dashboard/preferences \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/dashboard/preferences', {
  method: 'PUT',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.put(
    'https://app.kommander.ai/api/dashboard/preferences',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

PUT /api/dashboard/preferences

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/dashboard/statsGet Dashboard Stats

Get Dashboard Stats. This analytics endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
timeframequeryday | week | month | lastmonth | alltimenoAnalytics window when supported.
startDatequerystring:date-timenoCustom range start when supported.
endDatequerystring:date-timenoCustom range end when supported.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/dashboard/stats \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/dashboard/stats', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/dashboard/stats',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/dashboard/stats

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/operator/summaryGet Operator Summary

Get Operator Summary. This analytics endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
timeframequeryday | week | month | lastmonth | alltimenoAnalytics window when supported.
startDatequerystring:date-timenoCustom range start when supported.
endDatequerystring:date-timenoCustom range end when supported.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/operator/summary \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/operator/summary', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/operator/summary',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/operator/summary

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}

Billing

Billing endpoints.

get/api/billing-profileGet Billing Profile

Get Billing Profile. This billing endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
organizationIdquerystringnoOrganization scope when supported.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/billing-profile \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/billing-profile', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/billing-profile',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/billing-profile

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
post/api/billing-profileCreate or run Billing Profile

Create or run Billing Profile. This billing endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/billing-profile \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/billing-profile', {
  method: 'POST',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/billing-profile',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/billing-profile

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
delete/api/billing-profileDelete Billing Profile

Delete Billing Profile. This billing endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Code examples

cURL

curl -X DELETE https://app.kommander.ai/api/billing-profile \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/billing-profile', {
  method: 'DELETE',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.delete(
    'https://app.kommander.ai/api/billing-profile',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

DELETE /api/billing-profile

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/billing-profile/invoicesGet Billing Profile Invoices

Get Billing Profile Invoices. This billing endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
organizationIdquerystringnoOrganization scope when supported.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/billing-profile/invoices \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/billing-profile/invoices', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/billing-profile/invoices',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/billing-profile/invoices

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
post/api/discount-codes/validateCreate or run Discount Codes Validate

Create or run Discount Codes Validate. This billing endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/discount-codes/validate \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/discount-codes/validate', {
  method: 'POST',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/discount-codes/validate',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/discount-codes/validate

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
post/api/organizations/{id}/subscribeCreate or run Organizations ID Subscribe

Create or run Organizations ID Subscribe. This billing endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
idpathstringyesid route parameter.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/organizations/123/subscribe \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/organizations/123/subscribe', {
  method: 'POST',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/organizations/123/subscribe',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/organizations/123/subscribe

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
put/api/organizations/{id}/subscribeReplace Organizations ID Subscribe

Replace Organizations ID Subscribe. This billing endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
idpathstringyesid route parameter.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X PUT https://app.kommander.ai/api/organizations/123/subscribe \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/organizations/123/subscribe', {
  method: 'PUT',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.put(
    'https://app.kommander.ai/api/organizations/123/subscribe',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

PUT /api/organizations/123/subscribe

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/organizations/{id}/subscribe/previewGet Organizations ID Subscribe Preview

Get Organizations ID Subscribe Preview. This billing endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
idpathstringyesid route parameter.
organizationIdquerystringnoOrganization scope when supported.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/organizations/123/subscribe/preview \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/organizations/123/subscribe/preview', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/organizations/123/subscribe/preview',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/organizations/123/subscribe/preview

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/payment-methodsGet Payment Methods

Get Payment Methods. This billing endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
organizationIdquerystringnoOrganization scope when supported.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/payment-methods \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/payment-methods', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/payment-methods',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/payment-methods

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
post/api/payment-methodsCreate or run Payment Methods

Create or run Payment Methods. This billing endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/payment-methods \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/payment-methods', {
  method: 'POST',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/payment-methods',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/payment-methods

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
put/api/payment-methodsReplace Payment Methods

Replace Payment Methods. This billing endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X PUT https://app.kommander.ai/api/payment-methods \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/payment-methods', {
  method: 'PUT',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.put(
    'https://app.kommander.ai/api/payment-methods',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

PUT /api/payment-methods

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
delete/api/payment-methodsDelete Payment Methods

Delete Payment Methods. This billing endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Code examples

cURL

curl -X DELETE https://app.kommander.ai/api/payment-methods \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/payment-methods', {
  method: 'DELETE',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.delete(
    'https://app.kommander.ai/api/payment-methods',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

DELETE /api/payment-methods

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
post/api/stripe/portalCreate or run Stripe Portal

Create or run Stripe Portal. This billing endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/stripe/portal \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/stripe/portal', {
  method: 'POST',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/stripe/portal',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/stripe/portal

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/subscriptionGet Subscription

Get Subscription. This billing endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
organizationIdquerystringnoOrganization scope when supported.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/subscription \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/subscription', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/subscription',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/subscription

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}

Identity Verification

Identity Verification endpoints.

get/api/settings/identity-verificationGet Settings Identity Verification

Get Settings Identity Verification. This identity verification endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/settings/identity-verification \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/settings/identity-verification', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/settings/identity-verification',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/settings/identity-verification

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
post/api/settings/identity-verificationCreate or run Settings Identity Verification

Create or run Settings Identity Verification. This identity verification endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/settings/identity-verification \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/settings/identity-verification', {
  method: 'POST',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/settings/identity-verification',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/settings/identity-verification

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
post/api/widget-clients/{id}/rotate-identity-secretCreate or run Widget Clients ID Rotate Identity Secret

Create or run Widget Clients ID Rotate Identity Secret. This identity verification endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
idpathstringyesid route parameter.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/widget-clients/123/rotate-identity-secret \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/widget-clients/123/rotate-identity-secret', {
  method: 'POST',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/widget-clients/123/rotate-identity-secret',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/widget-clients/123/rotate-identity-secret

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}

Organizations

Organizations endpoints.

post/api/invitationsCreate or run Invitations

Create or run Invitations. This organizations endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/invitations \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/invitations', {
  method: 'POST',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/invitations',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/invitations

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
patch/api/invitationsUpdate Invitations

Update Invitations. This organizations endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X PATCH https://app.kommander.ai/api/invitations \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/invitations', {
  method: 'PATCH',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.patch(
    'https://app.kommander.ai/api/invitations',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

PATCH /api/invitations

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
delete/api/invitations/revokeDelete Invitations Revoke

Delete Invitations Revoke. This organizations endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Code examples

cURL

curl -X DELETE https://app.kommander.ai/api/invitations/revoke \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/invitations/revoke', {
  method: 'DELETE',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.delete(
    'https://app.kommander.ai/api/invitations/revoke',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

DELETE /api/invitations/revoke

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/invitations/{token}Get Invitations Token

Get Invitations Token. This organizations endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
tokenpathstringyestoken route parameter.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/invitations/<token> \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/invitations/<token>', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/invitations/<token>',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/invitations/invite_token

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/organizationsGet Organizations

Get Organizations. This organizations endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/organizations \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/organizations', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/organizations',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/organizations

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
post/api/organizationsCreate or run Organizations

Create or run Organizations. This organizations endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/organizations \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/organizations', {
  method: 'POST',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/organizations',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/organizations

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
patch/api/organizations/{id}Update Organizations ID

Update Organizations ID. This organizations endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
idpathstringyesid route parameter.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X PATCH https://app.kommander.ai/api/organizations/123 \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/organizations/123', {
  method: 'PATCH',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.patch(
    'https://app.kommander.ai/api/organizations/123',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

PATCH /api/organizations/123

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
delete/api/organizations/{id}Delete Organizations ID

Delete Organizations ID. This organizations endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
idpathstringyesid route parameter.

Code examples

cURL

curl -X DELETE https://app.kommander.ai/api/organizations/123 \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/organizations/123', {
  method: 'DELETE',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.delete(
    'https://app.kommander.ai/api/organizations/123',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

DELETE /api/organizations/123

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/organizations/{id}/invitationsGet Organizations ID Invitations

Get Organizations ID Invitations. This organizations endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
idpathstringyesid route parameter.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/organizations/123/invitations \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/organizations/123/invitations', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/organizations/123/invitations',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/organizations/123/invitations

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/organizations/{id}/membersGet Organizations ID Members

Get Organizations ID Members. This organizations endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
idpathstringyesid route parameter.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/organizations/123/members \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/organizations/123/members', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/organizations/123/members',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/organizations/123/members

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
patch/api/organizations/{id}/membersUpdate Organizations ID Members

Update Organizations ID Members. This organizations endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
idpathstringyesid route parameter.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X PATCH https://app.kommander.ai/api/organizations/123/members \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/organizations/123/members', {
  method: 'PATCH',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.patch(
    'https://app.kommander.ai/api/organizations/123/members',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

PATCH /api/organizations/123/members

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
delete/api/organizations/{id}/membersDelete Organizations ID Members

Delete Organizations ID Members. This organizations endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
idpathstringyesid route parameter.

Code examples

cURL

curl -X DELETE https://app.kommander.ai/api/organizations/123/members \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/organizations/123/members', {
  method: 'DELETE',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.delete(
    'https://app.kommander.ai/api/organizations/123/members',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

DELETE /api/organizations/123/members

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
post/api/organizations/{id}/whatsapp-verify-tokenCreate or run Organizations ID Whatsapp Verify Token

Create or run Organizations ID Whatsapp Verify Token. This organizations endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
idpathstringyesid route parameter.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/organizations/123/whatsapp-verify-token \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/organizations/123/whatsapp-verify-token', {
  method: 'POST',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/organizations/123/whatsapp-verify-token',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/organizations/123/whatsapp-verify-token

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}

Automations

Automations endpoints.

get/api/automations/callback-requestsGet Automations Callback Requests

Get Automations Callback Requests. This automations endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/automations/callback-requests \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/automations/callback-requests', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/automations/callback-requests',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/automations/callback-requests

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
post/api/automations/callback-requestsCreate or run Automations Callback Requests

Create or run Automations Callback Requests. This automations endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/automations/callback-requests \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/automations/callback-requests', {
  method: 'POST',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/automations/callback-requests',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/automations/callback-requests

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
options/api/automations/callback-requestsCORS preflight for automations callback requests

CORS preflight for /api/automations/callback-requests. Used by browsers before cross-origin requests.

Authentication

No authentication requirement is declared for this operation.

Code examples

cURL

curl -X OPTIONS https://app.kommander.ai/api/automations/callback-requests

JavaScript

const response = await fetch('https://app.kommander.ai/api/automations/callback-requests', {
  method: 'OPTIONS',
  headers: {},
});

const data = await response.json();

Python

import requests

response = requests.options(
    'https://app.kommander.ai/api/automations/callback-requests',
    headers={}
)

data = response.json()

Interactive testing

OPTIONS /api/automations/callback-requests

Responses

204

Preflight accepted. The response includes Access-Control-Allow-* headers where the route supports browser cross-origin calls.

405

Preflight is not allowed for this deployment or route configuration.

get/api/automations/callback-requests/exportGet Automations Callback Requests Export

Get Automations Callback Requests Export. This automations endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/automations/callback-requests/export \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/automations/callback-requests/export', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/automations/callback-requests/export',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/automations/callback-requests/export

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
post/api/automations/callback-requests/migrateCreate or run Automations Callback Requests Migrate

Create or run Automations Callback Requests Migrate. This automations endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/automations/callback-requests/migrate \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/automations/callback-requests/migrate', {
  method: 'POST',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/automations/callback-requests/migrate',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/automations/callback-requests/migrate

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/automations/callback-requests/schemaGet Automations Callback Requests Schema

Get Automations Callback Requests Schema. This automations endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/automations/callback-requests/schema \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/automations/callback-requests/schema', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/automations/callback-requests/schema',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/automations/callback-requests/schema

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
options/api/automations/callback-requests/schemaCORS preflight for automations callback requests schema

CORS preflight for /api/automations/callback-requests/schema. Used by browsers before cross-origin requests.

Authentication

No authentication requirement is declared for this operation.

Code examples

cURL

curl -X OPTIONS https://app.kommander.ai/api/automations/callback-requests/schema

JavaScript

const response = await fetch('https://app.kommander.ai/api/automations/callback-requests/schema', {
  method: 'OPTIONS',
  headers: {},
});

const data = await response.json();

Python

import requests

response = requests.options(
    'https://app.kommander.ai/api/automations/callback-requests/schema',
    headers={}
)

data = response.json()

Interactive testing

OPTIONS /api/automations/callback-requests/schema

Responses

204

Preflight accepted. The response includes Access-Control-Allow-* headers where the route supports browser cross-origin calls.

405

Preflight is not allowed for this deployment or route configuration.

patch/api/automations/callback-requests/{id}Update Automations Callback Requests ID

Update Automations Callback Requests ID. This automations endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
idpathstringyesid route parameter.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X PATCH https://app.kommander.ai/api/automations/callback-requests/123 \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/automations/callback-requests/123', {
  method: 'PATCH',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.patch(
    'https://app.kommander.ai/api/automations/callback-requests/123',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

PATCH /api/automations/callback-requests/123

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
delete/api/automations/callback-requests/{id}Delete Automations Callback Requests ID

Delete Automations Callback Requests ID. This automations endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Parameters

NameInTypeRequiredDescription
idpathstringyesid route parameter.

Code examples

cURL

curl -X DELETE https://app.kommander.ai/api/automations/callback-requests/123 \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/automations/callback-requests/123', {
  method: 'DELETE',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.delete(
    'https://app.kommander.ai/api/automations/callback-requests/123',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

DELETE /api/automations/callback-requests/123

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}

System

System endpoints.

get/api/assistants/overviewGet Assistants Overview

Get Assistants Overview. This system endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/assistants/overview \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/assistants/overview', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/assistants/overview',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/assistants/overview

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/bananaloop-testGet Bananaloop Test

Get Bananaloop Test. This system endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/bananaloop-test \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/bananaloop-test', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/bananaloop-test',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/bananaloop-test

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/database-healthGet Database Health

Get Database Health. This system endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/database-health \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/database-health', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/database-health',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/database-health

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/inngestGet Inngest

Inngest serve endpoint for background function execution and platform callbacks.

Authentication

No authentication requirement is declared for this operation.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/inngest

JavaScript

const response = await fetch('https://app.kommander.ai/api/inngest', {
  method: 'GET',
  headers: {},
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/inngest',
    headers={}
)

data = response.json()

Interactive testing

GET /api/inngest

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
post/api/inngestCreate or run Inngest

Inngest serve endpoint for background function execution and platform callbacks.

Authentication

No authentication requirement is declared for this operation.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/inngest \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/inngest', {
  method: 'POST',
  headers: {
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/inngest',
    headers={
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/inngest

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
put/api/inngestReplace Inngest

Inngest serve endpoint for background function execution and platform callbacks.

Authentication

No authentication requirement is declared for this operation.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X PUT https://app.kommander.ai/api/inngest \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/inngest', {
  method: 'PUT',
  headers: {
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.put(
    'https://app.kommander.ai/api/inngest',
    headers={
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

PUT /api/inngest

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/me/profileGet Me Profile

Get Me Profile. This system endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/me/profile \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/me/profile', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/me/profile',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/me/profile

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
put/api/me/profileReplace Me Profile

Replace Me Profile. This system endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X PUT https://app.kommander.ai/api/me/profile \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/me/profile', {
  method: 'PUT',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.put(
    'https://app.kommander.ai/api/me/profile',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

PUT /api/me/profile

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
post/api/privacy/consentCreate or run Privacy Consent

Create or run Privacy Consent. This system endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Request body

application/json

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON payload. See the route handler for field-level implementation details."
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/privacy/consent \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/privacy/consent', {
  method: 'POST',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/privacy/consent',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/privacy/consent

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/speech/transcribeGet Speech Transcribe

Get Speech Transcribe. This system endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/speech/transcribe \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/speech/transcribe', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/speech/transcribe',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/speech/transcribe

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
post/api/speech/transcribeCreate or run Speech Transcribe

Create or run Speech Transcribe. This system endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Request body (required)

multipart/form-data

multipart/form-data schema

{
  "type": "object",
  "additionalProperties": true
}

Code examples

cURL

curl -X POST https://app.kommander.ai/api/speech/transcribe \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: multipart/form-data" \
  --data '{}'

JavaScript

const response = await fetch('https://app.kommander.ai/api/speech/transcribe', {
  method: 'POST',
  headers: {
    "Authorization": "Bearer <token>",
    "Content-Type": "multipart/form-data"
  },
  body: JSON.stringify({}),
});

const data = await response.json();

Python

import requests

response = requests.post(
    'https://app.kommander.ai/api/speech/transcribe',
    headers={
      "Authorization": "Bearer <token>",
      "Content-Type": "multipart/form-data"
    },
    json={}
)

data = response.json()

Interactive testing

POST /api/speech/transcribe

Responses

200application/json

200 or 201 response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
get/api/ws-startGet WebSocket Start

Get WebSocket Start. This system endpoint is documented from the matching route handler under app/api.

Authentication

cookieAuth

Authenticated dashboard session issued by NextAuth.

bearerAuth

Bearer token used by embedded clients, service calls, or future public API clients where supported.

Code examples

cURL

curl -X GET https://app.kommander.ai/api/ws-start \
  -H "Authorization: Bearer <token>"

JavaScript

const response = await fetch('https://app.kommander.ai/api/ws-start', {
  method: 'GET',
  headers: {
    "Authorization": "Bearer <token>"
  },
});

const data = await response.json();

Python

import requests

response = requests.get(
    'https://app.kommander.ai/api/ws-start',
    headers={
      "Authorization": "Bearer <token>"
    }
)

data = response.json()

Interactive testing

GET /api/ws-start

Responses

200application/json

Successful response from the route handler.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "description": "Endpoint-specific JSON response."
}

Example response

{}
400application/json

Invalid request payload, missing parameter, or validation failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
401application/json

Missing or invalid authentication.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
403application/json

Authenticated caller lacks permission for the requested organization, resource, or admin operation.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
404application/json

Requested resource was not found.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
429application/json

Too many requests. Retry after the policy window resets; some handlers also emit Retry-After headers.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}
500application/json

Unexpected server or provider failure.

application/json schema

{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    },
    "details": {
      "description": "Optional validation or provider-specific details."
    },
    "status": {
      "type": "string",
      "description": "Optional machine status used by some message endpoints."
    }
  }
}

Example response

{
  "error": "string",
  "details": {},
  "status": "string"
}