Skip to main content
GET
/
orgs
/
{orgId}
/
agents
/
{agentId}
/
security-policy
cURL
curl --request GET \
  --url https://api.useanima.sh/v1/orgs/{orgId}/agents/{agentId}/security-policy \
  --header 'Authorization: Bearer <token>'
{
  "agentId": "<string>",
  "policy": {
    "scanLevel": "off",
    "injectionScanEnabled": false,
    "autoApproveBelow": "medium",
    "allowedDomains": [],
    "blockedPatterns": [],
    "rateLimitOverrides": {
      "emailsPerHour": 1,
      "smsPerHour": 1
    }
  }
}

Authorizations

Authorization
string
header
required

JWT Bearer token obtained from authentication. Pass as: Authorization: Bearer

Path Parameters

orgId
string
required
agentId
string
required

Response

200 - application/json

OK

Result of a security policy update

agentId
string
required

Agent identifier the policy was applied to

policy
object
required

The updated security policy