CVPitch API, webhooks and MCP for developers
CVPitch developer docs: quickstart, REST API, OAuth 2.1 with PKCE, scopes, request IDs, no-AI uploads, schema extraction, signed webhooks and MCP.
The CVPitch API, together with signed webhooks and a remote MCP server, lets you connect candidate submission formatting to your ATS, CRM, automation platform or AI assistant. This page is an overview for developers and technical operations staff. For a non-technical summary, see integrations and the full list of features.
The design rule behind every interface: integrations can read metadata, upload CVs, request previews and export submissions a human has already approved, but nothing outside the CVPitch app can approve a submission.
Overview
| Item | Value |
|---|---|
| REST base URL | https://cvpitch.app/integrations/v1 |
| MCP endpoint | https://cvpitch.app/mcp |
| Authorisation server metadata | https://cvpitch.app/.well-known/oauth-authorization-server |
| Protected resource metadata | https://cvpitch.app/.well-known/oauth-protected-resource (REST) and .../oauth-protected-resource/mcp (MCP) |
| OpenAPI document | https://cvpitch.app/integrations/v1/openapi.json (OpenAPI 3.1, public) |
| Format | JSON, except document upload (multipart) and file download |
| Authentication | Authorization: Bearer YOUR_TOKEN with an API key or OAuth access token |
| Health check | https://cvpitch.app/api/v1/health/live (no credentials) |
| Request IDs | X-Request-Id on every response; your own 8–64 character ID is adopted |
Browser session cookies do not authorise the API. Requests with an Origin header from an untrusted origin are refused.
Quickstart
Five calls take you from nothing to an uploaded CV. Use a synthetic CV you wrote yourself, never a real candidate's, while you build.
- Check the service is up.
GET https://cvpitch.app/api/v1/health/liveneeds no credentials and returns{"status": "alive"}. - Read the contract. The OpenAPI 3.1 document at
https://cvpitch.app/integrations/v1/openapi.jsonis public, so you can generate a client or import it into Postman, Zapier, Make or n8n before you have a key. - Create a credential. A workspace owner creates an API key under Integrations with only the scopes you need, or your app uses OAuth 2.1 with PKCE (see below). Test it with
GET /integrations/v1/me. - Upload a CV.
POST /integrations/v1/documentsas multipart form data with thefile, anIdempotency-Keyheader and, optionally, aprocessingfield. The response contains asubmission_idand ajob_id. - Wait, then export. Poll
GET /integrations/v1/jobs/{id}or subscribe to thesubmission.ready_for_reviewwebhook. A recruiter approves the CV in CVPitch, and then you can export it (see the typical flow below).
An upload with no AI processing looks like this:
curl -X POST https://cvpitch.app/integrations/v1/documents \
-H "Authorization: Bearer $CVPITCH_KEY" \
-H "Idempotency-Key: upload-0001" \
-H "X-Request-Id: my-trace-0001" \
-F "file=@synthetic-cv.docx" \
-F "processing=verbatim"processing=ai (the default) runs AI extraction. processing=verbatim formats the CV by rules, keeping the candidate's wording exactly, with no AI call and no AI credits for PDFs with a text layer and Word files. Scans and images still go through AI text recognition (OCR) at 1 AI credit per page. If the same workspace uploads the same file with the same processing mode within 24 hours, and the first submission still exists, you get the existing IDs back with "reused": true and nothing is charged again.
Every response carries an X-Request-Id header. Send your own value of 8 to 64 letters, digits, dots, dashes or underscores to correlate calls with your logs; otherwise CVPitch creates one. Error bodies repeat it as request_id, so quote it when you contact support.
To connect an AI assistant instead, point an MCP client at https://cvpitch.app/mcp; it discovers OAuth from the metadata above. To react to events, add a webhook endpoint and verify signatures as described in the webhooks section.
Authentication
API keys
A workspace owner creates API keys in CVPitch and chooses their scopes. A key is shown once, stored hashed and can be revoked at any time. Treat it like a password: keep it in a secrets manager, never in a URL or a chat message. Each key acts on behalf of the member who created it, so access ends if that membership is removed.
OAuth 2.1 with PKCE
Third-party applications and AI assistants use the authorisation code flow with PKCE:
- Discover the endpoints from the authorisation server metadata.
- Send the user to
/oauth/authorizewithresponse_type=code, yourclient_id, an exact registeredredirect_uri, the requestedscope, astatevalue, acode_challengewithcode_challenge_method=S256, and aresourceparameter set to the REST base URL or the MCP endpoint. - The user signs in to CVPitch and sees a consent screen naming the workspace and the permissions requested.
- Exchange the code at
/oauth/tokenas a form post withgrant_type=authorization_code, thecode, yourclient_id, the sameredirect_uriandresource, and yourcode_verifier. Codes are single-use and expire quickly. - Use the access token as a bearer token. Tokens are short-lived and bound to one audience: a token issued for the REST API does not work on the MCP endpoint, and the reverse.
Only S256 is supported for PKCE, and public clients do not use a client secret.
Scopes
| Scope | Allows |
|---|---|
metadata:read | List templates, submissions, jobs, exports, usage and events. No candidate names or CV text. |
candidate:read | Read selected candidate facts with evidence, and run schema extraction (1 AI credit per call). Only when the workspace owner has enabled candidate sharing |
drafts:write | Upload CVs, create upload links, suggest changes for human review, import a selected Lever attachment; over MCP also edit facts, run AI writing and job match (with candidate:read), and manage shortlists |
previews:write | Queue draft PDF previews |
exports:write | Export a submission that already has a valid human approval |
artifacts:read | Create short-lived download handles and download approved files |
shares:write | MCP only: send work outside CVPitch (client share links, shortlist sharing, ATS pushes, the public talent page) |
workspace:write | MCP only: change workspace settings, client templates, email intake and saved AI prompts (owner actions need an owner) |
submissions:delete | MCP only: permanently delete submissions |
Request the smallest set you need. A request without the right scope returns 403 with insufficient_scope and the required scope in the WWW-Authenticate header.
Endpoints
All paths are relative to https://cvpitch.app/integrations/v1.
| Method | Path | Scope | Purpose |
|---|---|---|---|
| GET | /me | any | The workspace, credential type and granted scopes; useful as a connection test |
| GET | /event-types | any | Every event type with a description |
| GET | /templates | metadata:read | List client templates with IDs and versions |
| GET | /usage | metadata:read | Read workspace usage for the period |
| GET | /submissions | metadata:read | List submissions (metadata only), with limit and offset |
| GET | /submissions/{id} | metadata:read | Stage, current revision, fingerprint and a review link |
| POST | /documents | drafts:write | Upload a CV as multipart form data |
| GET | /jobs/{id} | metadata:read | Processing job status |
| POST | /submissions/{id}/evidence | candidate:read | Read selected facts by field path, with masked evidence |
| POST | /submissions/{id}/proposals | drafts:write | Stage suggested changes for human review |
| POST | /submissions/{id}/extract | candidate:read | Extract values into your own JSON Schema, with unverified paths listed |
| POST | /submissions/{id}/previews | previews:write | Queue a draft PDF preview |
| POST | /submissions/{id}/exports | exports:write | Export an approved submission |
| GET | /exports/{id} | metadata:read | Export status and file IDs |
| POST | /artifact-handles | artifacts:read | Create a five-minute download handle for an approved file |
| GET | /artifacts/{handle} | artifacts:read | Download the approved DOCX or PDF |
| GET | /events | metadata:read | Poll events with a cursor, optionally filtered by type |
| GET, POST | /hooks | metadata:read (owner credential) | List or create REST hook subscriptions for one event type |
| DELETE | /hooks/{id} | metadata:read (owner credential) | Remove a REST hook subscription |
| POST | /connectors/import | drafts:write | Import a selected Lever attachment |
| POST | /connectors/attach-back | exports:write and artifacts:read | Attach an approved file to a Lever opportunity |
Typical flow
POST /documentswith the CV file and anIdempotency-Keyheader. The response contains asubmission_idand ajob_id.- Poll
GET /jobs/{id}, or listen for webhooks, until extraction finishes. - A recruiter reviews and approves the submission in CVPitch, using the
review_urlfromGET /submissions/{id}. POST /submissions/{id}/exportswith theexpected_revisionandfingerprintfrom the submission's metadata and anidempotency_key. If the submission changed or is not approved, you get409(for exampleapproval_stale).GET /exports/{id}until the export is ready, then create a handle withPOST /artifact-handlesand download the file within five minutes.
Idempotency
Operations that create work take an idempotency key of 1 to 100 characters: the Idempotency-Key header on uploads and the idempotency_key field on exports and Lever operations. Repeating a request with the same key and the same data returns the original result instead of doing the work twice. Reusing a key with different data returns 409 with idempotency_conflict. Generate a new key for each logical operation and reuse it only for retries.
Pagination and events
GET /submissions and GET /events accept limit from 1 to 100, and GET /submissions also takes an offset up to 10,000. GET /events takes an after cursor and returns items plus next_cursor; store the cursor and pass it on the next call. Events contain IDs, statuses and timestamps only.
Errors and limits
Errors use a consistent JSON shape: an error object with a code, a human-readable message, the request_id (also sent as the X-Request-Id header) and, for some errors, a content-free details object. Common statuses are 401 (missing, expired or revoked token), 403 (insufficient scope or a sharing policy not enabled), 404, 409 (stale revision, missing approval, idempotency conflict) and 429 (rate limited).
- Limit errors are typed so your code can react:
credits_exhausted(402) when AI credits run out,export_limit(429) when the plan's exports are used, andextraction_limitwhen the upload allowance is used. Theirdetailsholdresets_at(Unix seconds, ornull),top_up_by(the display names of workspace owners who can buy more) andaction(buy_credits,upgradeorwait). - Failed processing jobs never use an export or AI credit, and exporting a submission again, for example with another template, does not use another export.
- Each credential can make up to 120 requests per minute.
- Uploads accept the same files as the app: PDF, DOCX, DOC, RTF, ODT and TXT (1 MiB at most), and PNG, JPEG, WebP or TIFF images. Files can be up to 10 MiB, PDFs up to 20 pages, multi-page TIFF scans up to 10 pages, and extracted text up to 120,000 characters. Your plan's upload allowance and per-workspace upload rate limits apply.
- File types are recognised by content: an unsupported type returns
415(unsupported_type) and a file that does not match its extension returns422(invalid_signature). - Scanned PDFs and images are read with OCR at 1 AI credit per page; text PDFs and Word files never use credits. An image upload is refused with
402(credits_exhausted) when the workspace has no credits left. A scanned PDF is detected during processing, so if credits run short its job fails with the same code. - Download handles expire after five minutes and only work with the credential that created them.
- MCP tool arguments are limited to 64 KiB and results to 512 KiB.
Schema extraction
If your ATS or data warehouse has its own field names, post a JSON Schema and CVPitch returns values for one submission in that shape. Send POST /submissions/{id}/extract with the schema in the request body, using a token with candidate:read. The workspace owner must have enabled candidate sharing; otherwise the call returns 403. Extraction reads the submission's source text, so treat the result as candidate data.
- Supported schema keywords:
object,array,string,number,integer,boolean,enumanddescription. Nesting up to 4 levels, up to 60 properties, and at most 8 KB of schema. - Grounded in the source: values come from the submission's own source text. The output is validated against your schema, and every string is checked for word-for-word support in the source. Any path that is not supported is listed in
unverified_pathsso you can route it for review. - Cost: 1 AI credit per call, reserved before the call and released if it fails. Workspaces using the demo's fake AI get deterministic results.
- Read only: extraction never changes the submission and cannot approve it.
Webhooks
Webhooks deliver an HTTPS POST with a JSON body to your endpoint. Workspace owners add webhook endpoints in the app, or create REST hook subscriptions through the API. Destinations must be HTTPS addresses that resolve to public IP addresses; redirects are not followed. Event types are:
| Event | When it fires |
|---|---|
submission.ready_for_review | A CV finished processing and is ready for human review |
submission.approved | A recruiter approved the current revision |
export.completed | An approved DOCX and PDF pair is ready to download |
ats.pushed | Approved files were attached to a candidate record in a connected ATS or CRM |
share.created | A tracked client share link was created |
share.viewed | A client opened a shared submission |
share.feedback | A client left feedback on a shared submission |
talent.enquiry | A visitor sent an enquiry from the agency talent page |
job.queued, job.running, job.succeeded, job.cancelled | A processing or rendering job changed state |
job.failed | Processing or rendering failed (error code only) |
GET /event-types returns the current list. Payloads carry IDs, statuses, counts and relative links only, never candidate text.
REST hooks
Automation platforms that use REST hooks can subscribe without the app: POST /hooks with {"event": "submission.approved", "target_url": "https://..."} using an API key or OAuth token that belongs to a workspace owner. The response includes the hook ID and a signing secret, shown once. Deliveries are signed exactly like other webhooks. Remove the subscription with DELETE /hooks/{id}.
Verifying signatures
Each delivery includes three headers: X-CVPitch-Event (the event ID), X-CVPitch-Timestamp (Unix seconds) and X-CVPitch-Signature (the text v1= followed by a hex-encoded digest). To verify:
- Read the raw request body as bytes, before any JSON parsing.
- Build the signed string: the timestamp, a full stop, the event ID, a full stop, then the raw body.
- Compute HMAC-SHA256 of that string with your webhook signing secret and hex-encode it.
- Compare
v1=plus your result with theX-CVPitch-Signatureheader using a constant-time comparison. - Reject deliveries whose timestamp is outside your replay window, for example five minutes.
- Deduplicate on the event ID, because a delivery can be retried.
Respond with any 2xx status quickly and do slow work afterwards. Each event gets up to five delivery attempts, with increasing delays between them.
MCP server
The remote MCP server at https://cvpitch.app/mcp uses the Streamable HTTP transport with JSON responses over POST; the protocol version it supports is returned when your client initialises (currently 2025-11-25). Clients authenticate with an OAuth access token issued for the MCP resource, or with an API key created with MCP access. Dynamic client registration accepts https redirect URIs, loopback http://127.0.0.1 or http://localhost on any port, and the callback schemes of supported desktop apps. Setup steps for Claude, ChatGPT, Copilot Studio, Gemini, Cursor, VS Code and other clients are on the AI assistants page. Tools are listed according to the scopes granted. The server exposes about 130 tools; tools/list returns each one with its input schema and read-only, destructive and open-world hints. By area:
| Area | Example tools | Scopes |
|---|---|---|
| Search and status | search, fetch, get_workspace_summary, list_submissions, get_submission, list_jobs, get_usage | metadata:read |
| Editing | edit_submission_facts, restore_revision, compare_submissions, reuse_submission_for_client, delete_submission | drafts:write, submissions:delete, metadata:read |
| AI writing | write_summary, rewrite_section, proofread_submission, translate_submission, get_ai_job, accept_ai_proposal | drafts:write |
| Job match and pitches | save_job_match, run_job_match, save_job_pitch, get_job_match | drafts:write, metadata:read |
| Transcripts | list_transcripts, get_transcript, delete_transcript | metadata:read, drafts:write |
| Previews, exports and files | create_draft_preview, export_approved_submission, get_export_status, create_artifact_handle | previews:write, exports:write, artifacts:read |
| Shortlists | create_shortlist, add_shortlist_candidate, reorder_shortlist_candidates, get_shortlist | drafts:write, metadata:read |
| Sending outside CVPitch | create_client_share_link, share_shortlist, revoke_client_share, push_to_ats, update_talent_page_settings | shares:write |
| Workspace and templates | update_workspace_settings, create_client_variant, list_template_layouts, update_email_intake_settings, create_saved_ai_prompt, get_credit_balance | workspace:write, metadata:read |
| Uploads and ATS | create_upload_link, search_ats_candidates, import_ats_attachment, import_selected_attachment | drafts:write, metadata:read |
| Candidate evidence | get_candidate_evidence, suggest_candidate_changes | candidate:read, drafts:write |
| Free text helpers | anonymise_cv_text, find_personal_data, check_cv_keywords, check_bias_language, calculate_time_savings, calculate_formatting_cost | metadata:read |
Every tool runs as the connected member, so the same role, plan, quota and credit checks apply as in the app, and owner-only actions need an owner. There is no approval tool. Approval and the steps where a person vouches for something (resolving review flags, template acceptance, candidate identity and consent, transcript permission) stay in the app, as do sign-in, billing, SSO, member invitations, API keys and integration credentials. Tools whose results depend on candidate content (AI writing, job match, diffs, transcripts, privacy review) are refused unless sharing is on and the connection holds candidate:read. Results that can contain candidate content return only IDs, stages, numbers and links unless the workspace owner has enabled assistant sharing and the connection holds candidate:read; even then raw CV text, recruiter notes and contact blocks are withheld, and free text is masked by the sharing policy (approximate, not an anonymity guarantee). Writes are audited as mcp_tool:<name> against the connection. Connections authorised before 13 October 2026 keep the original 16 tools until they reconnect. Tools that queue AI jobs derive an idempotency key from the member, tool and arguments, so a retried call returns the same job. Tool errors come back as isError results with an error code and, for invalid arguments, the field names. The free text helpers process text sent in the call and store nothing.
search and fetch return submission metadata and review links, never candidate content. create_upload_link returns a short-lived link that opens the upload screen in the recruiter's signed-in browser, so no file passes through the assistant. export_approved_submission consumes an existing human approval and never grants one. suggest_candidate_changes stages a proposal for a recruiter to accept. Read the Model Context Protocol entry and our MCP guide for background.
Data handling for integrators
- Metadata endpoints never return candidate names or CV text.
get_candidate_evidenceand the evidence endpoint return only the field paths you request, with quotes masked according to the workspace sharing policy. Recruiter notes and raw source blocks are withheld.- Anything returned to an AI assistant is processed by that assistant's provider.
- Revoking a key, removing a member or deleting a submission ends access immediately.
Connectors and email intake
Native ATS and CRM connectors (Greenhouse, Lever, Workable, Ashby, Teamtailor, Recruitee, SmartRecruiters, Recruit CRM, Crelate and Manatal) and format-by-email are set up by a workspace owner in the app rather than through this API, and recruiters import and attach files from the app. Their results reach your systems through the same events: an imported or emailed CV produces submission.ready_for_review, and attaching approved files to an ATS produces ats.pushed. The older /connectors/import and /connectors/attach-back endpoints and the import_selected_attachment MCP tool use a separate Lever key saved under Integrations. See integrations for setup.
See security for the wider picture. API access is included on every plan; see pricing.
Frequently asked questions
Can the API approve a submission?
No. Approval is a human action in the CVPitch app, tied to the exact revision, template version and contact-removal policy. The API and MCP tools can only export submissions that are already approved.
Which events can I subscribe to?
Submission ready for review, submission approved, export completed, files attached to an ATS, share link created, viewed and answered, talent page enquiry, and job queued, running, succeeded, cancelled or failed. Payloads carry IDs, statuses and links only. Poll GET /events if you cannot receive webhooks.
Can I upload a CV without AI processing?
Yes. Send processing=verbatim with the upload. CVPitch lays the CV out by rules, keeping the candidate's wording exactly, with no AI call and no AI credits for PDFs with a text layer and Word files (scans and images still use AI text recognition at 1 AI credit per page); review and approval work as usual. See AI transparency.
Do you have SDKs or a Zapier app?
There are no official SDKs, and dedicated Zapier, Make and n8n apps are not published yet. The API is plain HTTPS and JSON with a public OpenAPI 3.1 document and REST hooks, so the platforms' generic webhook and HTTP steps work with it; see integrations.
How do I test without real candidate data?
Use synthetic CVs that you write yourself, never real candidates' documents, while you build. Start with a free trial workspace and create an API key with only metadata:read while you explore.
Turn your next CV into a client-ready submission
Upload a candidate CV, check every fact against the source, remove contact details and export your agency’s branded DOCX and PDF. Your first 10 CVs are free.