Jump to
Create routine POST
/routines/Create a new routine with the provided configuration. The routine will be validated before saving.
Request
URL
POST /routines/Headers
X-Service-Token: YOUR_SERVICE_TOKEN
Content-Type: application/jsonRequest body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Name of the routine |
description | string | Yes | Description of the routine |
operations | array | Yes | List of operations to execute |
parameters | array | No | List of parameters for the routine (default: []) |
incognito | boolean | No | Whether to use incognito mode (default: true) |
is_public | boolean | No | Whether the routine is publicly viewable (default: false) |
tags | array | No | List of tags for the routine |
is_mcp_tool_designated | boolean | No | Whether to register as MCP tool (default: true) |
Request body example
Response
Success response (201) example
Auto-generated fields
The following fields are automatically generated by the server:
| Field | Description |
|---|---|
id | Unique routine ID in format Routine_<uuid> |
created_at | Unix timestamp when the routine was created |
updated_at | Unix timestamp when the routine was last updated |
created_by | User ID from authentication |
organization_id | Organization ID from authentication |
Error responses
- 400 Bad Request: Invalid routine configuration or validation failed
- 401 Unauthorized: Missing or invalid authentication token