Syndai Docs
Policy

Agent rules

Use a key with only read scopes. Your customer_id is in the reply to Get the calling API key.

GET
/api/v1/coding/repos/{repository_id}/agent-rules

What Syndai and the project's agents may do without asking, row by row. Owners and admins; anyone else gets 404.

Authorization

CustomerApiKey
headerAuthorizationBearer <API Key>

Customer API key sent as a bearer token

Path Parameters

repository_id*string
Formatuuid

Response Body

Request fulfilled, document follows

application/json
  1. response
level?string
Default"ask"
rules*array<>
Example Request
curl -X GET 'https://api.syndai.ai/api/v1/coding/repos/497f6eca-6276-4993-bfeb-53cbbbba6f08/agent-rules'
Example Response
{  "level": "ask",  "rules": [    {      "custom_tool_id": "ee324563-c6f2-47e0-b512-683b3bbc5b59",      "effect": "string",      "exception": false,      "expires_at": "string",      "locked": true,      "reverted_at": "string",      "rule": "allow",      "title": "string",      "tool": "string"    }  ]}
Was this page helpful?