Create a group
curl --request POST \
--url https://api.sleekplan.com/v2/groups \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "<string>",
"name": "<string>",
"type": "company",
"weight": 1,
"mrr": 0,
"meta": {}
}
'import requests
url = "https://api.sleekplan.com/v2/groups"
payload = {
"id": "<string>",
"name": "<string>",
"type": "company",
"weight": 1,
"mrr": 0,
"meta": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({id: '<string>', name: '<string>', type: 'company', weight: 1, mrr: 0, meta: {}})
};
fetch('https://api.sleekplan.com/v2/groups', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sleekplan.com/v2/groups",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'id' => '<string>',
'name' => '<string>',
'type' => 'company',
'weight' => 1,
'mrr' => 0,
'meta' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.sleekplan.com/v2/groups"
payload := strings.NewReader("{\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"type\": \"company\",\n \"weight\": 1,\n \"mrr\": 0,\n \"meta\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.sleekplan.com/v2/groups")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"type\": \"company\",\n \"weight\": 1,\n \"mrr\": 0,\n \"meta\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sleekplan.com/v2/groups")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"type\": \"company\",\n \"weight\": 1,\n \"mrr\": 0,\n \"meta\": {}\n}"
response = http.request(request)
puts response.read_body{
"status": "<string>",
"data": {
"group_id": 123,
"data_id": "<string>",
"name": "<string>",
"type": "company",
"weight": 123,
"mrr": 123,
"meta": {},
"stats": {
"users": 123,
"feedback": 123,
"votes": 123,
"comments": 123,
"satisfaction": 123,
"promoter": 123,
"active": "<string>"
},
"created": "2026-09-17 14:02:11",
"updated": "2026-09-17 14:05:44"
}
}{
"status": "<string>",
"data": {
"key": "validation_error",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}{
"status": "error",
"data": {
"key": "<string>",
"message": "<string>"
}
}{
"status": "error",
"data": {
"key": "<string>",
"message": "<string>"
}
}{
"status": "error",
"data": {
"key": "<string>",
"message": "<string>"
}
}{
"status": "error",
"data": {
"key": "<string>",
"message": "<string>"
}
}{
"status": "error",
"data": {
"key": "<string>",
"message": "<string>"
}
}Group
Create a group
POST
/
groups
Create a group
curl --request POST \
--url https://api.sleekplan.com/v2/groups \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "<string>",
"name": "<string>",
"type": "company",
"weight": 1,
"mrr": 0,
"meta": {}
}
'import requests
url = "https://api.sleekplan.com/v2/groups"
payload = {
"id": "<string>",
"name": "<string>",
"type": "company",
"weight": 1,
"mrr": 0,
"meta": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({id: '<string>', name: '<string>', type: 'company', weight: 1, mrr: 0, meta: {}})
};
fetch('https://api.sleekplan.com/v2/groups', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sleekplan.com/v2/groups",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'id' => '<string>',
'name' => '<string>',
'type' => 'company',
'weight' => 1,
'mrr' => 0,
'meta' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.sleekplan.com/v2/groups"
payload := strings.NewReader("{\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"type\": \"company\",\n \"weight\": 1,\n \"mrr\": 0,\n \"meta\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.sleekplan.com/v2/groups")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"type\": \"company\",\n \"weight\": 1,\n \"mrr\": 0,\n \"meta\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sleekplan.com/v2/groups")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"type\": \"company\",\n \"weight\": 1,\n \"mrr\": 0,\n \"meta\": {}\n}"
response = http.request(request)
puts response.read_body{
"status": "<string>",
"data": {
"group_id": 123,
"data_id": "<string>",
"name": "<string>",
"type": "company",
"weight": 123,
"mrr": 123,
"meta": {},
"stats": {
"users": 123,
"feedback": 123,
"votes": 123,
"comments": 123,
"satisfaction": 123,
"promoter": 123,
"active": "<string>"
},
"created": "2026-09-17 14:02:11",
"updated": "2026-09-17 14:05:44"
}
}{
"status": "<string>",
"data": {
"key": "validation_error",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}{
"status": "error",
"data": {
"key": "<string>",
"message": "<string>"
}
}{
"status": "error",
"data": {
"key": "<string>",
"message": "<string>"
}
}{
"status": "error",
"data": {
"key": "<string>",
"message": "<string>"
}
}{
"status": "error",
"data": {
"key": "<string>",
"message": "<string>"
}
}{
"status": "error",
"data": {
"key": "<string>",
"message": "<string>"
}
}Authorizations
Authorization: Bearer YOUR_API_KEY. /v2 accepts no other method.
Body
application/json
Your own identifier for this group, unique per workspace. data_id is accepted as an alias.
Maximum string length:
255Display name in the dashboard. Falls back to id.
Maximum string length:
255Free-form label, lowercased and hyphenated, e.g. company, team, key-account. Capped at 10 distinct types per workspace; beyond the cap a new type falls back to company rather than erroring.
Maximum string length:
64How important this group is to you. Clamped to the range.
Required range:
0 <= x <= 10Monthly recurring revenue in whole units of your currency. No minor units, no conversion.
Flat key/value custom data, string values only. Up to 20 keys, each key and value up to 255 characters.
Was this page helpful?
