Documentation Index
Fetch the complete documentation index at: https://docs.constants.io/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Constants exposes your tools through REST API, MCP, and Slack — all backed by the same execution engine and security model as the web UI.All interfaces run tools in the same secure sandbox with the same credential handling, logging, and audit trail.
REST API (V1)
Authentication
All API requests require an API key in theAuthorization header.
Getting Your API Key
- Log in to constants.io
- Click your profile icon in the sidebar
- Select API Keys
- Create a new key — choose scopes:
mcp:read(list tools),mcp:execute(run tools)
Using Your Key
Base URL
Idempotency (required for writes)
All write requests (POST, PUT, PATCH, DELETE) must include an
Idempotency-Key header — a UUID v4 generated per logical attempt — so
retries are safe by default:
Endpoints
| Method | Endpoint | Scope | Description |
|---|---|---|---|
GET | /v1/tools | mcp:read | List all available tools with schemas |
POST | /v1/run/:toolName | mcp:execute | Execute a tool by name |
GET | /v1/skill/:toolName | mcp:read | Get tool documentation (markdown) |
GET | /v1/skills/search | — | Search available tools |
POST | /v1/upload | — | Upload files for tool execution |
Example: List Tools
Example: Execute a Tool
running status with a runId to check later:
Example: Get Tool Documentation
?format=json for a structured response with metadata.
MCP Integration
For AI agent workflows, Constants supports the Model Context Protocol (MCP) — a standard for agents to discover and execute tools.Connecting an Agent
Configure your AI agent or IDE to use the Constants MCP server:Supported Methods
| Method | Description |
|---|---|
initialize | Returns server capabilities |
tools/list | Discover available tools (owned + shared) |
tools/call | Execute a tool with arguments |
ping | Keep-alive |
Tool Discovery
Executing a Tool
Slack Bot
Installing
- Go to your workspace settings in Constants
- Click Connect Slack
- Authorize the Constants bot for your Slack workspace
Using the Bot
Mention the bot in any channel or thread:Thread Context
When mentioned in a thread, the bot reads recent messages for context, enabling multi-turn interactions:Error Handling
All interfaces return consistent error responses:| Code | Meaning |
|---|---|
200 | Success |
400 | Bad Request — Invalid parameters (includes missing/invalid Idempotency-Key) |
401 | Unauthorized — Invalid or missing API key |
403 | Forbidden — Insufficient permissions |
404 | Not Found — Tool doesn’t exist |
409 | Conflict — duplicate credential name, or an Idempotency-Key request is still in flight |
422 | Unprocessable — Tool requires credentials not available, or Idempotency-Key reused with a different body |
429 | Too Many Requests — Rate limit exceeded |
500 | Server Error |
API Key Scopes
| Scope | Grants |
|---|---|
mcp:read | List tools, view schemas, download documentation |
mcp:execute | Execute tools via REST API and MCP |
Need Help?
Join Discord
Get help from the community
Contact Support
Reach out to our team
