Create an assistant
curl --request POST \
--url https://api.eu.blackmountain.io/v1/assistants \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Contract reviewer",
"instructions": "You review supplier contracts. List risks by severity and quote the clause.",
"description": "Reviews commercial terms and flags risks",
"model": "claude-sonnet-4-5",
"visibility": "private",
"scopeId": "team_4Fd8sQ"
}
'import requests
url = "https://api.eu.blackmountain.io/v1/assistants"
payload = {
"name": "Contract reviewer",
"instructions": "You review supplier contracts. List risks by severity and quote the clause.",
"description": "Reviews commercial terms and flags risks",
"model": "claude-sonnet-4-5",
"visibility": "private",
"scopeId": "team_4Fd8sQ"
}
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({
name: 'Contract reviewer',
instructions: 'You review supplier contracts. List risks by severity and quote the clause.',
description: 'Reviews commercial terms and flags risks',
model: 'claude-sonnet-4-5',
visibility: 'private',
scopeId: 'team_4Fd8sQ'
})
};
fetch('https://api.eu.blackmountain.io/v1/assistants', 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.eu.blackmountain.io/v1/assistants",
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' => 'Contract reviewer',
'instructions' => 'You review supplier contracts. List risks by severity and quote the clause.',
'description' => 'Reviews commercial terms and flags risks',
'model' => 'claude-sonnet-4-5',
'visibility' => 'private',
'scopeId' => 'team_4Fd8sQ'
]),
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.eu.blackmountain.io/v1/assistants"
payload := strings.NewReader("{\n \"name\": \"Contract reviewer\",\n \"instructions\": \"You review supplier contracts. List risks by severity and quote the clause.\",\n \"description\": \"Reviews commercial terms and flags risks\",\n \"model\": \"claude-sonnet-4-5\",\n \"visibility\": \"private\",\n \"scopeId\": \"team_4Fd8sQ\"\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.eu.blackmountain.io/v1/assistants")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Contract reviewer\",\n \"instructions\": \"You review supplier contracts. List risks by severity and quote the clause.\",\n \"description\": \"Reviews commercial terms and flags risks\",\n \"model\": \"claude-sonnet-4-5\",\n \"visibility\": \"private\",\n \"scopeId\": \"team_4Fd8sQ\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eu.blackmountain.io/v1/assistants")
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 \"name\": \"Contract reviewer\",\n \"instructions\": \"You review supplier contracts. List risks by severity and quote the clause.\",\n \"description\": \"Reviews commercial terms and flags risks\",\n \"model\": \"claude-sonnet-4-5\",\n \"visibility\": \"private\",\n \"scopeId\": \"team_4Fd8sQ\"\n}"
response = http.request(request)
puts response.read_body{
"id": "asst_7Hq2kLm9",
"name": "Contract reviewer",
"description": "Reviews commercial terms and flags risks",
"instructions": "You review supplier contracts. List risks by severity and quote the clause.",
"model": "claude-sonnet-4-5",
"visibility": "private",
"canEdit": true,
"createdAt": "2026-10-20T14:03:11Z"
}{
"error": {
"code": "invalid_request",
"message": "`content` is required."
}
}{
"error": {
"code": "unauthorized",
"message": "Invalid API key."
}
}{
"error": {
"code": "forbidden",
"message": "You need the Manager role in this team."
}
}Assistenten
Assistenten erstellen
Creates an assistant. Sharing with a team, workspace or organization requires the Owner or Manager role in that scope.
POST
/
assistants
Create an assistant
curl --request POST \
--url https://api.eu.blackmountain.io/v1/assistants \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Contract reviewer",
"instructions": "You review supplier contracts. List risks by severity and quote the clause.",
"description": "Reviews commercial terms and flags risks",
"model": "claude-sonnet-4-5",
"visibility": "private",
"scopeId": "team_4Fd8sQ"
}
'import requests
url = "https://api.eu.blackmountain.io/v1/assistants"
payload = {
"name": "Contract reviewer",
"instructions": "You review supplier contracts. List risks by severity and quote the clause.",
"description": "Reviews commercial terms and flags risks",
"model": "claude-sonnet-4-5",
"visibility": "private",
"scopeId": "team_4Fd8sQ"
}
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({
name: 'Contract reviewer',
instructions: 'You review supplier contracts. List risks by severity and quote the clause.',
description: 'Reviews commercial terms and flags risks',
model: 'claude-sonnet-4-5',
visibility: 'private',
scopeId: 'team_4Fd8sQ'
})
};
fetch('https://api.eu.blackmountain.io/v1/assistants', 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.eu.blackmountain.io/v1/assistants",
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' => 'Contract reviewer',
'instructions' => 'You review supplier contracts. List risks by severity and quote the clause.',
'description' => 'Reviews commercial terms and flags risks',
'model' => 'claude-sonnet-4-5',
'visibility' => 'private',
'scopeId' => 'team_4Fd8sQ'
]),
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.eu.blackmountain.io/v1/assistants"
payload := strings.NewReader("{\n \"name\": \"Contract reviewer\",\n \"instructions\": \"You review supplier contracts. List risks by severity and quote the clause.\",\n \"description\": \"Reviews commercial terms and flags risks\",\n \"model\": \"claude-sonnet-4-5\",\n \"visibility\": \"private\",\n \"scopeId\": \"team_4Fd8sQ\"\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.eu.blackmountain.io/v1/assistants")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Contract reviewer\",\n \"instructions\": \"You review supplier contracts. List risks by severity and quote the clause.\",\n \"description\": \"Reviews commercial terms and flags risks\",\n \"model\": \"claude-sonnet-4-5\",\n \"visibility\": \"private\",\n \"scopeId\": \"team_4Fd8sQ\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eu.blackmountain.io/v1/assistants")
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 \"name\": \"Contract reviewer\",\n \"instructions\": \"You review supplier contracts. List risks by severity and quote the clause.\",\n \"description\": \"Reviews commercial terms and flags risks\",\n \"model\": \"claude-sonnet-4-5\",\n \"visibility\": \"private\",\n \"scopeId\": \"team_4Fd8sQ\"\n}"
response = http.request(request)
puts response.read_body{
"id": "asst_7Hq2kLm9",
"name": "Contract reviewer",
"description": "Reviews commercial terms and flags risks",
"instructions": "You review supplier contracts. List risks by severity and quote the clause.",
"model": "claude-sonnet-4-5",
"visibility": "private",
"canEdit": true,
"createdAt": "2026-10-20T14:03:11Z"
}{
"error": {
"code": "invalid_request",
"message": "`content` is required."
}
}{
"error": {
"code": "unauthorized",
"message": "Invalid API key."
}
}{
"error": {
"code": "forbidden",
"message": "You need the Manager role in this team."
}
}Autorisierungen
Your 48° API key, for example bm_live_...
Body
application/json
Beispiel:
"Contract reviewer"
Beispiel:
"You review supplier contracts. List risks by severity and quote the clause."
Beispiel:
"Reviews commercial terms and flags risks"
Beispiel:
"claude-sonnet-4-5"
Verfügbare Optionen:
private, team, workspace, organization ID of the team, workspace or organization. Required unless visibility is private.
Beispiel:
"team_4Fd8sQ"
Antwort
The new assistant
Beispiel:
"asst_7Hq2kLm9"
Beispiel:
"Contract reviewer"
Beispiel:
"Reviews commercial terms and flags risks"
Beispiel:
"You review supplier contracts. List risks by severity and quote the clause."
Beispiel:
"claude-sonnet-4-5"
Verfügbare Optionen:
private, team, workspace, organization true if the API key's user may change this assistant
Beispiel:
true
Beispiel:
"2026-10-20T14:03:11Z"
War diese Seite hilfreich?

