Create Scope
Agent Sessions & Tools
Create Scope
Create a custom tenant-scoped permission scope for fine-grained agent access control
POST
Create Scope
Create Scope
POST /v1/scopes
Creates a custom permission scope for the authenticated tenant. Custom scopes extend the built-in scope registry with tenant-specific permissions. The scope string is automatically composed from the resource and action fields in resource:action format.
Custom scopes are validated against the MAIP scope format rules: alphanumeric characters, dots, underscores, hyphens, and asterisks only.
Custom scopes are tenant-isolated. They do not appear in other tenants’ scope
registries. Built-in platform scopes cannot be overridden or duplicated.
Authentication
RequiresX-API-Key header or Bearer JWT token. Tenant-scoped via X-Tenant-ID.
Request Body
The resource component of the scope. Must contain only alphanumeric
characters, dots, underscores, and hyphens. Examples:
"crm", "payment",
"inventory.warehouse".The action component of the scope. Must contain only alphanumeric characters,
dots, underscores, hyphens, and asterisks. Examples:
"read", "approve",
"*".Human-readable name for the scope. Defaults to the composed
resource:action
string if omitted.Detailed description of what the scope grants access to.
Organizational category for the scope. Defaults to
"custom" if omitted.
Common values: "data", "model", "tool", "integration", "custom".Response
UUID of the newly created scope definition.
UUID of the owning tenant.
The composed scope string in
resource:action format.The resource component.
The action component.
Human-readable scope name.
Scope description.
Scope category.
Always
false for tenant-created scopes.ISO 8601 creation timestamp.
Example
Assigning Custom Scopes to Agents
After creating a custom scope, assign it to agents during registration or via delegation:Authorizations
API key for machine-to-machine authentication
Body
application/json
Resource component of the scope (e.g. "crm", "payment")
Action component of the scope (e.g. "read", "approve", "*")
Human-readable name for the scope
Detailed description of what the scope grants
Organizational category (defaults to "custom")

