Creates a new stack with the specified name and configuration. A stack is a collection of servers and tools that work together for your specific use case.
Endpoint
POST https://api.toolrouter.ai/v1/stacks
Authentication
This endpoint requires an API key. Include it in the Authorization header:
Authorization: Bearer YOUR_API_KEY
Request Body
string
required
Name of the new stack. Must be unique within your account.
object
Stack configuration settings
Show Configuration Object
boolean
default:"false"
Whether to enable analytics for this stack
Response
string
Unique identifier for the newly created stack
string
Name of the created stack
object
Stack configuration settings
Show Configuration Object
boolean
Whether analytics are enabled for this stack
array
Array of servers (empty for newly created stacks)
string
ISO timestamp when the stack was created
string
ISO timestamp when the stack was last updated
Example Request
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 } }'