Skip to main content
CornectAPI Docsv1
Sign inGet an API tokenGet started free

API, CLI and MCP

The same actions are available three ways: the REST API directly, the CLI, and the MCP server for Claude and other agents. This is the map between them.

Why the names differ#

They are not three spellings of one scheme — each surface follows the convention its callers expect. An agent picks a tool by reading its name, so MCP tools are verb-first and self-describing (get_credit_balance). A CLI groups subcommands under a noun so related work sits together (cornect export create, … status, … download). REST addresses resources by path (GET /credits).

Renaming any of them to match the others would break published agent configurations and shipped scripts to buy consistency a table provides for free. So: the table.

The map#

ActionRESTMCP toolCLI
Search companiesPOST /companies/searchsearch_companiescornect search
Count matches exactlyPOST /companies/countscount_companiescornect count
Get one companyGET /companies/{company_id}get_companycornect company get
List a company's job postings
REST only for now — a CLI command and an MCP tool are planned.
GET /companies/{company_id}/job-postings
Check credit balanceGET /creditsget_credit_balancecornect credits
Price an export before payingPOST /exports/previewpreview_exportcornect export preview
Create an exportPOST /exportscreate_exportcornect export create
Check export statusGET /exports/{export_id}get_export_statuscornect export status
Get a download linkPOST /exports/{export_id}/downloaddownload_exportcornect export download
A dash means the surface has no equivalent yet

Not every action exists everywhere. Where a cell is empty the action is reachable through the REST API and the others have not caught up — shown rather than omitted, so a gap is something you can see instead of something you discover.

Which one to use#

REST when you are building software against Cornect. CLI for scripts, CI and one-off work from a terminal — every command speaks JSON and CSV. MCP when you want Claude to do the work for you. All three authenticate with the same cornect_ token and spend credits identically: searching and counting are free, exports charge per new company.