ReferenceGuardrails
Create a guardrail set
Makes a named set of rules.
POST
secretKeyheader
AuthorizationBearer <sk_live_… or sk_test_… (a prefix and 40 base62 characters)>A secret key from the dashboard, sent as Authorization: Bearer sk_live_…. Live keys run real, charged calls; test keys (sk_test_…) run calls of at most 60 seconds, 20 a day per organization, never charged. Each key sees only its own env's calls, meetings, webhooks, memories and analytics. Publishable keys (pk_…) are refused.
application/json- body
Example
{ "name": "Money", "rules": [ "Never discuss competitors' prices.", "Never promise refunds." ]}name*stringLength
1 <= length <= 80rules*array<>1 to 50 rules, each one line of at most 300 characters. Repeats (any case) are dropped.
Items
1 <= items <= 50The new set.
application/json- response
Example
{ "id": "grd_8Vb3Np6XqL1sKw9TfM4c", "name": "Money", "rules": [ "Never discuss competitors' prices.", "Never promise refunds." ], "character_ids": [ "chr_4fT9kQ2mXw7LbN3pZs8V" ], "created_unix": 1793300000, "updated_unix": 1793300000}id*GuardrailSetIdMatch
^grd_[0-9A-Za-z]{20}$Example
"grd_8Vb3Np6XqL1sKw9TfM4c"name*stringLength
1 <= length <= 80rules*array<>1 to 50 rules, each one line of at most 300 characters. Repeats (any case) are dropped.
Items
1 <= items <= 50character_ids*array<>created_unix*UnixUnix seconds, UTC.
Format
int64Example
1793300000updated_unix*UnixUnix seconds, UTC.
Format
int64Example
1793300000curl -X POST 'https://api.daxov.com/v1/guardrails' \ -H 'Content-Type: application/json' \ -d '{ "name": "Money", "rules": [ "Never discuss competitors'\'' prices.", "Never promise refunds." ]}'Example Response
{ "id": "grd_8Vb3Np6XqL1sKw9TfM4c", "name": "Money", "rules": [ "Never discuss competitors' prices.", "Never promise refunds." ], "character_ids": [ "chr_4fT9kQ2mXw7LbN3pZs8V" ], "created_unix": 1793300000, "updated_unix": 1793300000}