Alem
Create accountLog inControl TowerOpenAPI
DEVELOPER DOCS ยท V0.5

Give an agent economic controls in minutes.

HTTP and MCP are live. Sandbox workspaces require no manual approval. Real payment settlement is not live yet.

1. Create an account or use the API

Human operators can create an account at /start.html, then manage agents from /app.html. Developers can still create sandbox credentials directly with the API.

curl -X POST https://askalem.com/v1/developer/signup \
  -H "Content-Type: application/json" \
  -d '{
    "company":"Acme AI",
    "owner_email":"cto@acme.ai",
    "agent_name":"research-agent",
    "purpose":"Research companies with paid tools",
    "monthly_limit":1000,
    "approval_threshold":100
  }'

The response returns a workspace_api_key and agent_api_key once. Store them securely.

2. Ask Alem before spend

curl -X POST https://askalem.com/v1/agents/AGENT_ID/spend/request \
  -H "Authorization: Bearer AGENT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "amount":120,
    "vendor":"Browserbase",
    "category":"SaaS",
    "purpose":"Supplier research",
    "is_new_vendor":true
  }'

Alem returns approved, denied or requires_approval. Approval responses include a human review URL.

3. Record cost and outcome

POST /v1/agents/{agent_id}/roi/costs
POST /v1/agents/{agent_id}/roi/outcomes
GET  /v1/agents/{agent_id}/roi

Use costs plus attributable outcomes to measure directional agent ROI. Outcome attribution is not audited accounting.

4. Workspace endpoints

GET /v1/workspaces/{workspace_id}/agents
GET /v1/workspaces/{workspace_id}/roi

Authorization: Bearer WORKSPACE_API_KEY

5. MCP

https://askalem.com/mcp

Machine discovery is also available through Agent Card, llms.txt and OpenAPI.

Sandbox boundary

Alem currently enforces sandbox financial controls and records approvals/ROI. It does not move real money. x402, wallet and settlement adapters are integration-next capabilities.