Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: MCP Reach Jobs API
description: '## MCP Reach API overview
This API lets you manage LinkedIn accounts connected to MCP Reach and query account activity.
The documented endpoints cover:
- listing and deleting LinkedIn accounts
- reading and updating account quotas
- reading request logs and aggregated request-log statistics
- querying LinkedIn `/me` through the account proxy
## API documentation
Interactive reference (Scalar): **`/scalar`** (alias: `/api/scalar`). Swagger UI: `/docs`. ReDoc: `/redoc`.
## Authentication
1. Open the MCP Reach frontend.
2. Go to **API Keys** and create/retrieve your API key.
3. Send this key in every request header:
`X-API-Key: `
Requests without a valid `X-API-Key` are rejected.
## Errors
Every error response carries `detail` (unchanged, for existing clients) and an `error` object built for agents: `code` (stable identifier such as `daily_quota_reached`), `message`, `status`, `safe_to_retry` (whether the same call can succeed if repeated), `retry_at` (ISO 8601, when it can) and `remediation` (what to do instead). Act on `code`, never on the wording of `message`.
## Idempotency
Send an `Idempotency-Key` header (any string up to 200 characters, a UUID is fine) on any POST/PATCH/DELETE under `/api/linkedin/`. Repeating the request with the same key returns the stored response with `Idempotent-Replayed: true` and does nothing on LinkedIn; the same key with a different body is refused with `409 idempotency_key_reused`. Only successful responses are kept; keys expire after 24 hours.
## Webhooks
Register an endpoint under `/api/webhooks/endpoints` to be called when a conversation gets a new message, the account gains a new connection, an account changes connection state, or a daily quota is close to or at its limit (`GET /api/webhooks/events` lists the types). Deliveries are signed: `Reach-Signature: t=,v1=.'')>`, retried for about 15 hours, and replayable from the dashboard or the API.'
version: 0.1.0
tags:
- name: Jobs
paths:
/api/jobs/actions:
get:
tags:
- Jobs
summary: Actions a job can run, with their payload fields
operationId: list_actions_api_jobs_actions_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
additionalProperties: true
type: object
title: Response List Actions Api Jobs Actions Get
security:
- XApiKeyAuth: []
/api/jobs:
post:
tags:
- Jobs
summary: 'Create a job: a batch of actions spread over the account''s working window'
operationId: create_job_api_jobs_post
security:
- XApiKeyAuth: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/JobCreateIn'
responses:
'201':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Create Job Api Jobs Post
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
get:
tags:
- Jobs
summary: List jobs
operationId: list_jobs_api_jobs_get
security:
- XApiKeyAuth: []
parameters:
- name: account_id
in: query
required: false
schema:
anyOf:
- type: integer
- type: 'null'
title: Account Id
- name: status
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Status
- name: limit
in: query
required: false
schema:
type: integer
maximum: 200
minimum: 1
default: 50
title: Limit
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: array
items:
type: object
additionalProperties: true
title: Response List Jobs Api Jobs Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/jobs/{job_id}:
get:
tags:
- Jobs
summary: One job with its items
operationId: get_job_api_jobs__job_id__get
security:
- XApiKeyAuth: []
parameters:
- name: job_id
in: path
required: true
schema:
type: integer
title: Job Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Get Job Api Jobs Job Id Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/jobs/{job_id}/cancel:
post:
tags:
- Jobs
summary: Cancel the pending items of a job
operationId: cancel_job_api_jobs__job_id__cancel_post
security:
- XApiKeyAuth: []
parameters:
- name: job_id
in: path
required: true
schema:
type: integer
title: Job Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Cancel Job Api Jobs Job Id Cancel Post
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/jobs/{job_id}/pause:
post:
tags:
- Jobs
summary: Pause a job
operationId: pause_job_api_jobs__job_id__pause_post
security:
- XApiKeyAuth: []
parameters:
- name: job_id
in: path
required: true
schema:
type: integer
title: Job Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Pause Job Api Jobs Job Id Pause Post
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/jobs/{job_id}/resume:
post:
tags:
- Jobs
summary: Resume a paused job; pending items are re-planned from now
operationId: resume_job_api_jobs__job_id__resume_post
security:
- XApiKeyAuth: []
parameters:
- name: job_id
in: path
required: true
schema:
type: integer
title: Job Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Resume Job Api Jobs Job Id Resume Post
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
JobCreateIn:
properties:
account_id:
type: integer
title: Account Id
action:
type: string
title: Action
description: send_message | connect | visit_profile | comment_post
items:
items:
additionalProperties: true
type: object
type: array
maxItems: 500
minItems: 1
title: Items
description: One object per action; fields depend on the action (GET /api/jobs/actions).
label:
anyOf:
- type: string
maxLength: 200
- type: 'null'
title: Label
description: Free text shown in the dashboard and in webhook events.
window_start:
anyOf:
- type: string
- type: 'null'
title: Window Start
description: HH:MM in the job's timezone; default 09:00.
window_end:
anyOf:
- type: string
- type: 'null'
title: Window End
description: HH:MM in the job's timezone; default 18:00.
days:
anyOf:
- items:
type: string
type: array
- type: 'null'
title: Days
description: Weekdays the job may run, e.g. ["mon", "tue"]; default Monday to Friday.
timezone:
anyOf:
- type: string
- type: 'null'
title: Timezone
description: IANA zone; default derived from the account's proxy country.
type: object
required:
- account_id
- action
- items
title: JobCreateIn
description: A batch of LinkedIn actions Reach executes over time (see app/services/jobs.py).
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
securitySchemes:
HTTPBearer:
type: http
scheme: bearer
APIKeyHeader:
type: apiKey
in: header
name: X-API-Key
XApiKeyAuth:
type: apiKey
in: header
name: X-API-Key
description: Create/retrieve the key in the frontend API Keys page and send it in this header.