Documentation Index
Fetch the complete documentation index at: https://docs.truthlocks.com/llms.txt
Use this file to discover all available pages before exploring further.
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.

