Skip to main content
GET
/
relay
/
v1
/
policies
/
skill-restrictions
Get applicable skill restriction policies
curl --request GET \
  --url https://api.swarmd.ai/relay/v1/policies/skill-restrictions \
  --header 'Authorization: Bearer <token>'
{
  "tenantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "sourceAgentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "sinkAgentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "restrictions": [
    {
      "policyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "policyVersion": "<string>",
      "policyName": "<string>",
      "mode": "ALLOWLIST",
      "skillIds": [
        "<string>"
      ],
      "skillNames": [
        "<string>"
      ],
      "skillTags": [
        "<string>"
      ],
      "bindingLevel": "TENANT",
      "priority": 123
    }
  ]
}

Authorizations

Authorization
string
header
required

JWT token (USER, AGENT, or SERVICE auth)

Query Parameters

tenantId
string<uuid>
required

Tenant ID

sourceAgentId
string<uuid>
required

Source agent ID (the calling agent)

sinkAgentId
string<uuid>
required

Sink agent ID (the target agent)

Response

200 - application/json

OK

tenantId
string<uuid>
sourceAgentId
string<uuid>
sinkAgentId
string<uuid>
restrictions
object[]