Release candidate — 1.0.0-rc.6
StitchAPI

StitchAPI

API stitching: turn any API into a typed, resilient function — declare an endpoint once and call it like a local function, for humans and agents alike.

A stitch is a typed, declarative, composable unit that turns one endpoint into a resilient, validated, observable function — you declare it once, and your code, the CLI, and an agent all call it without ever touching a credential. Keep the fetch or axios you already have: it is the adapter underneath, and a stitch sits above it, turning an endpoint into a function rather than replacing the transport.

import {  } from 'stitchapi';

const  = <{ : number; : string }>(
    'https://api.example.com/users/{id}',
);

const  = await ({ : { : 1 } });

New here? Install the runtime and declare your first stitch in five minutes with the Quickstart. For the why behind it, read the Introduction and The stitch primitive.

Explore the docs

Driving stitches from an agent? Head to Use from an agent — one context-frugal run_stitch tool, the capability boundary, and the auto-generated llms.txt.

On this page