Skip to main content
POST
Create New Group

Create Group

Create a new user group for organizing users and managing access permissions.

Endpoint

Description

This endpoint allows administrators to create new user groups. Groups are used to organize users, manage permissions, and control access to different parts of the system. You can specify the group name, description, and metadata during creation.

Authentication

Required: API Key with admin privileges

Request Body

Example Request

Success Response

Status Code: 201 Created

Response Fields

Example Usage

JavaScript

Python

cURL

Error Responses

400 Bad Request

401 Unauthorized

403 Forbidden

409 Conflict

429 Too Many Requests

Use Cases

  • User Organization: Create groups to organize users by department or function
  • Access Control: Establish groups for managing permissions and access
  • Team Management: Create groups for different teams or projects
  • Reporting: Organize users for reporting and analytics
  • Integration: Create groups for third-party system integration

Rate Limits

  • Default: 50 requests per minute
  • Daily: 5,000 requests per day
  • Monthly: 150,000 requests per month

Notes

  • This endpoint is only accessible by administrators
  • Required Fields: Both name and description are required
  • User Assignment: Can assign users to the group during creation
  • Status: Defaults to “Active” if not specified
  • Validation: User IDs are validated before assignment
  • Flat Response: Response is not nested under data object
  • The group is immediately available for use after creation

Authorizations

Authorization
string
header
required

API key authentication using Bearer token format. Example: Authorization: Bearer sk-your-api-key-here

Body

application/json
name
string
required

Group name

Example:

"Engineering Team"

description
string
required

Group description

Example:

"Software engineering team"

users
string[]

Array of user IDs to add to the group

Example:
status
enum<string>
default:Active

Group status

Available options:
Active,
Inactive
Example:

"Active"

Response

Group created successfully

success
boolean
Example:

true

message
string
Example:

"Group created successfully"

group
object