EUrouter

Settings

Read and update organization policies and plugin settings through the EUrouter API with a management key.

OpenAPI JSON

List the monthly budgets

GET
/api/v1/settings/budgets

Returns every monthly EUR budget of the organization, its workspaces and its members, with what each has spent this calendar month (UTC). Only organization owners and admins can read them.

Authentication: Requires an organization-wide management key. Read-only management keys are accepted.

Authorization

organizationManagementKey
AuthorizationBearer <token>

Requires organization-wide access. Management key from Settings → Management keys. Format: eur_mgmt_<public-id>.<secret>. Read-only management keys support GET and HEAD only.

In: header

Response Body

application/json

curl -X GET "https://api.eurouter.ai/api/v1/settings/budgets"
{
  "data": {
    "month": "string",
    "budgets": [
      {
        "level": "org",
        "id": "string",
        "monthly_limit_eur": "string",
        "spent_eur": "string",
        "revision": -9007199254740991
      }
    ]
  }
}

Set the monthly budget of the organization

PUT
/api/v1/settings/budgets/organization

Sets or removes the monthly EUR cap on everything the organization spends. A request that would take this calendar month (UTC) over it is refused with a 402. Only organization owners and admins can change it.

Authentication: Requires an organization-wide management key. Read-only management keys cannot use this endpoint.

Authorization

organizationManagementKey
AuthorizationBearer <token>

Requires organization-wide access. Management key from Settings → Management keys. Format: eur_mgmt_<public-id>.<secret>. Read-only management keys support GET and HEAD only.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X PUT "https://api.eurouter.ai/api/v1/settings/budgets/organization" \  -H "Content-Type: application/json" \  -d '{    "monthly_limit_eur": "string"  }'
{
  "data": {
    "level": "org",
    "id": "string",
    "monthly_limit_eur": "string",
    "revision": -9007199254740991
  }
}

Set the monthly budget of a workspace

PUT
/api/v1/settings/budgets/workspaces/{workspaceId}

Sets or removes the monthly EUR cap on what requests in one workspace spend. A request that would take this calendar month (UTC) over it is refused with a 402. Only organization owners and admins can change it.

Authentication: Requires an organization-wide management key. Read-only management keys cannot use this endpoint.

Authorization

organizationManagementKey
AuthorizationBearer <token>

Requires organization-wide access. Management key from Settings → Management keys. Format: eur_mgmt_<public-id>.<secret>. Read-only management keys support GET and HEAD only.

In: header

Path Parameters

workspaceId*string

ID of a workspace in your organization

Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X PUT "https://api.eurouter.ai/api/v1/settings/budgets/workspaces/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{    "monthly_limit_eur": "string"  }'
{
  "data": {
    "level": "org",
    "id": "string",
    "monthly_limit_eur": "string",
    "revision": -9007199254740991
  }
}

Set the monthly budget of a member

PUT
/api/v1/settings/budgets/members/{userId}

Sets or removes the monthly EUR cap on what one member spends, with every API key they own and from the dashboard. A request that would take this calendar month (UTC) over it is refused with a 402. Only organization owners and admins can change it.

Authentication: Requires an organization-wide management key. Read-only management keys cannot use this endpoint.

Authorization

organizationManagementKey
AuthorizationBearer <token>

Requires organization-wide access. Management key from Settings → Management keys. Format: eur_mgmt_<public-id>.<secret>. Read-only management keys support GET and HEAD only.

In: header

Path Parameters

userId*string

User ID of a member of your organization

Length1 <= length

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X PUT "https://api.eurouter.ai/api/v1/settings/budgets/members/string" \  -H "Content-Type: application/json" \  -d '{    "monthly_limit_eur": "string"  }'
{
  "data": {
    "level": "org",
    "id": "string",
    "monthly_limit_eur": "string",
    "revision": -9007199254740991
  }
}

Get Response Healing settings

GET
/api/v1/settings/plugins/response-healing

Read the effective Response Healing default and override policy for the authenticated account. Response Healing repairs malformed JSON syntax in structured-output responses (OpenRouter-compatible), including token-truncated output — healed content always parses, so check finish_reason "length" (or Responses API status "incomplete") to detect responses with missing fields.

Authentication: Requires an organization-wide management key. Read-only management keys are accepted.

Authorization

organizationManagementKey
AuthorizationBearer <token>

Requires organization-wide access. Management key from Settings → Management keys. Format: eur_mgmt_<public-id>.<secret>. Read-only management keys support GET and HEAD only.

In: header

Response Body

application/json

curl -X GET "https://api.eurouter.ai/api/v1/settings/plugins/response-healing"
{
  "id": "response-healing",
  "enabled": true,
  "preventOverrides": true,
  "source": "deployment_default"
}

Update Response Healing settings

PUT
/api/v1/settings/plugins/response-healing

Create or update the Response Healing default and override policy for the authenticated account.

Authentication: Requires an organization-wide management key. Read-only management keys cannot use this endpoint.

Authorization

organizationManagementKey
AuthorizationBearer <token>

Requires organization-wide access. Management key from Settings → Management keys. Format: eur_mgmt_<public-id>.<secret>. Read-only management keys support GET and HEAD only.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X PUT "https://api.eurouter.ai/api/v1/settings/plugins/response-healing" \  -H "Content-Type: application/json" \  -d '{    "enabled": true,    "preventOverrides": true  }'
{
  "id": "response-healing",
  "enabled": true,
  "preventOverrides": true,
  "source": "deployment_default"
}

Get the guardrails of a workspace

GET
/api/v1/settings/policy/workspaces/{workspaceId}

Returns the guardrails of one workspace: its own personal data, prompt-injection, provider and model rules, what the organization policy above it enforces, and what every request in the workspace gets. Every member of the organization can read them.

Authentication: Requires an organization-wide management key. Read-only management keys are accepted.

Authorization

organizationManagementKey
AuthorizationBearer <token>

Requires organization-wide access. Management key from Settings → Management keys. Format: eur_mgmt_<public-id>.<secret>. Read-only management keys support GET and HEAD only.

In: header

Path Parameters

workspaceId*string

ID of a workspace in your organization

Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid

Response Body

application/json

curl -X GET "https://api.eurouter.ai/api/v1/settings/policy/workspaces/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{
  "data": {
    "policy": {
      "pii": {
        "property1": "block",
        "property2": "block"
      },
      "prompt_injection": "off",
      "prompt_injection_ai": true,
      "allow_providers": [
        "string"
      ],
      "deny_providers": [
        "string"
      ],
      "allow_models": [
        "string"
      ],
      "deny_models": [
        "string"
      ]
    },
    "revision": -9007199254740991,
    "above": {
      "pii": {
        "property1": "block",
        "property2": "block"
      },
      "prompt_injection": "off",
      "prompt_injection_ai": true,
      "allow_providers": [
        "string"
      ],
      "deny_providers": [
        "string"
      ],
      "allow_models": [
        "string"
      ],
      "deny_models": [
        "string"
      ]
    },
    "effective": {
      "pii": {
        "property1": "block",
        "property2": "block"
      },
      "prompt_injection": "off",
      "prompt_injection_ai": true,
      "allow_providers": [
        "string"
      ],
      "deny_providers": [
        "string"
      ],
      "allow_models": [
        "string"
      ],
      "deny_models": [
        "string"
      ]
    }
  }
}

Set the guardrails of a workspace

PUT
/api/v1/settings/policy/workspaces/{workspaceId}

Replaces the guardrails of one workspace. They apply to every request made in it, with any key, and can only make the organization policy stricter: a weaker setting is refused with a 400 that names the field. Only organization owners and admins can change them.

Authentication: Requires an organization-wide management key. Read-only management keys cannot use this endpoint.

Authorization

organizationManagementKey
AuthorizationBearer <token>

Requires organization-wide access. Management key from Settings → Management keys. Format: eur_mgmt_<public-id>.<secret>. Read-only management keys support GET and HEAD only.

In: header

Path Parameters

workspaceId*string

ID of a workspace in your organization

Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid

Request Body

application/json

Guardrails of a workspace or a member, replacing the previous ones. A field you leave out sets no rule at this level. Every field can only make the organization policy stricter.

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X PUT "https://api.eurouter.ai/api/v1/settings/policy/workspaces/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{}'
{
  "data": {
    "policy": {
      "pii": {
        "property1": "block",
        "property2": "block"
      },
      "prompt_injection": "off",
      "prompt_injection_ai": true,
      "allow_providers": [
        "string"
      ],
      "deny_providers": [
        "string"
      ],
      "allow_models": [
        "string"
      ],
      "deny_models": [
        "string"
      ]
    },
    "revision": -9007199254740991,
    "above": {
      "pii": {
        "property1": "block",
        "property2": "block"
      },
      "prompt_injection": "off",
      "prompt_injection_ai": true,
      "allow_providers": [
        "string"
      ],
      "deny_providers": [
        "string"
      ],
      "allow_models": [
        "string"
      ],
      "deny_models": [
        "string"
      ]
    },
    "effective": {
      "pii": {
        "property1": "block",
        "property2": "block"
      },
      "prompt_injection": "off",
      "prompt_injection_ai": true,
      "allow_providers": [
        "string"
      ],
      "deny_providers": [
        "string"
      ],
      "allow_models": [
        "string"
      ],
      "deny_models": [
        "string"
      ]
    }
  }
}

Get the guardrails of a member

GET
/api/v1/settings/policy/members/{userId}

Returns the guardrails of one member of the organization: their own rules, what the organization policy above them enforces, and what their requests get. They apply to every API key the member owns and to their own requests from the dashboard. Every member of the organization can read them.

Authentication: Requires an organization-wide management key. Read-only management keys are accepted.

Authorization

organizationManagementKey
AuthorizationBearer <token>

Requires organization-wide access. Management key from Settings → Management keys. Format: eur_mgmt_<public-id>.<secret>. Read-only management keys support GET and HEAD only.

In: header

Path Parameters

userId*string

User ID of a member of your organization

Length1 <= length

Response Body

application/json

curl -X GET "https://api.eurouter.ai/api/v1/settings/policy/members/string"
{
  "data": {
    "policy": {
      "pii": {
        "property1": "block",
        "property2": "block"
      },
      "prompt_injection": "off",
      "prompt_injection_ai": true,
      "allow_providers": [
        "string"
      ],
      "deny_providers": [
        "string"
      ],
      "allow_models": [
        "string"
      ],
      "deny_models": [
        "string"
      ]
    },
    "revision": -9007199254740991,
    "above": {
      "pii": {
        "property1": "block",
        "property2": "block"
      },
      "prompt_injection": "off",
      "prompt_injection_ai": true,
      "allow_providers": [
        "string"
      ],
      "deny_providers": [
        "string"
      ],
      "allow_models": [
        "string"
      ],
      "deny_models": [
        "string"
      ]
    },
    "effective": {
      "pii": {
        "property1": "block",
        "property2": "block"
      },
      "prompt_injection": "off",
      "prompt_injection_ai": true,
      "allow_providers": [
        "string"
      ],
      "deny_providers": [
        "string"
      ],
      "allow_models": [
        "string"
      ],
      "deny_models": [
        "string"
      ]
    }
  }
}

Set the guardrails of a member

PUT
/api/v1/settings/policy/members/{userId}

Replaces the guardrails of one member. They apply to every API key the member owns and to their own requests from the dashboard, and can only make the organization policy stricter: a weaker setting is refused with a 400 that names the field. Only organization owners and admins can change them.

Authentication: Requires an organization-wide management key. Read-only management keys cannot use this endpoint.

Authorization

organizationManagementKey
AuthorizationBearer <token>

Requires organization-wide access. Management key from Settings → Management keys. Format: eur_mgmt_<public-id>.<secret>. Read-only management keys support GET and HEAD only.

In: header

Path Parameters

userId*string

User ID of a member of your organization

Length1 <= length

Request Body

application/json

Guardrails of a workspace or a member, replacing the previous ones. A field you leave out sets no rule at this level. Every field can only make the organization policy stricter.

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X PUT "https://api.eurouter.ai/api/v1/settings/policy/members/string" \  -H "Content-Type: application/json" \  -d '{}'
{
  "data": {
    "policy": {
      "pii": {
        "property1": "block",
        "property2": "block"
      },
      "prompt_injection": "off",
      "prompt_injection_ai": true,
      "allow_providers": [
        "string"
      ],
      "deny_providers": [
        "string"
      ],
      "allow_models": [
        "string"
      ],
      "deny_models": [
        "string"
      ]
    },
    "revision": -9007199254740991,
    "above": {
      "pii": {
        "property1": "block",
        "property2": "block"
      },
      "prompt_injection": "off",
      "prompt_injection_ai": true,
      "allow_providers": [
        "string"
      ],
      "deny_providers": [
        "string"
      ],
      "allow_models": [
        "string"
      ],
      "deny_models": [
        "string"
      ]
    },
    "effective": {
      "pii": {
        "property1": "block",
        "property2": "block"
      },
      "prompt_injection": "off",
      "prompt_injection_ai": true,
      "allow_providers": [
        "string"
      ],
      "deny_providers": [
        "string"
      ],
      "allow_models": [
        "string"
      ],
      "deny_models": [
        "string"
      ]
    }
  }
}

Get the organization policy

GET
/api/v1/settings/policy

Returns the rules every key and every request in your organization must follow: where requests may be processed, which providers may answer and how long they may keep data. Every member of the organization can read it.

Authentication: Requires an organization-wide management key. Read-only management keys are accepted.

Authorization

organizationManagementKey
AuthorizationBearer <token>

Requires organization-wide access. Management key from Settings → Management keys. Format: eur_mgmt_<public-id>.<secret>. Read-only management keys support GET and HEAD only.

In: header

Response Body

application/json

curl -X GET "https://api.eurouter.ai/api/v1/settings/policy"
{
  "data": {
    "policy": {
      "allowed_countries": [
        "string"
      ],
      "eu_owned_only": true,
      "required_certifications": [
        "iso27001"
      ],
      "max_retention_days": 0,
      "deny_training": true,
      "allow_providers": [
        "string"
      ],
      "deny_providers": [
        "string"
      ],
      "allow_models": [
        "string"
      ],
      "deny_models": [
        "string"
      ],
      "prompt_injection": "block",
      "prompt_injection_ai": true,
      "prompt_injection_alerts": true,
      "pii": {
        "property1": "block",
        "property2": "block"
      }
    },
    "revision": -9007199254740991
  }
}

Set the organization policy

PUT
/api/v1/settings/policy

Replaces the rules every key and every request in your organization must follow. A field you leave out restricts nothing. Keys and requests can add restrictions on top, never remove these. A request that no provider can serve within them is refused with a 403 and a reason code. Only organization owners and admins can change it.

Authentication: Requires an organization-wide management key. Read-only management keys cannot use this endpoint.

Authorization

organizationManagementKey
AuthorizationBearer <token>

Requires organization-wide access. Management key from Settings → Management keys. Format: eur_mgmt_<public-id>.<secret>. Read-only management keys support GET and HEAD only.

In: header

Request Body

application/json

Rules every key and every request in your organization must follow. A field you leave out restricts nothing. A key or a request can add restrictions, never remove these.

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X PUT "https://api.eurouter.ai/api/v1/settings/policy" \  -H "Content-Type: application/json" \  -d '{}'
{
  "data": {
    "policy": {
      "allowed_countries": [
        "string"
      ],
      "eu_owned_only": true,
      "required_certifications": [
        "iso27001"
      ],
      "max_retention_days": 0,
      "deny_training": true,
      "allow_providers": [
        "string"
      ],
      "deny_providers": [
        "string"
      ],
      "allow_models": [
        "string"
      ],
      "deny_models": [
        "string"
      ],
      "prompt_injection": "block",
      "prompt_injection_ai": true,
      "prompt_injection_alerts": true,
      "pii": {
        "property1": "block",
        "property2": "block"
      }
    },
    "revision": -9007199254740991
  }
}

Was this page helpful?

Still stuck? Contact support