The tools-space domain in the Aimable Platform API (v0.1.0) enables developers to interact with tools associated with a specific space—a logical container for organizing resources, users, and functionality. This API allows you to list available tools within a space and execute them dynamically by passing arguments. It's ideal for building automation workflows, integrations, or UIs that need to trigger space-specific actions like data exports, report generation, or system syncs.
Key Concepts
Space: A scoped environment identified by a unique space_id (UUID). Tools are bound to a space and inherit its context and permissions.
Tool: A predefined function or action (e.g., export_data, sync_users) that can be executed within a space. Each tool has a tool_name and accepts structured arguments.
Execution: Tools are invoked via POST requests with a JSON payload containing input parameters. The response depends on the tool’s implementation.
Authentication is required for all operations using a Bearer token in the Authorization header. Some endpoints may also accept an optional X-API-Key header for legacy or service-level access.
List Available Tools in a Space
Use this endpoint to discover which tools are available in a given space.
Process the returned output_url to download or forward the exported data.
Authentication & Error Handling
All endpoints require authentication. Use a Bearer token:
Authorization: Bearer <your-token>
Optional: Include X-API-Key if your integration relies on API key-based access.
Common Errors
| Status | Meaning |
|-------|--------|
| 401 Unauthorized | Missing or invalid access token |
| 403 Forbidden | User lacks permission to access the space or tool |
| 422 Unprocessable Entity | Invalid input; check detail for field-specific errors |
Always validate input against the tool's expected schema (retrieved via the GET /tools endpoint) to avoid 422 errors.
By combining discovery and execution, the tools-space API gives you dynamic control over space-level operations—making it easy to automate, integrate, and extend functionality across your Aimable Platform spaces.