curl --request PUT \
--url https://api.mnemom.ai/v1/alignment/platform/{scope_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"card_version": "<string>",
"agent_id": "<string>",
"values": {
"declared": [
"<string>"
],
"definitions": {},
"conflicts_with": [
"<string>"
]
},
"autonomy": {
"bounded_actions": [
"<string>"
],
"escalation_triggers": [
{
"condition": "<string>",
"reason": "<string>"
}
],
"forbidden_actions": [
"<string>"
],
"max_autonomous_value": {
"amount": 123,
"currency": "<string>"
}
},
"audit": {
"retention_days": 123,
"queryable": true,
"trace_format": "<string>",
"query_endpoint": "<string>",
"storage": {
"location": "<string>"
}
},
"card_id": "<string>",
"issued_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"integrity": {},
"capabilities": {},
"enforcement": {
"forbidden_tools": [
{
"pattern": "<string>",
"reason": "<string>"
}
],
"fail_open": true,
"grace_period_hours": 123
},
"extensions": {},
"_composition": {
"canonical_id": "<string>",
"composed_at": "2023-11-07T05:31:56Z",
"scopes_applied": [
{
"scope": "<string>",
"version": 123,
"template_version": 123,
"card_id": "<string>"
}
],
"exemptions_applied": [
"<string>"
],
"source_card_id": "<string>",
"source_policy_id": "<string>"
}
}
'import requests
url = "https://api.mnemom.ai/v1/alignment/platform/{scope_id}"
payload = {
"card_version": "<string>",
"agent_id": "<string>",
"values": {
"declared": ["<string>"],
"definitions": {},
"conflicts_with": ["<string>"]
},
"autonomy": {
"bounded_actions": ["<string>"],
"escalation_triggers": [
{
"condition": "<string>",
"reason": "<string>"
}
],
"forbidden_actions": ["<string>"],
"max_autonomous_value": {
"amount": 123,
"currency": "<string>"
}
},
"audit": {
"retention_days": 123,
"queryable": True,
"trace_format": "<string>",
"query_endpoint": "<string>",
"storage": { "location": "<string>" }
},
"card_id": "<string>",
"issued_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"integrity": {},
"capabilities": {},
"enforcement": {
"forbidden_tools": [
{
"pattern": "<string>",
"reason": "<string>"
}
],
"fail_open": True,
"grace_period_hours": 123
},
"extensions": {},
"_composition": {
"canonical_id": "<string>",
"composed_at": "2023-11-07T05:31:56Z",
"scopes_applied": [
{
"scope": "<string>",
"version": 123,
"template_version": 123,
"card_id": "<string>"
}
],
"exemptions_applied": ["<string>"],
"source_card_id": "<string>",
"source_policy_id": "<string>"
}
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
card_version: '<string>',
agent_id: '<string>',
values: {declared: ['<string>'], definitions: {}, conflicts_with: ['<string>']},
autonomy: {
bounded_actions: ['<string>'],
escalation_triggers: [{condition: '<string>', reason: '<string>'}],
forbidden_actions: ['<string>'],
max_autonomous_value: {amount: 123, currency: '<string>'}
},
audit: {
retention_days: 123,
queryable: true,
trace_format: '<string>',
query_endpoint: '<string>',
storage: {location: '<string>'}
},
card_id: '<string>',
issued_at: '2023-11-07T05:31:56Z',
expires_at: '2023-11-07T05:31:56Z',
integrity: {},
capabilities: {},
enforcement: {
forbidden_tools: [{pattern: '<string>', reason: '<string>'}],
fail_open: true,
grace_period_hours: 123
},
extensions: {},
_composition: {
canonical_id: '<string>',
composed_at: '2023-11-07T05:31:56Z',
scopes_applied: [{scope: '<string>', version: 123, template_version: 123, card_id: '<string>'}],
exemptions_applied: ['<string>'],
source_card_id: '<string>',
source_policy_id: '<string>'
}
})
};
fetch('https://api.mnemom.ai/v1/alignment/platform/{scope_id}', 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.mnemom.ai/v1/alignment/platform/{scope_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'card_version' => '<string>',
'agent_id' => '<string>',
'values' => [
'declared' => [
'<string>'
],
'definitions' => [
],
'conflicts_with' => [
'<string>'
]
],
'autonomy' => [
'bounded_actions' => [
'<string>'
],
'escalation_triggers' => [
[
'condition' => '<string>',
'reason' => '<string>'
]
],
'forbidden_actions' => [
'<string>'
],
'max_autonomous_value' => [
'amount' => 123,
'currency' => '<string>'
]
],
'audit' => [
'retention_days' => 123,
'queryable' => true,
'trace_format' => '<string>',
'query_endpoint' => '<string>',
'storage' => [
'location' => '<string>'
]
],
'card_id' => '<string>',
'issued_at' => '2023-11-07T05:31:56Z',
'expires_at' => '2023-11-07T05:31:56Z',
'integrity' => [
],
'capabilities' => [
],
'enforcement' => [
'forbidden_tools' => [
[
'pattern' => '<string>',
'reason' => '<string>'
]
],
'fail_open' => true,
'grace_period_hours' => 123
],
'extensions' => [
],
'_composition' => [
'canonical_id' => '<string>',
'composed_at' => '2023-11-07T05:31:56Z',
'scopes_applied' => [
[
'scope' => '<string>',
'version' => 123,
'template_version' => 123,
'card_id' => '<string>'
]
],
'exemptions_applied' => [
'<string>'
],
'source_card_id' => '<string>',
'source_policy_id' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-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.mnemom.ai/v1/alignment/platform/{scope_id}"
payload := strings.NewReader("{\n \"card_version\": \"<string>\",\n \"agent_id\": \"<string>\",\n \"values\": {\n \"declared\": [\n \"<string>\"\n ],\n \"definitions\": {},\n \"conflicts_with\": [\n \"<string>\"\n ]\n },\n \"autonomy\": {\n \"bounded_actions\": [\n \"<string>\"\n ],\n \"escalation_triggers\": [\n {\n \"condition\": \"<string>\",\n \"reason\": \"<string>\"\n }\n ],\n \"forbidden_actions\": [\n \"<string>\"\n ],\n \"max_autonomous_value\": {\n \"amount\": 123,\n \"currency\": \"<string>\"\n }\n },\n \"audit\": {\n \"retention_days\": 123,\n \"queryable\": true,\n \"trace_format\": \"<string>\",\n \"query_endpoint\": \"<string>\",\n \"storage\": {\n \"location\": \"<string>\"\n }\n },\n \"card_id\": \"<string>\",\n \"issued_at\": \"2023-11-07T05:31:56Z\",\n \"expires_at\": \"2023-11-07T05:31:56Z\",\n \"integrity\": {},\n \"capabilities\": {},\n \"enforcement\": {\n \"forbidden_tools\": [\n {\n \"pattern\": \"<string>\",\n \"reason\": \"<string>\"\n }\n ],\n \"fail_open\": true,\n \"grace_period_hours\": 123\n },\n \"extensions\": {},\n \"_composition\": {\n \"canonical_id\": \"<string>\",\n \"composed_at\": \"2023-11-07T05:31:56Z\",\n \"scopes_applied\": [\n {\n \"scope\": \"<string>\",\n \"version\": 123,\n \"template_version\": 123,\n \"card_id\": \"<string>\"\n }\n ],\n \"exemptions_applied\": [\n \"<string>\"\n ],\n \"source_card_id\": \"<string>\",\n \"source_policy_id\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
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.put("https://api.mnemom.ai/v1/alignment/platform/{scope_id}")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"card_version\": \"<string>\",\n \"agent_id\": \"<string>\",\n \"values\": {\n \"declared\": [\n \"<string>\"\n ],\n \"definitions\": {},\n \"conflicts_with\": [\n \"<string>\"\n ]\n },\n \"autonomy\": {\n \"bounded_actions\": [\n \"<string>\"\n ],\n \"escalation_triggers\": [\n {\n \"condition\": \"<string>\",\n \"reason\": \"<string>\"\n }\n ],\n \"forbidden_actions\": [\n \"<string>\"\n ],\n \"max_autonomous_value\": {\n \"amount\": 123,\n \"currency\": \"<string>\"\n }\n },\n \"audit\": {\n \"retention_days\": 123,\n \"queryable\": true,\n \"trace_format\": \"<string>\",\n \"query_endpoint\": \"<string>\",\n \"storage\": {\n \"location\": \"<string>\"\n }\n },\n \"card_id\": \"<string>\",\n \"issued_at\": \"2023-11-07T05:31:56Z\",\n \"expires_at\": \"2023-11-07T05:31:56Z\",\n \"integrity\": {},\n \"capabilities\": {},\n \"enforcement\": {\n \"forbidden_tools\": [\n {\n \"pattern\": \"<string>\",\n \"reason\": \"<string>\"\n }\n ],\n \"fail_open\": true,\n \"grace_period_hours\": 123\n },\n \"extensions\": {},\n \"_composition\": {\n \"canonical_id\": \"<string>\",\n \"composed_at\": \"2023-11-07T05:31:56Z\",\n \"scopes_applied\": [\n {\n \"scope\": \"<string>\",\n \"version\": 123,\n \"template_version\": 123,\n \"card_id\": \"<string>\"\n }\n ],\n \"exemptions_applied\": [\n \"<string>\"\n ],\n \"source_card_id\": \"<string>\",\n \"source_policy_id\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mnemom.ai/v1/alignment/platform/{scope_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"card_version\": \"<string>\",\n \"agent_id\": \"<string>\",\n \"values\": {\n \"declared\": [\n \"<string>\"\n ],\n \"definitions\": {},\n \"conflicts_with\": [\n \"<string>\"\n ]\n },\n \"autonomy\": {\n \"bounded_actions\": [\n \"<string>\"\n ],\n \"escalation_triggers\": [\n {\n \"condition\": \"<string>\",\n \"reason\": \"<string>\"\n }\n ],\n \"forbidden_actions\": [\n \"<string>\"\n ],\n \"max_autonomous_value\": {\n \"amount\": 123,\n \"currency\": \"<string>\"\n }\n },\n \"audit\": {\n \"retention_days\": 123,\n \"queryable\": true,\n \"trace_format\": \"<string>\",\n \"query_endpoint\": \"<string>\",\n \"storage\": {\n \"location\": \"<string>\"\n }\n },\n \"card_id\": \"<string>\",\n \"issued_at\": \"2023-11-07T05:31:56Z\",\n \"expires_at\": \"2023-11-07T05:31:56Z\",\n \"integrity\": {},\n \"capabilities\": {},\n \"enforcement\": {\n \"forbidden_tools\": [\n {\n \"pattern\": \"<string>\",\n \"reason\": \"<string>\"\n }\n ],\n \"fail_open\": true,\n \"grace_period_hours\": 123\n },\n \"extensions\": {},\n \"_composition\": {\n \"canonical_id\": \"<string>\",\n \"composed_at\": \"2023-11-07T05:31:56Z\",\n \"scopes_applied\": [\n {\n \"scope\": \"<string>\",\n \"version\": 123,\n \"template_version\": 123,\n \"card_id\": \"<string>\"\n }\n ],\n \"exemptions_applied\": [\n \"<string>\"\n ],\n \"source_card_id\": \"<string>\",\n \"source_policy_id\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"card_version": "<string>",
"agent_id": "<string>",
"values": {
"declared": [
"<string>"
],
"definitions": {},
"conflicts_with": [
"<string>"
]
},
"autonomy": {
"bounded_actions": [
"<string>"
],
"escalation_triggers": [
{
"condition": "<string>",
"reason": "<string>"
}
],
"forbidden_actions": [
"<string>"
],
"max_autonomous_value": {
"amount": 123,
"currency": "<string>"
}
},
"audit": {
"retention_days": 123,
"queryable": true,
"trace_format": "<string>",
"query_endpoint": "<string>",
"storage": {
"location": "<string>"
}
},
"card_id": "<string>",
"issued_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"principal": {
"identifier": "<string>",
"escalation_contact": "<string>"
},
"conscience": {
"values": [
{
"content": "<string>",
"id": "<string>"
}
]
},
"integrity": {},
"capabilities": {},
"enforcement": {
"forbidden_tools": [
{
"pattern": "<string>",
"reason": "<string>"
}
],
"fail_open": true,
"grace_period_hours": 123
},
"extensions": {},
"_composition": {
"canonical_id": "<string>",
"composed_at": "2023-11-07T05:31:56Z",
"scopes_applied": [
{
"scope": "<string>",
"version": 123,
"template_version": 123,
"card_id": "<string>"
}
],
"exemptions_applied": [
"<string>"
],
"source_card_id": "<string>",
"source_policy_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}Publish or replace the alignment manifest
Accepts YAML (text/yaml, application/yaml) or JSON.
curl --request PUT \
--url https://api.mnemom.ai/v1/alignment/platform/{scope_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"card_version": "<string>",
"agent_id": "<string>",
"values": {
"declared": [
"<string>"
],
"definitions": {},
"conflicts_with": [
"<string>"
]
},
"autonomy": {
"bounded_actions": [
"<string>"
],
"escalation_triggers": [
{
"condition": "<string>",
"reason": "<string>"
}
],
"forbidden_actions": [
"<string>"
],
"max_autonomous_value": {
"amount": 123,
"currency": "<string>"
}
},
"audit": {
"retention_days": 123,
"queryable": true,
"trace_format": "<string>",
"query_endpoint": "<string>",
"storage": {
"location": "<string>"
}
},
"card_id": "<string>",
"issued_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"integrity": {},
"capabilities": {},
"enforcement": {
"forbidden_tools": [
{
"pattern": "<string>",
"reason": "<string>"
}
],
"fail_open": true,
"grace_period_hours": 123
},
"extensions": {},
"_composition": {
"canonical_id": "<string>",
"composed_at": "2023-11-07T05:31:56Z",
"scopes_applied": [
{
"scope": "<string>",
"version": 123,
"template_version": 123,
"card_id": "<string>"
}
],
"exemptions_applied": [
"<string>"
],
"source_card_id": "<string>",
"source_policy_id": "<string>"
}
}
'import requests
url = "https://api.mnemom.ai/v1/alignment/platform/{scope_id}"
payload = {
"card_version": "<string>",
"agent_id": "<string>",
"values": {
"declared": ["<string>"],
"definitions": {},
"conflicts_with": ["<string>"]
},
"autonomy": {
"bounded_actions": ["<string>"],
"escalation_triggers": [
{
"condition": "<string>",
"reason": "<string>"
}
],
"forbidden_actions": ["<string>"],
"max_autonomous_value": {
"amount": 123,
"currency": "<string>"
}
},
"audit": {
"retention_days": 123,
"queryable": True,
"trace_format": "<string>",
"query_endpoint": "<string>",
"storage": { "location": "<string>" }
},
"card_id": "<string>",
"issued_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"integrity": {},
"capabilities": {},
"enforcement": {
"forbidden_tools": [
{
"pattern": "<string>",
"reason": "<string>"
}
],
"fail_open": True,
"grace_period_hours": 123
},
"extensions": {},
"_composition": {
"canonical_id": "<string>",
"composed_at": "2023-11-07T05:31:56Z",
"scopes_applied": [
{
"scope": "<string>",
"version": 123,
"template_version": 123,
"card_id": "<string>"
}
],
"exemptions_applied": ["<string>"],
"source_card_id": "<string>",
"source_policy_id": "<string>"
}
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
card_version: '<string>',
agent_id: '<string>',
values: {declared: ['<string>'], definitions: {}, conflicts_with: ['<string>']},
autonomy: {
bounded_actions: ['<string>'],
escalation_triggers: [{condition: '<string>', reason: '<string>'}],
forbidden_actions: ['<string>'],
max_autonomous_value: {amount: 123, currency: '<string>'}
},
audit: {
retention_days: 123,
queryable: true,
trace_format: '<string>',
query_endpoint: '<string>',
storage: {location: '<string>'}
},
card_id: '<string>',
issued_at: '2023-11-07T05:31:56Z',
expires_at: '2023-11-07T05:31:56Z',
integrity: {},
capabilities: {},
enforcement: {
forbidden_tools: [{pattern: '<string>', reason: '<string>'}],
fail_open: true,
grace_period_hours: 123
},
extensions: {},
_composition: {
canonical_id: '<string>',
composed_at: '2023-11-07T05:31:56Z',
scopes_applied: [{scope: '<string>', version: 123, template_version: 123, card_id: '<string>'}],
exemptions_applied: ['<string>'],
source_card_id: '<string>',
source_policy_id: '<string>'
}
})
};
fetch('https://api.mnemom.ai/v1/alignment/platform/{scope_id}', 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.mnemom.ai/v1/alignment/platform/{scope_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'card_version' => '<string>',
'agent_id' => '<string>',
'values' => [
'declared' => [
'<string>'
],
'definitions' => [
],
'conflicts_with' => [
'<string>'
]
],
'autonomy' => [
'bounded_actions' => [
'<string>'
],
'escalation_triggers' => [
[
'condition' => '<string>',
'reason' => '<string>'
]
],
'forbidden_actions' => [
'<string>'
],
'max_autonomous_value' => [
'amount' => 123,
'currency' => '<string>'
]
],
'audit' => [
'retention_days' => 123,
'queryable' => true,
'trace_format' => '<string>',
'query_endpoint' => '<string>',
'storage' => [
'location' => '<string>'
]
],
'card_id' => '<string>',
'issued_at' => '2023-11-07T05:31:56Z',
'expires_at' => '2023-11-07T05:31:56Z',
'integrity' => [
],
'capabilities' => [
],
'enforcement' => [
'forbidden_tools' => [
[
'pattern' => '<string>',
'reason' => '<string>'
]
],
'fail_open' => true,
'grace_period_hours' => 123
],
'extensions' => [
],
'_composition' => [
'canonical_id' => '<string>',
'composed_at' => '2023-11-07T05:31:56Z',
'scopes_applied' => [
[
'scope' => '<string>',
'version' => 123,
'template_version' => 123,
'card_id' => '<string>'
]
],
'exemptions_applied' => [
'<string>'
],
'source_card_id' => '<string>',
'source_policy_id' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-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.mnemom.ai/v1/alignment/platform/{scope_id}"
payload := strings.NewReader("{\n \"card_version\": \"<string>\",\n \"agent_id\": \"<string>\",\n \"values\": {\n \"declared\": [\n \"<string>\"\n ],\n \"definitions\": {},\n \"conflicts_with\": [\n \"<string>\"\n ]\n },\n \"autonomy\": {\n \"bounded_actions\": [\n \"<string>\"\n ],\n \"escalation_triggers\": [\n {\n \"condition\": \"<string>\",\n \"reason\": \"<string>\"\n }\n ],\n \"forbidden_actions\": [\n \"<string>\"\n ],\n \"max_autonomous_value\": {\n \"amount\": 123,\n \"currency\": \"<string>\"\n }\n },\n \"audit\": {\n \"retention_days\": 123,\n \"queryable\": true,\n \"trace_format\": \"<string>\",\n \"query_endpoint\": \"<string>\",\n \"storage\": {\n \"location\": \"<string>\"\n }\n },\n \"card_id\": \"<string>\",\n \"issued_at\": \"2023-11-07T05:31:56Z\",\n \"expires_at\": \"2023-11-07T05:31:56Z\",\n \"integrity\": {},\n \"capabilities\": {},\n \"enforcement\": {\n \"forbidden_tools\": [\n {\n \"pattern\": \"<string>\",\n \"reason\": \"<string>\"\n }\n ],\n \"fail_open\": true,\n \"grace_period_hours\": 123\n },\n \"extensions\": {},\n \"_composition\": {\n \"canonical_id\": \"<string>\",\n \"composed_at\": \"2023-11-07T05:31:56Z\",\n \"scopes_applied\": [\n {\n \"scope\": \"<string>\",\n \"version\": 123,\n \"template_version\": 123,\n \"card_id\": \"<string>\"\n }\n ],\n \"exemptions_applied\": [\n \"<string>\"\n ],\n \"source_card_id\": \"<string>\",\n \"source_policy_id\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
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.put("https://api.mnemom.ai/v1/alignment/platform/{scope_id}")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"card_version\": \"<string>\",\n \"agent_id\": \"<string>\",\n \"values\": {\n \"declared\": [\n \"<string>\"\n ],\n \"definitions\": {},\n \"conflicts_with\": [\n \"<string>\"\n ]\n },\n \"autonomy\": {\n \"bounded_actions\": [\n \"<string>\"\n ],\n \"escalation_triggers\": [\n {\n \"condition\": \"<string>\",\n \"reason\": \"<string>\"\n }\n ],\n \"forbidden_actions\": [\n \"<string>\"\n ],\n \"max_autonomous_value\": {\n \"amount\": 123,\n \"currency\": \"<string>\"\n }\n },\n \"audit\": {\n \"retention_days\": 123,\n \"queryable\": true,\n \"trace_format\": \"<string>\",\n \"query_endpoint\": \"<string>\",\n \"storage\": {\n \"location\": \"<string>\"\n }\n },\n \"card_id\": \"<string>\",\n \"issued_at\": \"2023-11-07T05:31:56Z\",\n \"expires_at\": \"2023-11-07T05:31:56Z\",\n \"integrity\": {},\n \"capabilities\": {},\n \"enforcement\": {\n \"forbidden_tools\": [\n {\n \"pattern\": \"<string>\",\n \"reason\": \"<string>\"\n }\n ],\n \"fail_open\": true,\n \"grace_period_hours\": 123\n },\n \"extensions\": {},\n \"_composition\": {\n \"canonical_id\": \"<string>\",\n \"composed_at\": \"2023-11-07T05:31:56Z\",\n \"scopes_applied\": [\n {\n \"scope\": \"<string>\",\n \"version\": 123,\n \"template_version\": 123,\n \"card_id\": \"<string>\"\n }\n ],\n \"exemptions_applied\": [\n \"<string>\"\n ],\n \"source_card_id\": \"<string>\",\n \"source_policy_id\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mnemom.ai/v1/alignment/platform/{scope_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"card_version\": \"<string>\",\n \"agent_id\": \"<string>\",\n \"values\": {\n \"declared\": [\n \"<string>\"\n ],\n \"definitions\": {},\n \"conflicts_with\": [\n \"<string>\"\n ]\n },\n \"autonomy\": {\n \"bounded_actions\": [\n \"<string>\"\n ],\n \"escalation_triggers\": [\n {\n \"condition\": \"<string>\",\n \"reason\": \"<string>\"\n }\n ],\n \"forbidden_actions\": [\n \"<string>\"\n ],\n \"max_autonomous_value\": {\n \"amount\": 123,\n \"currency\": \"<string>\"\n }\n },\n \"audit\": {\n \"retention_days\": 123,\n \"queryable\": true,\n \"trace_format\": \"<string>\",\n \"query_endpoint\": \"<string>\",\n \"storage\": {\n \"location\": \"<string>\"\n }\n },\n \"card_id\": \"<string>\",\n \"issued_at\": \"2023-11-07T05:31:56Z\",\n \"expires_at\": \"2023-11-07T05:31:56Z\",\n \"integrity\": {},\n \"capabilities\": {},\n \"enforcement\": {\n \"forbidden_tools\": [\n {\n \"pattern\": \"<string>\",\n \"reason\": \"<string>\"\n }\n ],\n \"fail_open\": true,\n \"grace_period_hours\": 123\n },\n \"extensions\": {},\n \"_composition\": {\n \"canonical_id\": \"<string>\",\n \"composed_at\": \"2023-11-07T05:31:56Z\",\n \"scopes_applied\": [\n {\n \"scope\": \"<string>\",\n \"version\": 123,\n \"template_version\": 123,\n \"card_id\": \"<string>\"\n }\n ],\n \"exemptions_applied\": [\n \"<string>\"\n ],\n \"source_card_id\": \"<string>\",\n \"source_policy_id\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"card_version": "<string>",
"agent_id": "<string>",
"values": {
"declared": [
"<string>"
],
"definitions": {},
"conflicts_with": [
"<string>"
]
},
"autonomy": {
"bounded_actions": [
"<string>"
],
"escalation_triggers": [
{
"condition": "<string>",
"reason": "<string>"
}
],
"forbidden_actions": [
"<string>"
],
"max_autonomous_value": {
"amount": 123,
"currency": "<string>"
}
},
"audit": {
"retention_days": 123,
"queryable": true,
"trace_format": "<string>",
"query_endpoint": "<string>",
"storage": {
"location": "<string>"
}
},
"card_id": "<string>",
"issued_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"principal": {
"identifier": "<string>",
"escalation_contact": "<string>"
},
"conscience": {
"values": [
{
"content": "<string>",
"id": "<string>"
}
]
},
"integrity": {},
"capabilities": {},
"enforcement": {
"forbidden_tools": [
{
"pattern": "<string>",
"reason": "<string>"
}
],
"fail_open": true,
"grace_period_hours": 123
},
"extensions": {},
"_composition": {
"canonical_id": "<string>",
"composed_at": "2023-11-07T05:31:56Z",
"scopes_applied": [
{
"scope": "<string>",
"version": 123,
"template_version": 123,
"card_id": "<string>"
}
],
"exemptions_applied": [
"<string>"
],
"source_card_id": "<string>",
"source_policy_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}Authorizations
Supabase JWT token in Authorization: Bearer header
Headers
Client-supplied idempotency token. Replays within 24 hours return the stored result. See ADR-023.
1 - 128Path Parameters
Always default — the platform scope is a singleton; any other value returns 400 with care-framed guidance pointing at default.
default Body
Unified alignment card (ADR-008). Authored in YAML or JSON; composed server-side with platform defaults, org template, and active exemptions before storage.
Card schema version (e.g. 0.5.0).
Target agent id. On PUT, server overwrites to match the URL path.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Card row id. Server-assigned on PUT (ac-{uuid}).
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
System-managed block describing which scope sources merged into the canonical card. Only returned when ?include_composition=true.
Show child attributes
Show child attributes
Response
Composed canonical card after the write.
Unified alignment card (ADR-008). Authored in YAML or JSON; composed server-side with platform defaults, org template, and active exemptions before storage.
Card schema version (e.g. 0.5.0).
Target agent id. On PUT, server overwrites to match the URL path.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Card row id. Server-assigned on PUT (ac-{uuid}).
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
System-managed block describing which scope sources merged into the canonical card. Only returned when ?include_composition=true.
Show child attributes
Show child attributes