Integration Categories
API for managing integration template categories
Categories allow you to organize integration templates in the Automation Hub marketplace. Each template can be assigned to multiple categories, which can then be used to create custom tabs and filters in the marketplace widget.
Overview
Categories are global/system-wide resources
Admin-only access for create/update/delete operations
All authenticated users can read categories
Templates can belong to multiple categories
Only integration templates and drafts can have categories
Deleting a category removes it from all associated templates
List Categories
GET http://[API-URL]/categories
Get all categories. Available to all authenticated users.
curl -XGET "http://[API-URL]/categories" \
-H "Authorization: Bearer [ACCESS_TOKEN]"[
{
"id": "5f8a7b2c3d4e5f6a7b8c9d0e",
"name": "CRM",
"description": "Customer relationship management integrations",
"created": 1678901234567,
"mtime": 1678901234567
},
{
"id": "5f8a7b2c3d4e5f6a7b8c9d0f",
"name": "Marketing",
"description": "Marketing automation and analytics tools",
"created": 1678901234568,
"mtime": 1678901234568
}
]Get Category
GET http://[API-URL]/categories/:categoryId
Get details of a specific category. Available to all authenticated users.
Create Category
POST http://[API-URL]/categories
Create a new category. Admin token required.
Request Body
name*
string
Category name (1-100 characters), must be unique
description
string
Category description (max 500 characters)
Update Category
PUT http://[API-URL]/categories/:categoryId
Update an existing category. Admin token required.
Request Body
name
string
Updated category name (1-100 characters)
description
string
Updated description (max 500 characters)
Delete Category
DELETE http://[API-URL]/categories/:categoryId
Delete a category. Admin token required. This will automatically remove the category from all templates that reference it.
Assigning Categories to Templates
Categories are assigned to integration templates through the Flow API. When creating or updating a flow, you can specify categories in the categories array.
Create Flow with Categories
POST http://[API-URL]/flows
Update Flow Categories
PUT http://[API-URL]/flows/:flowId
Get Flow with Categories
GET http://[API-URL]/flows/:flowId
Category Restrictions
Category Validation
When assigning categories to a template, the API validates:
Category Existence: All category IDs must reference existing categories
Flow Type: The flow must be an integration template or draft
Array Format: Categories must be provided as an array of category IDs
Validation Example
Use Cases
Marketplace Organization
Categories are primarily used to organize templates in the Automation Hub marketplace:
Create categories for your use cases (CRM, Marketing, Finance, etc.)
Assign templates to relevant categories
Configure marketplace tabs in Hub Settings to display templates by category
End users browse templates organized by category in the marketplace widget
Example Workflow
Audit Logging
All category operations are automatically logged in the audit trail:
Create:
"Create category: [name]"Update:
"Update category: [name]"Delete:
"Delete category: [name]"
Each log entry includes:
Operation type (create/update/delete)
Before and after state (for updates)
Timestamp and performing user
See the Audit Logs documentation for more information.
Was this helpful?
