Krobar.ai Task Templates API
Endpoints for working with reusable task templates that can be cloned into projects or graphs
Endpoints for working with reusable task templates that can be cloned into projects or graphs
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/krobar-ai:krobar-ai-task-templates-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Krobar AI Task Templates API
description: '# API Krobar AI
Welcome to the Krobar AI API! A FastAPI-based service that is the backend for Krobar.ai
## Authentication
**IMPORTANT**: This API requires an API key for all endpoints except for /health. The API key must be provided in the `X-API-Key` header.
```bash
curl -H "X-API-Key: your-api-key" https://api.krobar.ai/endpoint
```'
contact:
name: API Support
email: tristan@kromatic.com
version: 1.0.0
tags:
- name: Task Templates
description: Endpoints for working with reusable task templates that can be cloned into projects or graphs
paths:
/task-templates:
get:
tags:
- Task Templates
summary: List Task Templates
description: 'List all task templates.
Returns:
List[TaskTemplateSummary]: A list of all task templates (summary view).'
operationId: list_task_templates_task_templates_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
items:
$ref: '#/components/schemas/TaskTemplateSummary'
type: array
title: Response List Task Templates Task Templates Get
'401':
description: Unauthorized
'403':
description: Forbidden - Insufficient permissions
'404':
description: Task template not found
post:
tags:
- Task Templates
summary: Create Task Template
description: 'Create a new task template.
Args:
template_data (TaskTemplateCreate): The data for the new task template, including its tasks.
db (SessionDep): Database session dependency.
current_user (User): The authenticated user (injected).
Returns:
TaskTemplateResponse: The created task template with all details.'
operationId: create_task_template_task_templates_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/TaskTemplateCreate'
required: true
responses:
'201':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/TaskTemplateResponse'
'401':
description: Unauthorized
'403':
description: Forbidden - Insufficient permissions
'404':
description: Task template not found
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/task-templates/{template_id}:
get:
tags:
- Task Templates
summary: Get Task Template
description: 'Get a task template by its unique ID.
Args:
template_id (UUID): The ID of the task template to retrieve.
db (SessionDep): Database session dependency.
current_user (User): The authenticated user (injected).
Returns:
TaskTemplateResponse: The full details of the requested task template.
Raises:
HTTPException: 404 if the template is not found.'
operationId: get_task_template_task_templates__template_id__get
parameters:
- name: template_id
in: path
required: true
schema:
type: string
format: uuid
title: Template Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/TaskTemplateResponse'
'401':
description: Unauthorized
'403':
description: Forbidden - Insufficient permissions
'404':
description: Task template not found
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
put:
tags:
- Task Templates
summary: Update Task Template
description: 'Update an existing task template by ID.
Args:
template_id (UUID): The ID of the task template to update.
template_data (TaskTemplateUpdate): The updated data for the task template. If the ''tasks'' field is provided, the list of tasks will be synchronized as follows:
- If a task in the payload has an ''id'' matching an existing task, that task is updated in place (ID is preserved).
- If a task in the payload has no ''id'', a new task is created.
- If an existing task is not present in the payload, it is deleted.
db (SessionDep): Database session dependency.
current_user (User): The authenticated user (injected).
Returns:
TaskTemplateResponse: The updated task template.
Raises:
HTTPException: 404 if the template is not found.
Notes:
- The ''id'' field is now supported in TemplateTaskUpdate for this endpoint.
- This behavior preserves task IDs and history when possible, and only creates new IDs for new tasks.'
operationId: update_task_template_task_templates__template_id__put
parameters:
- name: template_id
in: path
required: true
schema:
type: string
format: uuid
title: Template Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/TaskTemplateUpdate'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/TaskTemplateResponse'
'401':
description: Unauthorized
'403':
description: Forbidden - Insufficient permissions
'404':
description: Task template not found
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
delete:
tags:
- Task Templates
summary: Delete Task Template
description: 'Delete a task template by its unique ID.
Args:
template_id (UUID): The ID of the task template to delete.
db (SessionDep): Database session dependency.
current_user (User): The authenticated user (injected).
Returns:
None
Raises:
HTTPException: 404 if the template is not found.'
operationId: delete_task_template_task_templates__template_id__delete
parameters:
- name: template_id
in: path
required: true
schema:
type: string
format: uuid
title: Template Id
responses:
'204':
description: Successful Response
'401':
description: Unauthorized
'403':
description: Forbidden - Insufficient permissions
'404':
description: Task template not found
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/task-templates/{template_id}/tasks:
get:
tags:
- Task Templates
summary: List Template Tasks
description: List all template tasks for a given template (tree structure).
operationId: list_template_tasks_task_templates__template_id__tasks_get
parameters:
- name: template_id
in: path
required: true
schema:
type: string
format: uuid
title: Template Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/TemplateTaskResponse'
title: Response List Template Tasks Task Templates Template Id Tasks Get
'401':
description: Unauthorized
'403':
description: Forbidden - Insufficient permissions
'404':
description: Task template not found
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
post:
tags:
- Task Templates
summary: Create Template Task
description: Create a new template task in a template.
operationId: create_template_task_task_templates__template_id__tasks_post
parameters:
- name: template_id
in: path
required: true
schema:
type: string
format: uuid
title: Template Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/TemplateTaskCreate'
responses:
'201':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/TemplateTaskResponse'
'401':
description: Unauthorized
'403':
description: Forbidden - Insufficient permissions
'404':
description: Task template not found
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/task-templates/{template_id}/tasks/{task_id}:
patch:
tags:
- Task Templates
summary: Update Template Task
description: Update an existing template task in a template.
operationId: update_template_task_task_templates__template_id__tasks__task_id__patch
parameters:
- name: template_id
in: path
required: true
schema:
type: string
format: uuid
title: Template Id
- name: task_id
in: path
required: true
schema:
type: string
format: uuid
title: Task Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/TemplateTaskUpdate'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/TemplateTaskResponse'
'401':
description: Unauthorized
'403':
description: Forbidden - Insufficient permissions
'404':
description: Task template not found
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
delete:
tags:
- Task Templates
summary: Delete Template Task
description: 'Delete a template task from a template.
When a parent template task is deleted, all its child tasks are moved to the top level (parent_id=None) and are not deleted.
Args:
template_id (UUID): The ID of the template.
task_id (UUID): The ID of the template task to delete.
db (SessionDep): Database session dependency.
current_user (User): The authenticated user (injected).
Returns:
None
Raises:
HTTPException: 404 if the template task is not found.'
operationId: delete_template_task_task_templates__template_id__tasks__task_id__delete
parameters:
- name: template_id
in: path
required: true
schema:
type: string
format: uuid
title: Template Id
- name: task_id
in: path
required: true
schema:
type: string
format: uuid
title: Task Id
responses:
'204':
description: Successful Response
'401':
description: Unauthorized
'403':
description: Forbidden - Insufficient permissions
'404':
description: Task template not found
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
TemplateTaskCreate:
properties:
name:
type: string
title: Name
description: Human-readable task name
required_actor:
$ref: '#/components/schemas/RequiredActor'
description: Who is required to perform the task
order_index:
anyOf:
- type: integer
- type: 'null'
title: Order Index
description: Order among sibling tasks
parent_id:
anyOf:
- type: string
format: uuid
- type: 'null'
title: Parent Id
description: Parent task ID (for nesting)
depends_on:
anyOf:
- items:
type: string
format: uuid
type: array
- type: 'null'
title: Depends On
description: List of task IDs this task depends on
type: object
required:
- name
- required_actor
title: TemplateTaskCreate
src__db__models__task__RelatedObjectType:
type: string
enum:
- project
- graph
title: RelatedObjectType
TaskTemplateSummary:
properties:
id:
type: string
format: uuid
title: Id
name:
type: string
title: Name
description:
anyOf:
- type: string
- type: 'null'
title: Description
is_default:
anyOf:
- type: boolean
- type: 'null'
title: Is Default
created_by:
anyOf:
- type: string
format: uuid
- type: 'null'
title: Created By
updated_by:
anyOf:
- type: string
format: uuid
- type: 'null'
title: Updated By
created_at:
type: string
format: date-time
title: Created At
updated_at:
type: string
format: date-time
title: Updated At
type: object
required:
- id
- name
- created_at
- updated_at
title: TaskTemplateSummary
TaskTemplateResponse:
properties:
related_object_type:
$ref: '#/components/schemas/RelatedObjectType-Output'
description: Type of object this template is for (project, graph)
name:
type: string
title: Name
description: Name of the task template
description:
anyOf:
- type: string
- type: 'null'
title: Description
description: Description of the task template
is_default:
anyOf:
- type: boolean
- type: 'null'
title: Is Default
description: Whether this is a default template
id:
type: string
format: uuid
title: Id
created_by:
anyOf:
- type: string
format: uuid
- type: 'null'
title: Created By
updated_by:
anyOf:
- type: string
format: uuid
- type: 'null'
title: Updated By
created_at:
type: string
format: date-time
title: Created At
updated_at:
type: string
format: date-time
title: Updated At
tasks:
items:
$ref: '#/components/schemas/TemplateTaskResponse'
type: array
title: Tasks
description: List of tasks in the template
type: object
required:
- related_object_type
- name
- id
- created_by
- updated_by
- created_at
- updated_at
- tasks
title: TaskTemplateResponse
TemplateTaskUpdate:
properties:
id:
anyOf:
- type: string
format: uuid
- type: 'null'
title: Id
description: ID of the task (for updates)
name:
anyOf:
- type: string
- type: 'null'
title: Name
description: Human-readable task name
required_actor:
anyOf:
- $ref: '#/components/schemas/RequiredActor'
- type: 'null'
description: Who is required to perform the task
order_index:
anyOf:
- type: integer
- type: 'null'
title: Order Index
description: Order among sibling tasks
parent_id:
anyOf:
- type: string
format: uuid
- type: 'null'
title: Parent Id
description: Parent task ID (for nesting)
depends_on:
anyOf:
- items:
type: string
format: uuid
type: array
- type: 'null'
title: Depends On
description: List of task IDs this task depends on
type: object
title: TemplateTaskUpdate
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
TemplateTaskResponse:
properties:
name:
type: string
title: Name
description: Human-readable task name
required_actor:
$ref: '#/components/schemas/RequiredActor'
description: Who is required to perform the task
order_index:
anyOf:
- type: integer
- type: 'null'
title: Order Index
description: Order among sibling tasks
parent_id:
anyOf:
- type: string
format: uuid
- type: 'null'
title: Parent Id
description: Parent task ID (for nesting)
depends_on:
anyOf:
- items:
type: string
format: uuid
type: array
- type: 'null'
title: Depends On
description: List of task IDs this task depends on
id:
type: string
format: uuid
title: Id
template_id:
type: string
format: uuid
title: Template Id
created_at:
type: string
format: date-time
title: Created At
updated_at:
type: string
format: date-time
title: Updated At
subtasks:
anyOf:
- items:
$ref: '#/components/schemas/TemplateTaskResponse'
type: array
- type: 'null'
title: Subtasks
type: object
required:
- name
- required_actor
- id
- template_id
- created_at
- updated_at
title: TemplateTaskResponse
TaskTemplateCreate:
properties:
related_object_type:
$ref: '#/components/schemas/src__db__models__task__RelatedObjectType'
description: Type of object this template is for (project, graph)
name:
type: string
title: Name
description: Name of the task template
description:
anyOf:
- type: string
- type: 'null'
title: Description
description: Description of the task template
is_default:
anyOf:
- type: boolean
- type: 'null'
title: Is Default
description: Whether this is a default template
tasks:
items:
$ref: '#/components/schemas/TemplateTaskCreate'
type: array
title: Tasks
description: List of tasks in the template
type: object
required:
- related_object_type
- name
- tasks
title: TaskTemplateCreate
TaskTemplateUpdate:
properties:
name:
anyOf:
- type: string
- type: 'null'
title: Name
description: Name of the task template
description:
anyOf:
- type: string
- type: 'null'
title: Description
description: Description of the task template
is_default:
anyOf:
- type: boolean
- type: 'null'
title: Is Default
description: Whether this is a default template
tasks:
anyOf:
- items:
$ref: '#/components/schemas/TemplateTaskUpdate'
type: array
- type: 'null'
title: Tasks
description: List of tasks in the template
type: object
title: TaskTemplateUpdate
RequiredActor:
type: string
enum:
- user
- either
title: RequiredActor
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
RelatedObjectType-Output:
type: string
enum:
- project
- graph
title: RelatedObjectType
securitySchemes:
APIKeyCookie:
type: apiKey
in: cookie
name: access_token
APIKeyHeader:
type: apiKey
in: header
name: X-API-Key