# Kinlead REST API
> Kinlead's Agent API is plain REST with an OpenAPI schema. Read leads, manage lead finders, check the send schedule and reply in threads from scripts and custom agents.
- HTML: https://getkinlead.com/integrations/rest-api
- Markdown: https://getkinlead.com/integrations/rest-api.md

JSON over HTTPS under /api/agent/v1, a Bearer key from the API keys page, and an OpenAPI schema that lists every route.

## Setup

1. **Set up Kinlead first.** Create your Kinlead account, connect your LinkedIn account, and fill in the Workspace page with what you sell and who buys it. Your assistant reads that profile, so a vague one gives it nothing true to work with.
2. **Create an API key.** Open the API keys page in Kinlead and create a key named after the client, so you can tell keys apart later. Copy it once. Revoking it from that page cuts that client off.
3. **Read the schema.** Fetch https://getkinlead.com/api/agent/v1/openapi.json. It is the source of truth for paths, parameters and request bodies.
4. **Make a first call.** Call GET /api/agent/v1/context with your key in the Authorization header. A JSON description of your workspace means you are set up.

## First calls

Send the key on every request. Keys are never accepted in a query string. POST, PUT, PATCH and DELETE calls take JSON bodies with Content-Type: application/json.

```
curl https://getkinlead.com/api/agent/v1/context \
  -H "Authorization: Bearer <your-kinlead-api-key>"

curl "https://getkinlead.com/api/agent/v1/leads?groupId=<group-id>&minFitScore=80&sortBy=fit_score_desc&limit=100" \
  -H "Authorization: Bearer <your-kinlead-api-key>"
```

## What the routes cover

The REST API and the MCP server reach the same workspace. These are the main groups. The schema has the full list.

- /context, /stats, /workspaces and /workspaces/switch for readiness and the workspaces you own
- /product-profile and /product-profile/analyze for the profile your leads are scored against
- /agents and /agents/draft to create, edit, pause, resume and delete lead finders
- /groups, /leads, /leads/import, /leads/export and /leads/stop-outreach for lead lists
- /activity, /scheduled-actions and /scheduled-actions/run for past runs and upcoming sends
- /conversations, /inbox and their reply routes for threads and replies
- /settings for limits and the workspace time zone

## Behavior to plan for

Lead discovery is asynchronous. Creating a lead finder starts its first run, then it runs once a day. Poll the activity route rather than expecting leads in the create response.

Timestamps are UTC. The workspace counts daily limits in its own time zone, and outreach only sends inside each lead finder's send window. Requests are rate limited, and a 429 means wait before you retry. After a timeout on a create, list agents before trying again.

## What a connected assistant cannot do

The tools cover the work inside a workspace. They do not cover account creation, billing, connecting LinkedIn, creating or deleting workspaces, or minting API keys. Those stay with you in the Kinlead app.

No assistant ever sees your LinkedIn password. Kinlead connects your LinkedIn account through Unipile, a third-party LinkedIn provider, and every invite and message goes out from that account at a human pace, within the daily caps and sending hours you choose.

LinkedIn limits automation tools and can restrict accounts. Pacing and limits lower that risk. They do not remove it, and an assistant that asks you to raise limits does not change that.

## Related

- [MCP server](https://getkinlead.com/integrations/mcp.md): The same actions as MCP tools.
- [OpenClaw](https://getkinlead.com/integrations/openclaw.md): A local agent using these routes.
- [Agent API and MCP](https://getkinlead.com/features/agent-api-and-mcp.md): The feature overview.

## Frequently asked questions

**Is there an SDK?**

Kinlead publishes an OpenAPI schema rather than an SDK. Most OpenAPI code generators can build a client from it.

**Can I send LinkedIn messages through the API?**

You can reply in existing threads, and campaign outreach goes out on the schedule Kinlead plans. Every send uses your connected LinkedIn account and counts against your daily limits.

**Are there webhooks?**

No. The Agent API does not push events to your server. To react to new replies from a script, poll the inbox or conversations routes on a schedule. Kinlead also emails you when a reply arrives.

**Does connecting an AI app cost extra?**

No. API and MCP access are part of Pro, which is $99 a month. Connections need an active subscription. The AI app you connect is billed by its own maker.

[Create a Kinlead account](https://getkinlead.com/signup) or [book a call](https://getkinlead.com/demo) to talk through pricing and setup.
