Create a client workspace
curl --request POST \
--url https://api.sendler.ai/v1/client-workspaces \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--header 'idempotency-key: <idempotency-key>' \
--data '
{
"name": "Acme Corp",
"note": "Retainer client",
"monthlyLimit": 500,
"startingBudget": 1000,
"seatCap": 3,
"invitations": [
{
"email": "ann@example.com",
"permissions": [
"ALLOW_UNIBOX"
]
}
]
}
'import requests
url = "https://api.sendler.ai/v1/client-workspaces"
payload = {
"name": "Acme Corp",
"note": "Retainer client",
"monthlyLimit": 500,
"startingBudget": 1000,
"seatCap": 3,
"invitations": [
{
"email": "ann@example.com",
"permissions": ["ALLOW_UNIBOX"]
}
]
}
headers = {
"idempotency-key": "<idempotency-key>",
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'idempotency-key': '<idempotency-key>',
'X-API-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: 'Acme Corp',
note: 'Retainer client',
monthlyLimit: 500,
startingBudget: 1000,
seatCap: 3,
invitations: [{email: 'ann@example.com', permissions: ['ALLOW_UNIBOX']}]
})
};
fetch('https://api.sendler.ai/v1/client-workspaces', 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.sendler.ai/v1/client-workspaces",
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([
'name' => 'Acme Corp',
'note' => 'Retainer client',
'monthlyLimit' => 500,
'startingBudget' => 1000,
'seatCap' => 3,
'invitations' => [
[
'email' => 'ann@example.com',
'permissions' => [
'ALLOW_UNIBOX'
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>",
"idempotency-key: <idempotency-key>"
],
]);
$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.sendler.ai/v1/client-workspaces"
payload := strings.NewReader("{\n \"name\": \"Acme Corp\",\n \"note\": \"Retainer client\",\n \"monthlyLimit\": 500,\n \"startingBudget\": 1000,\n \"seatCap\": 3,\n \"invitations\": [\n {\n \"email\": \"ann@example.com\",\n \"permissions\": [\n \"ALLOW_UNIBOX\"\n ]\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("idempotency-key", "<idempotency-key>")
req.Header.Add("X-API-Key", "<api-key>")
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.sendler.ai/v1/client-workspaces")
.header("idempotency-key", "<idempotency-key>")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Acme Corp\",\n \"note\": \"Retainer client\",\n \"monthlyLimit\": 500,\n \"startingBudget\": 1000,\n \"seatCap\": 3,\n \"invitations\": [\n {\n \"email\": \"ann@example.com\",\n \"permissions\": [\n \"ALLOW_UNIBOX\"\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sendler.ai/v1/client-workspaces")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["idempotency-key"] = '<idempotency-key>'
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Acme Corp\",\n \"note\": \"Retainer client\",\n \"monthlyLimit\": 500,\n \"startingBudget\": 1000,\n \"seatCap\": 3,\n \"invitations\": [\n {\n \"email\": \"ann@example.com\",\n \"permissions\": [\n \"ALLOW_UNIBOX\"\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "cmb1x2y3z0000abcd",
"name": "Acme Corp",
"note": "Retainer client",
"creditMode": "NONE",
"limit": 500,
"used": 120,
"remaining": 380,
"exhaustedAt": null,
"seatCap": 3,
"seatsUsed": 1,
"members": 2,
"invited": 1,
"failedInvitations": []
}Client Workspaces
Create Client Workspace
Create a client workspace with a credit rule and seat cap, and invite people to it.
POST
/
v1
/
client-workspaces
Create a client workspace
curl --request POST \
--url https://api.sendler.ai/v1/client-workspaces \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--header 'idempotency-key: <idempotency-key>' \
--data '
{
"name": "Acme Corp",
"note": "Retainer client",
"monthlyLimit": 500,
"startingBudget": 1000,
"seatCap": 3,
"invitations": [
{
"email": "ann@example.com",
"permissions": [
"ALLOW_UNIBOX"
]
}
]
}
'import requests
url = "https://api.sendler.ai/v1/client-workspaces"
payload = {
"name": "Acme Corp",
"note": "Retainer client",
"monthlyLimit": 500,
"startingBudget": 1000,
"seatCap": 3,
"invitations": [
{
"email": "ann@example.com",
"permissions": ["ALLOW_UNIBOX"]
}
]
}
headers = {
"idempotency-key": "<idempotency-key>",
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'idempotency-key': '<idempotency-key>',
'X-API-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: 'Acme Corp',
note: 'Retainer client',
monthlyLimit: 500,
startingBudget: 1000,
seatCap: 3,
invitations: [{email: 'ann@example.com', permissions: ['ALLOW_UNIBOX']}]
})
};
fetch('https://api.sendler.ai/v1/client-workspaces', 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.sendler.ai/v1/client-workspaces",
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([
'name' => 'Acme Corp',
'note' => 'Retainer client',
'monthlyLimit' => 500,
'startingBudget' => 1000,
'seatCap' => 3,
'invitations' => [
[
'email' => 'ann@example.com',
'permissions' => [
'ALLOW_UNIBOX'
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>",
"idempotency-key: <idempotency-key>"
],
]);
$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.sendler.ai/v1/client-workspaces"
payload := strings.NewReader("{\n \"name\": \"Acme Corp\",\n \"note\": \"Retainer client\",\n \"monthlyLimit\": 500,\n \"startingBudget\": 1000,\n \"seatCap\": 3,\n \"invitations\": [\n {\n \"email\": \"ann@example.com\",\n \"permissions\": [\n \"ALLOW_UNIBOX\"\n ]\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("idempotency-key", "<idempotency-key>")
req.Header.Add("X-API-Key", "<api-key>")
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.sendler.ai/v1/client-workspaces")
.header("idempotency-key", "<idempotency-key>")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Acme Corp\",\n \"note\": \"Retainer client\",\n \"monthlyLimit\": 500,\n \"startingBudget\": 1000,\n \"seatCap\": 3,\n \"invitations\": [\n {\n \"email\": \"ann@example.com\",\n \"permissions\": [\n \"ALLOW_UNIBOX\"\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sendler.ai/v1/client-workspaces")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["idempotency-key"] = '<idempotency-key>'
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Acme Corp\",\n \"note\": \"Retainer client\",\n \"monthlyLimit\": 500,\n \"startingBudget\": 1000,\n \"seatCap\": 3,\n \"invitations\": [\n {\n \"email\": \"ann@example.com\",\n \"permissions\": [\n \"ALLOW_UNIBOX\"\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "cmb1x2y3z0000abcd",
"name": "Acme Corp",
"note": "Retainer client",
"creditMode": "NONE",
"limit": 500,
"used": 120,
"remaining": 380,
"exhaustedAt": null,
"seatCap": 3,
"seatsUsed": 1,
"members": 2,
"invited": 1,
"failedInvitations": []
}Requires
client_workspaces:manage. Requires the master of an active personal (agency) workspace. A key created in a client workspace, or by a non-master, cannot use the client workspace endpoints. If the personal workspace becomes inactive, its keys lose client workspace access.
Idempotency-Key is required
Send anIdempotency-Key header. A retry with the same key returns the same workspace instead of creating a second one. A request without the header is rejected with 400.
Request body
creditMode:NONE,MONTHLY(withmonthlyLimit) orFIXED(withstartingBudget).seatCap: the most LinkedIn senders the workspace can connect;nullor omitted means no cap.invitations: optional people to invite asADMINorMEMBER.
403. The body rejects unknown properties with 400, so a typo in a field name fails instead of being ignored.
The workspace is created first, then the invitations are sent. An invitation that fails does not undo the create: it is listed in failedInvitations, and you can retry it with Invite to Client Workspace.Authorizations
Body
application/json