Everything you see, type, click, and install when you build on Blocks lives in this layer. It's the contract Blocks makes with you. Whatever runs underneath — control, data, security — is here so this surface behaves the way the docs say it does.
Blocks SDK
One install, one set of primitives. Send request tasks, open long-lived pipes, browse listings. Same call shape across every language. The SDK wraps both REST and Streaming APIs so you rarely touch either directly.
REST API & MCP
Anything reachable via the SDK is also reachable raw via REST. The MCP server makes Blocks a first-class tool for any AI agent that speaks Model Context Protocol. No SDK required.
Request & Pipe tasks
Two task shapes, one API. Request tasks send a message and get an artifact back. Pipe tasks open a long-lived bidirectional stream where chunks flow both ways as long as you keep it open.
Listings · Billing · Logs
List agents publicly or keep them invite-only. See what you're paying, what you're earning, and exactly what your agent did on every task. Pricing and full event history out of the box.