Read the pool policy
const url = 'https://api.katara.com/katara/v1/orgs/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/environments/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/plexus/policy';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.katara.com/katara/v1/orgs/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/environments/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/plexus/policy \ --header 'Authorization: Bearer <token>'Requires org:read. Version 0 is the defaults before anyone wrote one.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Header Parameters
Section titled “Header Parameters”Optional for reads after sign-in. Use the UUID of the account that loaded the application. A different current cookie account returns account_changed before the handler runs. Session bearer and API key clients do not require this header.
Responses
Section titled “Responses”Successful request
The pool policy in force. Version 0 is the defaults: fallback, Katara’s hosted classifier, pictures allowed.
object
Who the pool serves. With both lists empty, the whole organization. A member in none of the teams, and work in none of the projects, is routed as if the organization had no pool: to Katara’s own models in fallback, refused with no_capacity in strict. A service account’s key is admitted through a project only.
object
Teams whose members may use the pool.
Projects whose keys and agent runs may use the pool.
Shares add up to at most 100. With none the pool is first come, first served.
A part of the pool’s concurrent requests reserved for one team or project. A caller within its share is served first; one over it, or with none, takes only what no share reserved, so it never takes a slot reserved for another team. When none is free, a strict pool answers a retryable no_capacity and a fallback pool hands the request to Katara’s own models.
object
Example
{ "mode": "strict", "classifier": "hosted", "tier": "light", "shares": [ { "kind": "team" } ]}Account_changed: reload and review with the signed-in account.
default
Section titled “default”Request error
object
object
Stable; branch on it. Any operation can answer invalid_request, with param naming the refused field when there is one; human_session_required, when an API key, service account or workload calls an operation only a signed-in person may perform; reauthentication_required, when a person’s sign-in is too old for the operation; permission_denied; route_not_found and method_not_allowed, when no operation matches the path or method; and feature_unavailable, when the operation’s service is not enabled on this deployment.
The request field a refusal is about, such as the agent_id or run_id query parameter; null when the refusal is not about one field.
Example
{ "error": { "action": "sign_in" }}