List groups
GET
/groups
const url = 'https://localhost:3000/api/v1/groups';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://localhost:3000/api/v1/groups \ --header 'Authorization: <Authorization>'Returns all groups for the authenticated account with trigger and event counts. owner=all returns the personal groups and those of every organization the account is a member of (an API key needs tenant:read on it), with owner_name naming the organization.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”owner
string
Scope the list to an owner workspace: ‘personal’, ‘tenant:
Responses
Section titled “Responses”List of groups
Media typeapplication/json
Array<object>
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 owner filter
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
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"}