curl --request POST \
--url https://beta.getsales.io/id/v1/api/subscription-allocations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Team-SID: <api-key>' \
--data '
{
"subscription_sid": "<string>",
"team_sid": "<string>",
"linkedin_sender_profiles": 1,
"email_inboxes": 1,
"credits_per_month": 1,
"whitelabel": 0
}
'import requests
url = "https://beta.getsales.io/id/v1/api/subscription-allocations"
payload = {
"subscription_sid": "<string>",
"team_sid": "<string>",
"linkedin_sender_profiles": 1,
"email_inboxes": 1,
"credits_per_month": 1,
"whitelabel": 0
}
headers = {
"Authorization": "Bearer <token>",
"Team-SID": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'Team-SID': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
subscription_sid: '<string>',
team_sid: '<string>',
linkedin_sender_profiles: 1,
email_inboxes: 1,
credits_per_month: 1,
whitelabel: 0
})
};
fetch('https://beta.getsales.io/id/v1/api/subscription-allocations', 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://beta.getsales.io/id/v1/api/subscription-allocations",
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([
'subscription_sid' => '<string>',
'team_sid' => '<string>',
'linkedin_sender_profiles' => 1,
'email_inboxes' => 1,
'credits_per_month' => 1,
'whitelabel' => 0
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Team-SID: <api-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://beta.getsales.io/id/v1/api/subscription-allocations"
payload := strings.NewReader("{\n \"subscription_sid\": \"<string>\",\n \"team_sid\": \"<string>\",\n \"linkedin_sender_profiles\": 1,\n \"email_inboxes\": 1,\n \"credits_per_month\": 1,\n \"whitelabel\": 0\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Team-SID", "<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://beta.getsales.io/id/v1/api/subscription-allocations")
.header("Authorization", "Bearer <token>")
.header("Team-SID", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"subscription_sid\": \"<string>\",\n \"team_sid\": \"<string>\",\n \"linkedin_sender_profiles\": 1,\n \"email_inboxes\": 1,\n \"credits_per_month\": 1,\n \"whitelabel\": 0\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://beta.getsales.io/id/v1/api/subscription-allocations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Team-SID"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"subscription_sid\": \"<string>\",\n \"team_sid\": \"<string>\",\n \"linkedin_sender_profiles\": 1,\n \"email_inboxes\": 1,\n \"credits_per_month\": 1,\n \"whitelabel\": 0\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"operation": "create",
"item": {
"sid": "<string>",
"subscription_sid": "<string>",
"team_sid": "<string>",
"created_by": {
"actor_type": "user",
"actor_sid": "<string>",
"team_sid": "<string>",
"permissions": {},
"actor_name": "<string>",
"oauth_client_sid": "<string>",
"reason": "<string>",
"cluster_id": 123,
"trace_id": "<string>"
},
"linkedin_sender_profiles": 123,
"email_inboxes": 123,
"credits_per_month": 123,
"whitelabel": 123,
"created_at": "<string>",
"updated_at": "<string>",
"deleted_at": "<string>"
},
"already_exists": true,
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
}
}{
"success": false,
"error": {
"code": "validation_failed",
"message": "<string>",
"recoverable": true,
"suggestion": "<string>",
"field_errors": {},
"blockers": [
{
"type": "<string>",
"severity": "hard",
"description": "<string>",
"entity_sid": "<string>",
"resolution": "<string>",
"resolution_hint": "<string>",
"count": 123
}
],
"context": {}
},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
}
}{
"success": false,
"error": {
"code": "validation_failed",
"message": "<string>",
"recoverable": true,
"suggestion": "<string>",
"field_errors": {},
"blockers": [
{
"type": "<string>",
"severity": "hard",
"description": "<string>",
"entity_sid": "<string>",
"resolution": "<string>",
"resolution_hint": "<string>",
"count": 123
}
],
"context": {}
},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
}
}Create subscription allocation
Hand a workspace a share of a subscription’s pool: the workspace turns active with these quantities as its limits, the credits due so far this period are issued, and a lapsed trial share is superseded. The caller must be the buyer (403 not_subscription_owner) and a partner account (403 partner_only; a standard account’s one share follows its plan on its own); the workspace must be the buyer’s own or a client workspace of a brand the buyer’s team owns (403 team_not_reachable). For every key the shares may not exceed the pool (409 pool_exceeded with key, pool, allocated_elsewhere, requested); a workspace already on a live share is 409 team_already_allocated; a canceled subscription takes no share. Quantities omitted are 0.
Contract:
- MCP tool
create_subscription_allocation, registry packagemcp.id/subscription_allocations, mountid.partner. - Operation
create, response envelopecreate. - Flags: none.
curl --request POST \
--url https://beta.getsales.io/id/v1/api/subscription-allocations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Team-SID: <api-key>' \
--data '
{
"subscription_sid": "<string>",
"team_sid": "<string>",
"linkedin_sender_profiles": 1,
"email_inboxes": 1,
"credits_per_month": 1,
"whitelabel": 0
}
'import requests
url = "https://beta.getsales.io/id/v1/api/subscription-allocations"
payload = {
"subscription_sid": "<string>",
"team_sid": "<string>",
"linkedin_sender_profiles": 1,
"email_inboxes": 1,
"credits_per_month": 1,
"whitelabel": 0
}
headers = {
"Authorization": "Bearer <token>",
"Team-SID": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'Team-SID': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
subscription_sid: '<string>',
team_sid: '<string>',
linkedin_sender_profiles: 1,
email_inboxes: 1,
credits_per_month: 1,
whitelabel: 0
})
};
fetch('https://beta.getsales.io/id/v1/api/subscription-allocations', 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://beta.getsales.io/id/v1/api/subscription-allocations",
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([
'subscription_sid' => '<string>',
'team_sid' => '<string>',
'linkedin_sender_profiles' => 1,
'email_inboxes' => 1,
'credits_per_month' => 1,
'whitelabel' => 0
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Team-SID: <api-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://beta.getsales.io/id/v1/api/subscription-allocations"
payload := strings.NewReader("{\n \"subscription_sid\": \"<string>\",\n \"team_sid\": \"<string>\",\n \"linkedin_sender_profiles\": 1,\n \"email_inboxes\": 1,\n \"credits_per_month\": 1,\n \"whitelabel\": 0\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Team-SID", "<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://beta.getsales.io/id/v1/api/subscription-allocations")
.header("Authorization", "Bearer <token>")
.header("Team-SID", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"subscription_sid\": \"<string>\",\n \"team_sid\": \"<string>\",\n \"linkedin_sender_profiles\": 1,\n \"email_inboxes\": 1,\n \"credits_per_month\": 1,\n \"whitelabel\": 0\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://beta.getsales.io/id/v1/api/subscription-allocations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Team-SID"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"subscription_sid\": \"<string>\",\n \"team_sid\": \"<string>\",\n \"linkedin_sender_profiles\": 1,\n \"email_inboxes\": 1,\n \"credits_per_month\": 1,\n \"whitelabel\": 0\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"operation": "create",
"item": {
"sid": "<string>",
"subscription_sid": "<string>",
"team_sid": "<string>",
"created_by": {
"actor_type": "user",
"actor_sid": "<string>",
"team_sid": "<string>",
"permissions": {},
"actor_name": "<string>",
"oauth_client_sid": "<string>",
"reason": "<string>",
"cluster_id": 123,
"trace_id": "<string>"
},
"linkedin_sender_profiles": 123,
"email_inboxes": 123,
"credits_per_month": 123,
"whitelabel": 123,
"created_at": "<string>",
"updated_at": "<string>",
"deleted_at": "<string>"
},
"already_exists": true,
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
}
}{
"success": false,
"error": {
"code": "validation_failed",
"message": "<string>",
"recoverable": true,
"suggestion": "<string>",
"field_errors": {},
"blockers": [
{
"type": "<string>",
"severity": "hard",
"description": "<string>",
"entity_sid": "<string>",
"resolution": "<string>",
"resolution_hint": "<string>",
"count": 123
}
],
"context": {}
},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
}
}{
"success": false,
"error": {
"code": "validation_failed",
"message": "<string>",
"recoverable": true,
"suggestion": "<string>",
"field_errors": {},
"blockers": [
{
"type": "<string>",
"severity": "hard",
"description": "<string>",
"entity_sid": "<string>",
"resolution": "<string>",
"resolution_hint": "<string>",
"count": 123
}
],
"context": {}
},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
}
}Authorizations
Access token issued by gs.service.id. Its access_identity claim carries team_sid, actor_sid and actor_type, and that team scope is authoritative.
Team scope for tokens that do not carry one. Ignored when the token already names a team.
Body
Request body of create_subscription_allocation.
The subscription whose pool is shared (bl_sb_...); the caller must be its buyer.
18^bl_sb_The workspace that gets the share (ts_tm_...): the buyer's own, or a client workspace of a brand the buyer's team owns.
18^ts_tm_LinkedIn sender profiles (accounts) for the workspace; default 0.
x >= 0Inboxes for the workspace; default 0.
x >= 0Platform credits granted every month; default 0.
x >= 01 to let the workspace register brands; default 0.
0 <= x <= 1