curl --request POST \
--url https://api.eddy.engineer/admin/keys \
--header 'Content-Type: application/json' \
--header 'x-admin-token: <api-key>' \
--data '
{
"name": "<string>",
"llm_gateway_token": "<string>",
"preset": "isaac",
"scopes": [
"<string>"
]
}
'import requests
url = "https://api.eddy.engineer/admin/keys"
payload = {
"name": "<string>",
"llm_gateway_token": "<string>",
"preset": "isaac",
"scopes": ["<string>"]
}
headers = {
"x-admin-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-admin-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
llm_gateway_token: '<string>',
preset: 'isaac',
scopes: ['<string>']
})
};
fetch('https://api.eddy.engineer/admin/keys', 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.eddy.engineer/admin/keys",
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' => '<string>',
'llm_gateway_token' => '<string>',
'preset' => 'isaac',
'scopes' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-admin-token: <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.eddy.engineer/admin/keys"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"llm_gateway_token\": \"<string>\",\n \"preset\": \"isaac\",\n \"scopes\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-admin-token", "<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.eddy.engineer/admin/keys")
.header("x-admin-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"llm_gateway_token\": \"<string>\",\n \"preset\": \"isaac\",\n \"scopes\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/admin/keys")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-admin-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"llm_gateway_token\": \"<string>\",\n \"preset\": \"isaac\",\n \"scopes\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"key": "ss_9f2c…",
"preset": "<string>",
"record": {
"created_at_unix_ms": 123,
"key_hash": "<string>",
"limits": {
"requests_per_minute": 500000,
"burst": 50000
},
"llm_gateway": true,
"llm_gateway_sealed": true,
"name": "<string>",
"owner_uid": "<string>",
"revoked": true,
"scopes": [
"<string>"
],
"webhook": {
"signed": true,
"url": "<string>"
}
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Create an API key
Returns the plaintext key exactly once; only its BLAKE3 hash is stored. llm_gateway_token (admins only) gives the key — the tenant — its own LLM-gateway credential: /v1/llm.* then call the gateway as that tenant and list the models its team was granted (see /admin/keys/{key_hash}/llm-gateway). scopes (AS1) limits the key to the operations whose declared effects (x-eddy-effect) its <family>:<effect> grants cover. preset (HE13.3) names a fixed scope list in place of scopes: isaac is the smallest set the Isaac integrations need (interop:read, interop:write, interop:compute, reports:read: the interop import, export, calibrate and audit calls and the report behind each result key; no solve family, no project or blob write, nothing under /admin). The key is stored with those scopes and the answer echoes preset; naming both preset and scopes, or an unknown preset, is 400 INVALID_PRESET. The token is stored sealed (AES-256-GCM, bound to the key’s hash); with no seal key on the deployment a token is refused (503 SEAL_UNCONFIGURED) and a key without one still mints. limits (admins only, else 403) sets the key’s request-rate limit (see /admin/keys/{key_hash}/limits); out of bounds is 400 INVALID_LIMITS.
curl --request POST \
--url https://api.eddy.engineer/admin/keys \
--header 'Content-Type: application/json' \
--header 'x-admin-token: <api-key>' \
--data '
{
"name": "<string>",
"llm_gateway_token": "<string>",
"preset": "isaac",
"scopes": [
"<string>"
]
}
'import requests
url = "https://api.eddy.engineer/admin/keys"
payload = {
"name": "<string>",
"llm_gateway_token": "<string>",
"preset": "isaac",
"scopes": ["<string>"]
}
headers = {
"x-admin-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-admin-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
llm_gateway_token: '<string>',
preset: 'isaac',
scopes: ['<string>']
})
};
fetch('https://api.eddy.engineer/admin/keys', 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.eddy.engineer/admin/keys",
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' => '<string>',
'llm_gateway_token' => '<string>',
'preset' => 'isaac',
'scopes' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-admin-token: <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.eddy.engineer/admin/keys"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"llm_gateway_token\": \"<string>\",\n \"preset\": \"isaac\",\n \"scopes\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-admin-token", "<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.eddy.engineer/admin/keys")
.header("x-admin-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"llm_gateway_token\": \"<string>\",\n \"preset\": \"isaac\",\n \"scopes\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/admin/keys")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-admin-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"llm_gateway_token\": \"<string>\",\n \"preset\": \"isaac\",\n \"scopes\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"key": "ss_9f2c…",
"preset": "<string>",
"record": {
"created_at_unix_ms": 123,
"key_hash": "<string>",
"limits": {
"requests_per_minute": 500000,
"burst": 50000
},
"llm_gateway": true,
"llm_gateway_sealed": true,
"name": "<string>",
"owner_uid": "<string>",
"revoked": true,
"scopes": [
"<string>"
],
"webhook": {
"signed": true,
"url": "<string>"
}
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Body
AS1: the key's grants as : scopes (e.g. fea:compute, solve:costly, *:read; effects read, compute, costly, write, admin, external, stream or *). A scoped key may call an operation only when its scopes grant every effect the operation declares (x-eddy-effect); otherwise 403 SCOPE_DENIED. Omit for a full-trust key. A malformed scope refuses the mint (400 INVALID_SCOPE).
^[a-z0-9_*-]+:[a-z*]+$