Create a new stack in your ToolRouter account
POST https://api.toolrouter.ai/v1/stacks
Authorization: Bearer YOUR_API_KEY
Show Configuration Object
curl -X POST "https://api.toolrouter.ai/v1/stacks" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "stack_name": "My New Stack", "configuration": { "analytics_enabled": true } }'
{ "stack_id": "stack_456a7890-b12c-34d5-e678-426614174002", "stack_name": "My New Stack", "configuration": { "analytics_enabled": true }, "servers": [], "created_at": "2024-01-25T12:30:00Z", "updated_at": "2024-01-25T12:30:00Z" }
curl -X POST "https://api.toolrouter.ai/v1/stacks" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "stack_name": "Simple Stack" }'
{ "detail": "Stack name is required" }
{ "detail": "Unauthorized" }
{ "detail": "Too many requests" }
{ "detail": "Failed to create stack" }