curl --request POST \
--url https://api.sidenet.ai/v1/tool-providers/{id}/grants \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"org_id": "2b9d7c31-8e4f-4a2b-9d61-77c0a3f5e812"
}
'import requests
url = "https://api.sidenet.ai/v1/tool-providers/{id}/grants"
payload = { "org_id": "2b9d7c31-8e4f-4a2b-9d61-77c0a3f5e812" }
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({org_id: '2b9d7c31-8e4f-4a2b-9d61-77c0a3f5e812'})
};
fetch('https://api.sidenet.ai/v1/tool-providers/{id}/grants', 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.sidenet.ai/v1/tool-providers/{id}/grants",
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([
'org_id' => '2b9d7c31-8e4f-4a2b-9d61-77c0a3f5e812'
]),
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.sidenet.ai/v1/tool-providers/{id}/grants"
payload := strings.NewReader("{\n \"org_id\": \"2b9d7c31-8e4f-4a2b-9d61-77c0a3f5e812\"\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.sidenet.ai/v1/tool-providers/{id}/grants")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"org_id\": \"2b9d7c31-8e4f-4a2b-9d61-77c0a3f5e812\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sidenet.ai/v1/tool-providers/{id}/grants")
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 \"org_id\": \"2b9d7c31-8e4f-4a2b-9d61-77c0a3f5e812\"\n}"
response = http.request(request)
puts response.read_body{
"grant": {
"id": "5e0c9a47-1f3d-4b82-a6c5-90d2e7b41f38",
"provider_id": "8d3b1a75-6c02-4e59-b84f-27a9d5e10c63",
"org_id": "2b9d7c31-8e4f-4a2b-9d61-77c0a3f5e812",
"org_name": "Hotel Group X",
"granted_at": "2026-11-05T09:12:44.000Z"
}
}{
"grant": {
"id": "5e0c9a47-1f3d-4b82-a6c5-90d2e7b41f38",
"provider_id": "8d3b1a75-6c02-4e59-b84f-27a9d5e10c63",
"org_id": "2b9d7c31-8e4f-4a2b-9d61-77c0a3f5e812",
"org_name": "Hotel Group X",
"granted_at": "2026-11-05T09:12:44.000Z"
}
}Grant tool provider
Platform organization only, on a provider it shares (share = platform_created or public): lets one organization use the provider’s stored credential. Without a grant a sharing organization lists the provider and its tools but every call answers no credential for provider X unless the caller brings a credential of its own. The grant holds no secret: the credential stays with the owner and is read on each call, so rotating it or revoking the grant applies on the next call. A caller’s own credential (tools_auth, runtimeAuth) still wins over the grant. Idempotent: granting twice returns the existing grant with 200. Refused with 422 on a provider that requires per-user credentials (require_runtime_auth), on a private provider, and for an organization the provider’s share scope does not reach.
curl --request POST \
--url https://api.sidenet.ai/v1/tool-providers/{id}/grants \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"org_id": "2b9d7c31-8e4f-4a2b-9d61-77c0a3f5e812"
}
'import requests
url = "https://api.sidenet.ai/v1/tool-providers/{id}/grants"
payload = { "org_id": "2b9d7c31-8e4f-4a2b-9d61-77c0a3f5e812" }
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({org_id: '2b9d7c31-8e4f-4a2b-9d61-77c0a3f5e812'})
};
fetch('https://api.sidenet.ai/v1/tool-providers/{id}/grants', 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.sidenet.ai/v1/tool-providers/{id}/grants",
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([
'org_id' => '2b9d7c31-8e4f-4a2b-9d61-77c0a3f5e812'
]),
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.sidenet.ai/v1/tool-providers/{id}/grants"
payload := strings.NewReader("{\n \"org_id\": \"2b9d7c31-8e4f-4a2b-9d61-77c0a3f5e812\"\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.sidenet.ai/v1/tool-providers/{id}/grants")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"org_id\": \"2b9d7c31-8e4f-4a2b-9d61-77c0a3f5e812\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sidenet.ai/v1/tool-providers/{id}/grants")
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 \"org_id\": \"2b9d7c31-8e4f-4a2b-9d61-77c0a3f5e812\"\n}"
response = http.request(request)
puts response.read_body{
"grant": {
"id": "5e0c9a47-1f3d-4b82-a6c5-90d2e7b41f38",
"provider_id": "8d3b1a75-6c02-4e59-b84f-27a9d5e10c63",
"org_id": "2b9d7c31-8e4f-4a2b-9d61-77c0a3f5e812",
"org_name": "Hotel Group X",
"granted_at": "2026-11-05T09:12:44.000Z"
}
}{
"grant": {
"id": "5e0c9a47-1f3d-4b82-a6c5-90d2e7b41f38",
"provider_id": "8d3b1a75-6c02-4e59-b84f-27a9d5e10c63",
"org_id": "2b9d7c31-8e4f-4a2b-9d61-77c0a3f5e812",
"org_name": "Hotel Group X",
"granted_at": "2026-11-05T09:12:44.000Z"
}
}