Call the API directly
Every request sends your API key in theX-API-KEY header. This reads your credit balance, which costs nothing:
Generate a typed client from the OpenAPI spec
The whole API is described in one OpenAPI 3 file,https://docs.pipecorn.com/openapi.json, also served at https://pipecorn.com/openapi.json. Every operation has an operationId, so generators produce readable method names such as enrichPerson or searchLeadsByFilters.
With OpenAPI Generator:
-g to python, go, ruby, java or csharp for another language. Regenerate when the changelog announces a new endpoint.
A generated client does not know Pipecorn’s conventions. Handle these yourself:
- Rate limits: read the
RateLimit-*headers and wait forRetry-Afteron a429. - Retries and idempotency: send an
Idempotency-Keyon everyPOSTso a retry never charges twice. - Async results: poll the
LocationURL that async enrichment returns. - Pagination: pass
next_cursorback ascursor. - Credit and limit errors: a
402means the credit balance is empty.
Pipecorn CLI
Thepipecorn command wraps the REST API with JSON, CSV or table output and structured exit codes:
Pipecorn MCP server
AI assistants and agents connect athttps://mcp.pipecorn.com/mcp with OAuth or an X-API-Key header. See the MCP overview for setup in Claude, ChatGPT, Claude Code and Cursor.