REST API
Overview
Create credited links from your tools and AI assistants.
Build NinjaBuy links into your publishing workflow. Partners and creators can convert links in bulk, collect results from background jobs, and connect AI assistants through MCP. Links credit the signed-in NinjaBuy account; see Referrals for how visits, sign-ups and orders are counted.
Use a personal API key for REST scripts, or OAuth for an application acting for other customers. REST also accepts the same OAuth access token as MCP. There is no anonymous or identifier-only link creation.
- Quickstart: create your first links with curl.
- Authentication: choose API keys or OAuth.
- API keys: create and revoke credentials for your scripts.
- Links and Jobs: requests, results and batch processing.
- Search: find products or resolve a pasted marketplace link.
- Sheets: convert Google Sheets, XLSX or CSV into a credited XLSX workbook.
- Errors and Rate limits: handle failures and quotas.
- Use NinjaBuy in ChatGPT and Claude: connect an assistant and explore its tools.
- OpenAPI: the machine-readable API contract.