Create a group
POST
/groups
const url = 'https://localhost:3000/api/v1/groups';const options = { method: 'POST', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"color":"#a855f7","icon":"bot","name":"Claude Code","owner":"personal"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://localhost:3000/api/v1/groups \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "color": "#a855f7", "icon": "bot", "name": "Claude Code", "owner": "personal" }'Creates a new group for organizing triggers. The optional owner (“personal” or “tenant:
Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”Group details
Media typeapplication/json
object
color
required
string
Example
#a855f7icon
required
string
Example
botname
required
string
Example
Claude Codeowner
string
Example
personalResponses
Section titled “Responses”Group created
Media typeapplication/json
object
color
required
string
created_at
required
string format: date-time
icon
required
string
id
required
string format: uuid
name
required
string
owner_id
required
string format: uuid
owner_name
Organization name, only set by owner=all
string
owner_type
required
string
total_events
required
integer
trigger_count
required
integer
updated_at
required
string format: date-time
Example
{ "owner_name": "Acme"}Invalid request
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}Unauthorized
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}Not a member of this tenant or insufficient permissions
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}Name already exists
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}Internal error
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}