Change how the Anthropic key is used
curl --request PATCH \
--url https://api.getoneprofile.ai/provider-keys/claude/settings/ \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"monthly_limit_usd": 123,
"paused": true,
"use_for_columns": true,
"use_for_research": true,
"use_for_writing": true
}
'import requests
url = "https://api.getoneprofile.ai/provider-keys/claude/settings/"
payload = {
"monthly_limit_usd": 123,
"paused": True,
"use_for_columns": True,
"use_for_research": True,
"use_for_writing": True
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
monthly_limit_usd: 123,
paused: true,
use_for_columns: true,
use_for_research: true,
use_for_writing: true
})
};
fetch('https://api.getoneprofile.ai/provider-keys/claude/settings/', 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.getoneprofile.ai/provider-keys/claude/settings/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'monthly_limit_usd' => 123,
'paused' => true,
'use_for_columns' => true,
'use_for_research' => true,
'use_for_writing' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <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://api.getoneprofile.ai/provider-keys/claude/settings/"
payload := strings.NewReader("{\n \"monthly_limit_usd\": 123,\n \"paused\": true,\n \"use_for_columns\": true,\n \"use_for_research\": true,\n \"use_for_writing\": true\n}")
req, _ := http.NewRequest("PATCH", url, payload)
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.patch("https://api.getoneprofile.ai/provider-keys/claude/settings/")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"monthly_limit_usd\": 123,\n \"paused\": true,\n \"use_for_columns\": true,\n \"use_for_research\": true,\n \"use_for_writing\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/provider-keys/claude/settings/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"monthly_limit_usd\": 123,\n \"paused\": true,\n \"use_for_columns\": true,\n \"use_for_research\": true,\n \"use_for_writing\": true\n}"
response = http.request(request)
puts response.read_body{
"can_change": true,
"key": {
"added_by_display_name": "<string>",
"checked_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"created_by_user_id": "<string>",
"credits_remaining": 123,
"health": "unchecked",
"health_detail": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"integration_type": "<string>",
"key_hint": "<string>",
"provider_name": "<string>",
"running_low": true,
"updated_at": "2023-11-07T05:31:56Z",
"updated_by_user_id": "<string>",
"month_cost_usd": 0,
"month_rows": 0
},
"key_fee_credits": 123,
"keys": [
{
"added_by_display_name": "<string>",
"checked_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"created_by_user_id": "<string>",
"credits_remaining": 123,
"health": "unchecked",
"health_detail": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"integration_type": "<string>",
"key_hint": "<string>",
"provider_name": "<string>",
"running_low": true,
"updated_at": "2023-11-07T05:31:56Z",
"updated_by_user_id": "<string>",
"month_cost_usd": 0,
"month_rows": 0
}
],
"limit_lifts_at": "2023-11-07T05:31:56Z",
"limit_reached": true,
"max_keys": 123,
"month": {
"cost_usd": 123,
"month": "2023-12-25",
"rows": 123
},
"monthly_limit_usd": 123,
"paid": true,
"paused": true,
"requests_per_minute": 123,
"slow": true,
"use_for_columns": true,
"use_for_research": true,
"use_for_writing": true
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}provider-keys
Change how the Anthropic key is used
Pause or resume the key (paused pays all AI work with credits; the key stays saved), switch an area on or off (use_for_columns, use_for_research, use_for_writing), or set the monthly limit in whole dollars (null for none). A field left out stays as it is. Workspace admins only.
PATCH
/
provider-keys
/
claude
/
settings
/
Change how the Anthropic key is used
curl --request PATCH \
--url https://api.getoneprofile.ai/provider-keys/claude/settings/ \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"monthly_limit_usd": 123,
"paused": true,
"use_for_columns": true,
"use_for_research": true,
"use_for_writing": true
}
'import requests
url = "https://api.getoneprofile.ai/provider-keys/claude/settings/"
payload = {
"monthly_limit_usd": 123,
"paused": True,
"use_for_columns": True,
"use_for_research": True,
"use_for_writing": True
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
monthly_limit_usd: 123,
paused: true,
use_for_columns: true,
use_for_research: true,
use_for_writing: true
})
};
fetch('https://api.getoneprofile.ai/provider-keys/claude/settings/', 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.getoneprofile.ai/provider-keys/claude/settings/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'monthly_limit_usd' => 123,
'paused' => true,
'use_for_columns' => true,
'use_for_research' => true,
'use_for_writing' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <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://api.getoneprofile.ai/provider-keys/claude/settings/"
payload := strings.NewReader("{\n \"monthly_limit_usd\": 123,\n \"paused\": true,\n \"use_for_columns\": true,\n \"use_for_research\": true,\n \"use_for_writing\": true\n}")
req, _ := http.NewRequest("PATCH", url, payload)
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.patch("https://api.getoneprofile.ai/provider-keys/claude/settings/")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"monthly_limit_usd\": 123,\n \"paused\": true,\n \"use_for_columns\": true,\n \"use_for_research\": true,\n \"use_for_writing\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/provider-keys/claude/settings/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"monthly_limit_usd\": 123,\n \"paused\": true,\n \"use_for_columns\": true,\n \"use_for_research\": true,\n \"use_for_writing\": true\n}"
response = http.request(request)
puts response.read_body{
"can_change": true,
"key": {
"added_by_display_name": "<string>",
"checked_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"created_by_user_id": "<string>",
"credits_remaining": 123,
"health": "unchecked",
"health_detail": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"integration_type": "<string>",
"key_hint": "<string>",
"provider_name": "<string>",
"running_low": true,
"updated_at": "2023-11-07T05:31:56Z",
"updated_by_user_id": "<string>",
"month_cost_usd": 0,
"month_rows": 0
},
"key_fee_credits": 123,
"keys": [
{
"added_by_display_name": "<string>",
"checked_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"created_by_user_id": "<string>",
"credits_remaining": 123,
"health": "unchecked",
"health_detail": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"integration_type": "<string>",
"key_hint": "<string>",
"provider_name": "<string>",
"running_low": true,
"updated_at": "2023-11-07T05:31:56Z",
"updated_by_user_id": "<string>",
"month_cost_usd": 0,
"month_rows": 0
}
],
"limit_lifts_at": "2023-11-07T05:31:56Z",
"limit_reached": true,
"max_keys": 123,
"month": {
"cost_usd": 123,
"month": "2023-12-25",
"rows": 123
},
"monthly_limit_usd": 123,
"paid": true,
"paused": true,
"requests_per_minute": 123,
"slow": true,
"use_for_columns": true,
"use_for_research": true,
"use_for_writing": true
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Body
application/json
Response
Successful Response
The workspace's own Anthropic keys and how its paid AI work uses them.
Never a key: its last four characters. With a key, the AI work that costs credits (the areas switched on) runs on one of the working keys, picked at random, and a row costs the key fee plus the web pages it read.
Was this page helpful?