Quickstart
Semarize has two integration routes. Choose the one that fits your use case.
API Quickstart
Get your API key, create a run, and receive structured evaluation results. Three steps.
Prerequisites
- A Semarize workspace (sign up at app.semarize.com/signup)
- An API key generated from your workspace dashboard
- A Kit code - created in the Semarize app or provided by your team
Get your API key
Go to Integration → API in your workspace. Generate a key. Keys follow the format smz_live_*. Store it securely - you won't see the full key again.
https://api.semarize.comCreate a run
Send a POST to /v1/runs with your Kit code and conversation input.
Async
RecommendedReturns 202 immediately. Poll for results. Best for production.
Sync
Blocks until completion. Returns 200 with results inline. Falls back to 202 on timeout.
For sync mode, add "mode": "sync" to the request body. See the API Reference for full details.
Get your results
Poll GET /v1/runs/:runId until status is succeeded. The output field contains your structured results.
MCP Quickstart
Connect an MCP-compatible client (Claude Desktop, Cursor, or a custom agent) to Semarize. MCP requests use JSON-RPC 2.0 over HTTP.
Prerequisites
- A Semarize workspace
- A machine agent created in Integration → MCP → Agents
- Agent key and secret (shown once at creation)
- Scopes and tool permissions assigned to the agent
MCP boundary
MCP supports draft composition and safe inspection only. Publishing bricks and kits is not available through MCP - publish remains human-governed in the Semarize app.
Create a machine agent
Go to Integration → MCP → Agents in the Semarize app. Create a new agent and assign it:
- Scopes - which categories of tools it can access (e.g.
bricks:read,kits:create_draft) - Tool permissions - which specific tools are allowed (e.g.
bricks.list,kits.create_draft)
Save the agent_key and agent_secret. The secret is shown once and cannot be retrieved later.
Authenticate
Exchange your agent credentials for a short-lived access token.
Token lifetime
Access tokens expire after 15 minutes. Re-authenticate to get a new token. If your MCP client config shows a static bearer token, the token must be refreshed externally before it expires.
List available tools
Send a tools/list request to confirm your agent can see the tools it needs. Only tools the agent has both the scope and explicit permission for will appear.
If you see your expected tools in the response, the connection is working. If the list is empty, check that your agent has the correct scopes and tool permissions in the Semarize app.
Call a tool
Use tools/call to execute a tool. This example lists bricks in your workspace.
If you get a successful response with your bricks listed, MCP is working. You're ready to integrate.
Troubleshooting
401 UnauthorizedToken expired or missing. Re-authenticate to get a fresh token.Empty tools/listAgent is missing scopes or tool permissions. Check Integration → MCP → Agents.-32001 tool_forbiddenTool is not allowlisted for this agent. Add it in the agent’s tool permissions.-32602 Invalid paramsCheck required fields and value constraints for the tool.429 Rate limitedLimit is 60 requests/minute per agent. Wait for the Retry-After duration.