Skip to main content
GET
List the groups on the instance

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

category
enum<string>

The category of the group, only custom groups can be created from admin, private and company groups are created automatically

  • company - Company
  • private - Private
  • custom - Custom
Available options:
company,
custom,
private
company_id
integer
company_name
string
name
string
ordering
enum<string>

Order the results by name, created_at or updated_at. Prefix the field with - for descending order (e.g. -created_at). Defaults to name; entries sharing a name are ordered newest-first.

Available options:
-created_at,
-name,
-updated_at,
created_at,
name,
updated_at
page
integer

A page number within the paginated result set.

page_size
integer

Number of results to return per page.

user_id
integer

Response

List of groups with pagination

count
integer
required
Example:

123

results
object[]
required
next
string<uri> | null
Example:

"http://api.example.org/accounts/?page=4"

previous
string<uri> | null
Example:

"http://api.example.org/accounts/?page=2"