Upcoming Mid April 2026
Base URL: https://api-staging.internal-aui.io/v3-1/agent-settings/v1/
All write endpoints include common query params: updated_by, network_id, account_id, organization_id, network_category_id.
Agent Migration
Create an agent by migrating from a source scope.POST /v1/agent-tools/create-agent
Best Practices
- Use migration for cloning agents — This is the fastest way to duplicate an agent across accounts or environments. Migrate from a staging source to a production target.
- Verify the target network is empty — Migrating into a network with existing settings may overwrite or conflict. Use a freshly created network as the target.
General Settings
PATCH /v1/agent-tools/general-settings
Update agent general settings. Body contains changed fields plus scope IDs.
Best Practices
- Send only changed fields — PATCH applies partial updates. Include only the fields you want to change plus the required scope IDs. Sending the full object risks overwriting concurrent changes.
- Always include
updated_by— This field tracks who made the change. Use the account ID or email of the person/service making the update for audit purposes. - Validate with
aui dvalidateafter changes — If you’re editing settings alongside CLI-managed.aui.jsonfiles, run validation to ensure consistency.
Tools
Create Tool
POST /v1/agent-tools
Update Tool
PATCH /v1/agent-tools/{toolName}
Body contains changed fields plus scope IDs and updated_by.
Delete Tool
DELETE /v1/agent-tools/{toolName}
Best Practices — Tools
- Use descriptive tool names — Tool names are used as identifiers and referenced by rules. Use clear, snake_case names (e.g.,
search_products,check_inventory). - Update tool references in rules — When renaming or deleting a tool, check that no rules reference the old tool name. Orphaned references cause silent failures.
- Test tools with
aui chatafter creation — Create the tool, then immediately test it in a chat session to verify it activates correctly and returns expected results.
Parameters
Create Parameter
POST /v1/parameters/view
Parameter code identifier.
Parameter description.
Type:
string, numeric, date, boolean, enum, array, object.Usage:
ALL, INPUT, or OUTPUT.Enum values (when type is
enum).Update Parameter
PATCH /v1/parameters/view/{code}
Delete Parameter
DELETE /v1/parameters/view/{code}
Best Practices — Parameters
- Use
usage_typeto control data flow —INPUTparameters are collected from users,OUTPUTparameters are set by the agent, andALLcan be both. Choose the narrowest scope that fits your use case. - Define enum values exhaustively — For
enumtype parameters, list all valid values upfront. The agent will use these for validation and suggestion generation. - Check rule dependencies before deleting — Parameters are referenced in rule conditions. Deleting a parameter that’s used in active rules will break those rules silently.
Entities
Create Entity
POST /v1/scope-entities/view
Entity name.
Entity description.
Associated parameters.
Nested sub-entities.
Update Entity
PATCH /v1/scope-entities/view/{name}
Delete Entity
DELETE /v1/scope-entities/view/{name}
Best Practices — Entities
- Entities control instruction scoping — Each entity determines which tools, rules, and instructions are active for a given interaction context. Design entity hierarchies to match your domain.
- Keep sub-entity nesting shallow — Deeply nested sub-entities are harder to debug. Prefer flat structures with clear parameter associations.
- Name entities after domain concepts — Use names like
product,order,customerrather than generic names. The agent uses entity names for context understanding.
Integrations
Create Integration
POST /v1/integrations/view
Integration name.
Integration type (e.g.,
"API").Integration-specific settings.
Integration description.
Update Integration
PATCH /v1/integrations/view/{code}
Delete Integration
DELETE /v1/integrations/view/{code}
Best Practices — Integrations
- Test API credentials before creating — Verify that the endpoint URL, auth headers, and request format work independently (e.g., via cURL) before saving as an integration.
- Use the API Workflow generator for REST APIs — Instead of manually building integration settings, use the API Workflow endpoint to auto-generate integrations from cURL commands.
- Disable before deleting — If an integration is referenced by active tools, removing it will break those tools. Disable the integration first, verify nothing breaks, then delete.
- Store sensitive values in integration settings, not tool configs — Keep API keys and secrets in the integration
settingsobject, not in tool definitions. This allows rotating credentials without updating every tool.
