Skip to content

DocsManagement API

Management API resources

Fields, operations and delete behaviour for every management API resource, with curl examples: projects, keys, connections, routes, budgets and more.


The management API is served at https://api.infro.io/manage/v1.

Every resource lives under https://api.infro.io/manage/v1/<type>. List with GET /<type>, read with GET /<type>/{id}, create with POST /<type>, change with PATCH /<type>/{id} and remove with DELETE /<type>/{id}, where the resource allows it. PATCH and DELETE need If-Match; POST accepts Idempotency-Key. Those rules are on the overview. The field lists below are the request bodies; the complete schemas are in the OpenAPI document at https://api.infro.io/manage/v1/openapi.json.

Responses carry each resource's fields as the console shows them, plus id, object, version and managed_by. Money fields are US dollars as numbers.

Data

Besides configuration, the API reads what happened. These are not resources: they have no version, take no If-Match and are not in /export or Terraform. Prompt and completion content is never returned, whatever the organization's capture setting. History is limited to the plan's window. Paged answers carry {object: "list", data, has_more, next_cursor}.

OperationScopeWhat it returns
GET /usageanalytics:readThe same aggregation as GET /v1/usage, as JSON: buckets, optional group_by, estimated provider cost and unpriced requests. format=csv is refused.
GET /requestsanalytics:readThe request log with the filters of GET /v1/requests, at most 100 a page (after = the previous next_cursor).
GET /requests/{id}analytics:readOne request's metadata: attempts, route, guardrail outcomes, cost.
GET /traces/{id}analytics:readEvery request of one run, in order, with the run's estimated cost.
GET /cost-breakdownanalytics:readEstimated provider cost per project, customer, feature, team member, coding agent, workflow or promoted tag: the Summary's cost cards. See Cost breakdown.
GET /runsanalytics:readThe run list with the filters and sorts of GET /v1/runs, at most 100 a page.
GET /findings, GET /findings/{id}findings:readWhat INFRO noticed: anomalies, drift, budget crossings, failing connections, traffic changes. Filter by status, type, severity.
POST /findings/{id}/acknowledgefindings:writeAcknowledges a finding; audited, takes no ownership.
GET /budget_statusbudgets:readEvery enforced spend limit with estimated spend in the current period.
GET /audit_eventsaudit:readThe audit log: q, action, actor, from, to, limit, cursor.

Cost breakdown

GET /cost-breakdown returns the figures of the console Summary's cost cards. For each dimension asked for: how many values there were, the average per value, the largest values with their share and the same figure for the comparison window, and the cost of the requests that named no value. Every amount is estimated provider cost, what your own providers will bill you, never an INFRO charge. A value whose requests are all unpriced has estimated_cost: null, never 0. Needs analytics:read; a project-restricted token sees only its project.

bystringrequired
Up to 7 dimensions, separated by commas: project, user (your own end customer, from metadata.user_id), feature, member (team member), agent (coding agent), workflow, or tag:<key> for a promoted tag. A tag that is not promoted is 400 tag_not_promoted.
periodstring
cycle (default): the budget cycle so far against the same days of the last cycle, the Summary's own window, not narrowed by the plan's history. 7d, 30d or 90d: the last N days against the N days before. Not with from or to.
from, toISO 8601
A window, compared with the same length before it. to defaults to now. A window you name is narrowed to the plan's history like /usage, and requested_from then says what you asked for. At most 400 days.
topinteger
Values listed per dimension, 1 to 25. Default 5. more says whether there were others.
projectstring
Only this project's requests.
environmentstring
One environment slug, or several separated by commas.
Cost per customer and per feature this budget cycle
curl "https://api.infro.io/manage/v1/cost-breakdown?by=user,feature&top=3"   -H "Authorization: Bearer $INFRO_MANAGEMENT_TOKEN"
Response (one dimension shown)
{
  "object": "cost_breakdown",
  "period": "cycle",
  "from": "2026-11-01T00:00:00.000Z",
  "to": "2026-11-21T14:05:00.000Z",
  "requested_from": null,
  "compared": { "from": "2026-10-01T00:00:00.000Z", "to": "2026-10-21T14:05:00.000Z" },
  "data": [
    {
      "by": "user",
      "groups": 38,
      "estimated_cost": 1299.6,
      "average_per_group": 34.2,
      "attributed_share": 0.81,
      "unattributed": { "estimated_cost": 304.85, "requests": 2210 },
      "unpriced_requests": 12,
      "more": true,
      "rows": [
        { "id": "acct_1042", "label": "acct_1042", "estimated_cost": 212.4, "share": 0.1634, "previous": 180.1, "requests": 5120, "unpriced_requests": 0 },
        { "id": "acct_0877", "label": "acct_0877", "estimated_cost": 166.05, "share": 0.1278, "previous": null, "requests": 3904, "unpriced_requests": 0 },
        { "id": "acct_2291", "label": "acct_2291", "estimated_cost": 98.3, "share": 0.0756, "previous": 104.9, "requests": 2280, "unpriced_requests": 0 }
      ]
    }
  ]
}
  • estimated_cost on a dimension is the cost of the requests that carried it; unattributed is the rest of the window. attributed_share is the first as a share of both, null when the window has no cost.
  • Each row's share is its part of the dimension's estimated_cost. previous is the same value's estimated provider cost in the compared window, and null when it had no request there (the console shows new).
  • label is the project's name, or the team member's name with an image; other dimensions repeat the id you sent. Money is US dollars as numbers.
  • The figures equal /usage?group_by=<dimension> over the same window. For a time series or another grouping, use /usage.

INFRO Studio

Every Studio run calls your own provider accounts, which bill you for it. INFRO charges nothing per run, per step or per result.

Run INFRO Studio from a script: recipes, Flows and batches, single generations, films and brand kits. Put files into the Library by upload or from a public link, read results and cancel runs. Editing a canvas or a Flow, deleting anything, and review (comments, approvals, share links) stay in Studio. The scope is studio:read or studio:write, a data scope: *:read never includes it, a project-restricted token cannot hold it, and it is granted by name. Studio and the management API are in every plan.

Each operation runs Studio's own handler as the token's creator, so the rules are Studio's: Studio storage turned on for the organization, a role that may make in Studio for a write, the organization's budgets and the member's spend limit. Every cost is estimated provider cost: what your own provider accounts will bill you for the steps, never an INFRO charge; null is unpriced, never $0. Each step is one request in your plan's monthly allowance.

OperationScopeWhat it does
GET /studio/recipesstudio:readBuilt-in (system:<id>) and saved (srec_…) recipes, each with its parameters. runnable: false recipes run only in Studio.
GET /studio/flowsstudio:readStudio projects that have a Flow: project_id, name, steps, updated_at.
POST /studio/recipes/{id}/runsstudio:write{values, project_id?, dry_run?}. One run of the recipe. dry_run: true answers the estimate and starts nothing.
POST /studio/recipes/{id}/batchesstudio:write{items[], labels?, name?, project_id?, dry_run?}. One run per item, up to 200; a problem in any item refuses the batch, naming it.
POST /studio/flows/{project_id}/runsstudio:write{targets?, name?, dry_run?}. The project's Flow, compiled as Studio compiles it; a Flow fed by a list runs as a batch.
GET /studio/runs/{id}studio:readA run's status and steps: model, provider, estimated and settled provider cost, result asset ids, a text step's answer, a pick waiting for a choice.
POST /studio/runs/{id}/cancelstudio:writeStops what has not been sent. A step already at its provider finishes there and may still be billed by that provider.
POST /studio/runs/{id}/pickstudio:write{node_id, asset_id}. The choice at a pick step; the run goes on with it.
GET /studio/batches, GET /studio/batches/{id}studio:readRecent batches; one batch with each item's run, status, results and error.
POST /studio/batches/{id}/cancel, POST /studio/batches/{id}/retrystudio:writeCancel a batch; run its failed, stopped and canceled items again (finished steps are reused).
GET /studio/assets/{id}studio:readA result's metadata and download_url: a signed link valid for at most an hour, re-checked on every fetch, null while the asset is in Trash or past its retention. An expired or altered link answers 403; an asset no longer stored, 404.
GET /studio/capabilitiesstudio:readEvery model your own providers run in Studio, per provider with what it takes: ratios, durations, reference images, first and last frame, generated audio.
POST /studio/uploadsstudio:write{name?, project_id?}. A signed link valid for 15 minutes: PUT one file to it (curl -T file <url>) and the answer is the new Library asset.
POST /studio/assets/importstudio:write{url, name?, project_id?}. One public https file, up to 100 MB, into the Library.
POST /studio/runsstudio:write{graph, project_id?, force?, dry_run?}. One step or several wired together: image, video, voice, sound effect, music, lip-sync, upscale, extend, restyle, finishing.
POST /studio/filmsstudio:write{plan, name?, models?, cast?}. A project with the plan's cast and storyboard; cast.<key> gives a cast member reference images and a voice. Calls no model.
GET /studio/films/{project_id}studio:readThe film's cast, scenes and shots, what each shot has made and what it still needs.
POST /studio/films/{project_id}/rendersstudio:writeEvery waiting shot in one run: keyframes, animation ending on the next shot's first frame, voices, lip-sync, effects and a score. dry_run: true answers the estimate. A long film is made in passes (film.remaining_shot_ids).
POST /studio/films/{project_id}/exportsstudio:writeThe film package (clips and audio in order, captions, FCPXML, EDL and Premiere timelines, manifest) with an hour-long download_url. INFRO does not render the timeline into one file.

A dry run answers a studio_estimate: estimated_cost_usd, unpriced_steps, reused_steps (results that already exist and are linked, not made again), requests, items and providers (the provider kinds that will bill you). The starting POSTs honour Idempotency-Key: a retry with the same key and body returns the first run or batch and starts nothing again. Every write is in the audit log as the token.

Estimate, then run a recipe
curl -X POST https://api.infro.io/manage/v1/studio/recipes/srec_123/runs \
  -H "Authorization: Bearer $INFRO_MANAGEMENT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"values": {"product": "sast_456"}, "dry_run": true}'

curl -X POST https://api.infro.io/manage/v1/studio/recipes/srec_123/runs \
  -H "Authorization: Bearer $INFRO_MANAGEMENT_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: hero-2026-10-16" \
  -d '{"values": {"product": "sast_456"}}'

Brand kits

A brand kit holds what a company, or one project, looks and sounds like: overview, voice, visual style, rules, palette, typefaces, logos and reference images. Logos and images are your own Library pictures (POST /studio/uploads first); font files and documents go in by a signed link. A kit calls no model and costs nothing. Deleting or archiving a kit and removing a file stay in Studio.

OperationScopeWhat it does
GET /studio/brand-kits, GET /studio/brand-kits/{id}studio:readThe organization's kits (project_id adds a project's own); one kit with its files, strength and gaps.
POST /studio/brand-kitsstudio:write{name, …fields, palette?, typography?, project_id?, logos?, images?}. Every picture is checked before the kit is written; the first kit of its scope becomes the default. Honours Idempotency-Key.
PATCH /studio/brand-kits/{id}studio:writeText fields, palette (replaces it), typography (a face's file_id names a font file of the kit), is_default.
POST /studio/brand-kits/{id}/filesstudio:write{role: logo|image, asset_id, label?}. A logo's label is its variant: primary, mark, wordmark, light (a light logo, for dark backgrounds), dark (for light backgrounds) or mono.
PATCH /studio/brand-kits/{id}/files/{file}studio:write{label?, family?, weight?, position?}. A logo's variant, an image's label, a font's family or weight, a file's place in its list.
POST /studio/brand-kits/{id}/uploadsstudio:write{role: font|document, name?, family?}. A signed link valid for 15 minutes: PUT one font (TTF, OTF, WOFF, WOFF2) or document (PDF, text, Markdown) to it. A font's id is the file_id a typeface names.

Security

The Security screen through /manage/v1, under the security scope family: a data family, so *:read does not include it, and never on a project-restricted token (403 project_restricted), because an incident crosses projects. security:write works on every plan with the management API. Each call runs as the token's creator, with their role.

OperationScopeWhat it does
GET /security/overviewsecurity:readThe worst day and posture checks.
GET /security/signalssecurity:readThe signal feed, with the same filters (kind, severity, status, subject_type, key_id, days, limit).
POST /security/keys/{id}/containsecurity:writeContains a key, tighten-only. Returns {object: "containment", id, contained}.
GET /organization/pausesecurity:readThe emergency stop in force, its history and whether the creator may press it.
POST /organization/pausesecurity:writePresses the stop, when the creator holds it. Returns 201. Every member is emailed.
POST /organization/pause/resume—Always 403 session_required: a person releases the stop in the console.
GET /security/exportsecurity:read, and audit:read for the audit streamThe SIEM export: the audit log, signals and staff access as NDJSON, with a cursor.
GET /security/staff_accesssecurity:readThe staff access log.

Two configuration resources, with version, If-Match, managed_by and /export like every other: security_rules (the automatic responses, with the console's fields; version starts at 1) and security_key_policy, a single resource at /security_key_policy/{organization id} (GET and PATCH only; version is 0 until it is first written). /export includes them only for a token holding a security scope.

Secrets

SecretHow it is handled
Gateway key secretReturned once, in the response to POST /gateway_keys and to POST /gateway_keys/{id}/rotate. Never readable afterwards.
Webhook endpoint secretReturned once, in the response to POST /webhook_endpoints and to POST /webhook_endpoints/{id}/rotate_secret.
Provider connection secretWrite-only. Accepted on create and on POST /provider_connections/{id}/credential, sealed, never returned.
Slack slack_url on a notification channelWrite-only. Accepted on create and patch, sealed, never returned.

Projects

namestringrequired
Up to 80 characters.
slugstring
Create only. Up to 60 characters.
model_allowliststring[]
Patch only. Models this project's keys may call; see model allowlists.
spend_limitobject | null
Patch only. {monthly, behavior, alert_at?}: behavior is alert or block, alert_at is a list of fractions up to 1. null removes it.
archivedboolean
Patch only. Archiving refuses the project's keys with 403 project_archived; false restores it.

DELETE /projects/{id} archives the project. DELETE /projects/{id}?purge=true deletes it outright, but only if it has never had a gateway key and never served a request; otherwise it is refused with 409 and code: "project_has_usage", and archiving is the way to remove it.

Gateway keys

labelstringrequired
Up to 80 characters.
project_idstring
Create only. The project the key belongs to.
credit_limitobject | null
{amount, period}: amount from 0.01 to 1,000,000,000 USD, period is hourly, daily, weekly, monthly or never. See spend controls.
rate_limit_rpminteger
Requests per minute, one of 60, 100, 200 (the default), 300, 500, 1,000, 2,000, 5,000, 10,000, 20,000 or 50,000. Any other number is refused.
model_allowliststring[]
Models this key may call.
allowed_routesstring[]
Route slugs the key is pinned to.
allowed_providersstring[]
Provider ids the key may use, such as openai or openrouter (as GET /console/providers/kinds lists them). [] or absent: every provider, including ones connected later. An unknown id is refused with 400 unknown_provider. See Authentication.
environmentstring | null
The identifier of ONE of your organization's environments (production, staging and development by default). A key belongs to one environment because it is stamped on every request the key makes. null: no environment, which reaches only connections and routes set to every environment.
expires_atstring | null
An ISO 8601 time after which the key stops working.
observability_accessstring
none, scoped or organization: which request history the key may read.
payload_accessboolean
Whether the key may read stored prompts and completions.
disabledboolean
Patch only. true turns the key off: requests with it return 403 key_disabled, and nothing else about it changes. false turns it on again. Refused for a revoked key.
allowed_ipsstring[]
CIDR ranges or addresses the key accepts requests from, up to 32; [] accepts any address. Stored in canonical form (203.0.113.7 becomes 203.0.113.7/32). See Authentication.
country_ruleobject | null
{mode, codes}: allow or block up to 250 ISO country codes (plus XX and T1). null removes it. See Country and network rules.
asn_ruleobject | null
{mode, numbers}: allow or block up to 64 network numbers (ASNs). null removes it.
max_concurrencyinteger | null
1 to 10,000: the most model calls in flight at once. null: no limit. See Concurrency limit.

A new key must meet the organization's key policy: a refusal is 400 invalid_request with code key_policy, and a key sent with no limit may be given the policy's default one, shown in the response's credit_limit.

The create response carries the key's secret once. DELETE revokes the key, and a revoked key no longer appears in lists or reads.

POST /gateway_keys/{id}/rotate replaces a key in one step and answers with the NEW key: its secret once, the same configuration, rotated_from_key_id, and previous_key with the old key's expires_at or revoked_at. overlap_seconds (default 86400, at most 604800) is how long the old key keeps working; 0 revokes it at once. The spend limit is shared across the rotation, so spend already counted stays counted. An optional If-Match refuses a key changed since it was read; a key that is revoked, expired, already rotated or in an archived project answers 409 key_not_rotatable.

Create a gateway key
curl https://api.infro.io/manage/v1/gateway_keys \
  -H "Authorization: Bearer $INFRO_MANAGEMENT_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: tenant-acme-key-1" \
  -d '{
    "label": "acme production",
    "project_id": "prj_01J9Z4",
    "environment": "production",
    "credit_limit": {"amount": 250, "period": "monthly"}
  }'

Provider connections

kindstringrequired
Create only. A provider kind from GET /provider_kinds.
namestringrequired
Up to 80 characters. Unique among your connections of the same kind, ignoring case and repeated spaces: two providers can each have a key called Production. A clash answers 400 duplicate_connection_name.
secretstring
Create only, write-only. The provider credential.
fallback_secretsstring[]
Create only, write-only. Additional credentials pooled on this one connection, tried only when an earlier one is rejected or rate-limited. To name several keys of one provider and choose between them in a route, create one connection per key instead.
environmentsstring[] | null
The environments whose keys may use this connection, by identifier. [] or null is every environment, including keys with no environment. Listing every environment you have is not the same: a key with no environment, or in an environment added later, does not reach it.
environmentstring | null
Deprecated: the single-value form. On write it means [environment] (or every environment when null); sent beside environments, it must be that list's first entry. On read it is the first entry of environments, or null when that is empty.
configobject
Kind-specific settings, such as a base URL where the kind allows one.
model_mapobject
For kinds that serve the models you name.
timeout_msinteger
1,000 to 600,000.
alternate_base_urlsstring[]
Up to 5 more API hosts for the same key, tried in order when its host cannot be reached. Only on a domain the provider owns and INFRO lists for its kind (400 alternate_host_off_domain, or alternate_host_not_allowed for a kind that takes none); any HTTPS public host for a server whose URL you type. On PATCH it replaces the list; [] removes every alternate. See Standby keys and alternate hosts.
pool_rolestring
active (default) shares the requests that name a model directly with the provider's other active keys; standby is tried only after every active key failed.
modelsstring[]
The models this key covers: catalog ids, or <provider>/<model id> on a provider that takes its own ids. Empty (the default) covers every model the provider serves. Each entry must be a model the provider serves through INFRO (400 invalid_model). On PATCH it replaces the list; [] covers every model again. See Models each key covers.
validateboolean
Create only. Check the credential with the provider before answering.
statusstring
Patch only. enabled or disabled.

Replace a credential with POST /provider_connections/{id}/credential and {"secret": "...", "validate": true}. It is a separate call so a rotation never rides along with a rename. See Connect a provider for what each kind needs.

Routes

slugstringrequired
Create only. The name your application sends as model. Up to 64 characters.
namestring
Up to 80 characters.
descriptionstring | null
Up to 500 characters.
strategystring
priority or weighted.
environmentsstring[] | null
The environments whose keys may call this route. [] or null is every environment. Same rule as a connection's.
environmentstring | null
Deprecated single-value form, as on a connection.
timeout_msinteger | null
1,000 to 600,000.
max_retriesinteger
0 to 3.
targetsobject[]required
{connection_id, model, weight?, enabled?}, in order. On PATCH, targets replaces the whole target list.
rulesobject[]
Up to 20 if-rules checked in order before targets: {name, enabled?, match?, conditions, strategy?, fallthrough?, targets}. On PATCH, rules replaces every rule; leaving it out keeps them. See Rules.
failoverobject
Failure kind (rate_limit, server_error, timeout, connection, credential, moderation) to action (retry, failover, stop). Kinds left out keep retry. Reads return every kind.
Replace a route's targets
curl https://api.infro.io/manage/v1/routes/rt_01J9Z6 \
  -X PATCH \
  -H "Authorization: Bearer $INFRO_MANAGEMENT_TOKEN" \
  -H 'If-Match: "4"' \
  -H "Content-Type: application/json" \
  -d '{
    "targets": [
      {"connection_id": "conn_01J9Z1", "model": "openai/gpt-5.6-sol"},
      {"connection_id": "conn_01J9Z2", "model": "anthropic/claude-sonnet-5"}
    ]
  }'

Organization settings

One object per organization: GET /org_settings and PATCH /org_settings (with If-Match), no id. Fields include monthly_target, hard_cap ({monthly, behavior, alert_at?} or null), unpriced_budget_policy (block or allow), prompt_logging_enabled, prompt_logging_retention_days, model_allowlist and billing_day_of_month (1 to 28). The console's role rules apply: loosening unpriced_budget_policy to allow needs an owner, as it does in the console.

Member budgets

One entry per member of the organization; the id is the member's id. Each carries user_id, email, role and spend_limit. There is no create or delete: PATCH /member_budgets/{member_id} with {"spend_limit": {"monthly": 300, "behavior": "block"}} sets a limit and {"spend_limit": null} removes it. Members themselves are not managed through this API.

Webhook endpoints

urlstringrequired
Where deliveries are sent. Must be an https:// URL.
descriptionstring
Up to 200 characters.
eventsstring[]
job.succeeded, job.failed, job.canceled, and the INFRO Studio events studio.run.finished and studio.batch.finished, which an endpoint receives only when it names them.

Endpoints are created and deleted, not patched. POST /webhook_endpoints/{id}/rotate_secret returns a new signing secret once; see Webhooks for how the previous one keeps verifying during the changeover.

Model prices

modelstringrequired
Create only. The model id.
providerstring | null
Create only. A provider kind, or null for the rate on any provider.
input_per_millionnumber | null
USD per million input tokens.
output_per_millionnumber | null
USD per million output tokens.
cached_input_per_millionnumber | null
USD per million cached input tokens.
unitnumber | null
USD per unit, for models billed per image, second or character.
notestring | null
Up to 200 characters.

The id is the stored rate's own id, returned on create. A custom rate is your provider's rate as you enter it; INFRO uses it to estimate provider cost and bills none of it.

Notification channels and rules

A channel is one of {"kind": "slack", "label", "slack_url"}, {"kind": "webhook", "label", "webhook_endpoint_id"} or {"kind": "email", "label", "emails"}. A patch can change label, status (active or disabled), slack_url or emails.

A rule routes one event type to one channel: event_type (spend.anomaly, spend.forecast_over_budget, cost.drift, budget.threshold_crossed, connection.failing, unpriced.traffic, traffic.model_changed or traffic.regression), channel_id, min_severity, optional scope_kind and scope_id, and include_end_user. A patch can change min_severity, include_end_user and mute_days (1, 7, 30 or null). See Alerts.

Cost centers and rules

A cost center has name, code and owner_email. DELETE archives it, because a closed month's statement still names it.

A cost center rule has match, priority, note, and either cost_center_id or an allocation. A rule is versioned by adding a new version each time it changes, so its management API id is its lineage id, which stays the same across versions; the current version's own id is in version_id. A PATCH is merged over the current rule and saved as a new version. See Cost centers.

Commitments

A commitment has provider_kind, label, amount_usd, period_start, period_end, and optional discount_pct, models and notes. Every field can be patched, and DELETE removes it. See Commitments.

End-customer caps

An end-customer rule (end_user_cap_rules) has project_id (null for the organization-wide rule), amount (USD per period as a decimal string, or null for no default cap), period (daily, weekly or monthly), behavior (block or alert), missing_id (serve or refuse) and enabled. There is one per organization and one per project. The overrides under a rule are addressed by your own end-customer id rather than a generated one, and are paged: GET /end_user_cap_rules/{rule}/overrides?limit=&starting_after=, and GET, PUT or DELETE /end_user_cap_rules/{rule}/overrides/{end_user_id}. PUT is idempotent and If-Match is optional on overrides. A token holding only end_users:write can do this and nothing else. See End-customer caps.

Guardrail policies

A guardrail policy is attached to the organization, a project or a gateway key, and its id says which: organization, project:<project_id> or key:<key_id>. Create it with POST /guardrail_policies and {"target": "project:prj_01J9Z4", "enabled": true, "on_engine_error": "block", "rules": [...]}. A patch is merged over the current policy. See Guardrails for the rules and their detectors.

Turn off a project's guardrail policy
curl https://api.infro.io/manage/v1/guardrail_policies/project:prj_01J9Z4 \
  -X PATCH \
  -H "Authorization: Bearer $INFRO_MANAGEMENT_TOKEN" \
  -H 'If-Match: "7"' \
  -H "Content-Type: application/json" \
  -d '{"enabled": false}'

Because a policy has no row of its own, its version is the version of what it is attached to. A change to that project or key also moves the policy's version.

MCP gateway

The MCP gateway's configuration, in the mcp scope family. Reads need mcp:read (or *:read); writes need mcp:write. Disabling a server, blocking a tool and deleting a grant are never plan-gated.

MCP servers

slugstringrequired
1 to 12 lower-case letters or digits, unique in the organization. Cannot be changed.
namestringrequired
Up to 80 characters.
urlstringrequired
The server's public HTTPS URL.
credentialobject
Write-only. {"type": "none"} (the default) or {"type": "headers", "headers": {"Authorization": "Bearer …"}}, up to 8 headers. Sealed and never returned; items carry auth_type and header_names only.
project_idsstring[]
Projects whose keys may reach the server. Empty means every project.
environmentsstring[]
Environments whose keys may reach the server. Empty means every environment.
reads_private_data, reads_untrusted_content, can_send_data_outboolean
Risk labels, used for the lethal-trifecta check on grants.
timeout_msinteger
1000 to 300000; default 60000.
max_result_bytesinteger
1024 to 5242880; default 1048576.
rate_limit_rpminteger
60 to 50000; default 300.

Creating a server lists its tools with the credential given and fails with mcp_discovery_failed if it cannot. A PATCH can change every field above except slug and credential, and status (active or disabled). Items also carry protocol_era, health, last_synced_at, last_sync_error and version. Actions:

  • POST /mcp_servers/{id}/credential with {"credential": {...}}: replace the credential. The response carries header names, never a value.
  • POST /mcp_servers/{id}/sync: list the server's tools now. New tools arrive pending; an approved tool whose definition changed becomes changed.
  • POST /mcp_servers/disable_all: disable every server in one audited action. Every tool call is refused from the next call.

MCP key grants

A grant has key_id, server_id, mode (read, all or selected) and, for selected, tools (upstream names). It is stored against the key's lineage (key_lineage_id on the item), so rotating the key keeps it. A patch can change mode and tools. A grant that would give one key all three risk labels is refused with mcp_trifecta_unconfirmed unless the body carries confirm_trifecta: true.

MCP server tools

List and read only: tools are created by discovery. An item carries server_id, upstream_name, exposed_name, state, access_class, suggested_class, definition and definition_sha256 (the latest the server listed), approved_definition and approved_sha256 (what agents are served), scan_findings, and when it was first seen, changed and approved. Actions, each needing a token whose creator is an owner or admin:

  • POST /mcp_server_tools/{id}/approve with {"access_class": "read" | "write", "expected_sha256": "<hash you reviewed>"}. A definition that changed since that hash is refused with mcp_tool_definition_stale.
  • POST /mcp_server_tools/{id}/block: hidden from agents and refused, whatever the server lists.
  • POST /mcp_server_tools/{id}/unblock: back to approved when its definition is still the approved one, else pending.
Approve a reviewed tool as read-only
curl https://api.infro.io/manage/v1/mcp_server_tools/mcpt_01JA1W3D9P/approve \
  -X POST \
  -H "Authorization: Bearer $INFRO_MANAGEMENT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"access_class": "read", "expected_sha256": "<definition_sha256 from GET /mcp_server_tools/mcpt_01JA1W3D9P>"}'

Notification rules also accept the event types mcp.tool_changed and mcp.server_failing. Terraform resources for the MCP gateway come later.

Prompts

GET, POST /prompts, GET /prompts/{slug}, POST /prompts/{slug}/versions and PUT /prompts/{slug}/labels/{label} with If-Match, under the prompts scope. Prompts are not in /export or Terraform. Fields, roles and protected labels are on Prompt management.

GET, POST /prompts/{slug}/rules and PATCH, DELETE /prompts/{slug}/rules/{id}, under the same prompts scope. See Prompt rollback rules.

↑ ↓ navigate↵ open/ anywhere in docs