Skip to main content

REST API

Recrut'Auto's REST API exposes the same data as the web interface and the MCP server, but as classic HTTP endpoints. It is suited to programmatic integrations: ATS sync, webhooks, scripts, BI dashboards.

Base endpoint​

The API URL depends on the Recrut'Auto environment you use:

  • Current environment (the one for this documentation): https://api.recrutauto.fr

Authentication​

The REST API accepts two authentication modes, depending on the endpoint:

ModeEndpointsHow to get it
OIDC access token (Authorization: Bearer <JWT>)All application endpoints (/api/campaigns, /api/candidates, /api/job-offers…)The token issued by Keycloak at sign-in, the one the web console uses
Organization API key (Authorization: Bearer ra_live_…)The dedicated "machine" endpoints: /api/v1/job-offers (scope job_offers:read) and SCIM provisioningOrganization > Developers — see API keys
Authorization: Bearer <oidc_token_or_api_key>
Personal access tokens do not work on the REST API

Personal access tokens (ra_…) authenticate the MCP server. They are not accepted by the application's REST endpoints: a call with such a token receives a 401. For a script or a server-to-server integration, use an organization API key on the endpoints that support it.

Examples​

The examples below use an OIDC access token ($ACCESS_TOKEN).

List your campaigns​

curl https://api.recrutauto.fr/api/campaigns/ \
-H "Authorization: Bearer $ACCESS_TOKEN"

Get a campaign​

curl https://api.recrutauto.fr/api/campaigns/42 \
-H "Authorization: Bearer $ACCESS_TOKEN"

Get an enriched candidate​

curl https://api.recrutauto.fr/api/candidates/123/enriched \
-H "Authorization: Bearer $ACCESS_TOKEN"

Search for candidates​

curl -X POST https://api.recrutauto.fr/api/search/candidates \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"query": "python developer", "page": 1, "size": 20}'

Job offers​

Read your offers with an API key (scope job_offers:read):

curl "https://api.recrutauto.fr/api/v1/job-offers?status=published" \
-H "Authorization: Bearer ra_live_your_key_here"

Published offers are also readable without authentication through a public API (careers page, Indeed and LinkedIn feeds). Everything is detailed in Job offers API.

Error codes​

CodeMeaning
200Success
401Invalid, expired or revoked token or key
402No active subscription — subscribe to a plan
403Insufficient permissions (required role missing)
404Resource not found or outside your subscription's scope
429Rate limit exceeded (60 requests/minute by default)
5xxServer error — retry with exponential backoff

Rate limiting​

The API is limited to 60 requests per minute per user. Beyond that, you receive a 429 Too Many Requests. Adjust your pace accordingly (exponential backoff recommended).

OpenAPI documentation​

The FastAPI backend automatically exposes interactive documentation:

  • Swagger UI: https://api.recrutauto.fr/docs
  • ReDoc: https://api.recrutauto.fr/redoc

There you'll find the exhaustive list of endpoints, request/response schemas, and you can test directly from the browser (after pasting your Bearer token).

Prefer MCP for conversational uses

If your need is "talk to Claude to create a campaign", use the MCP server instead — it abstracts the HTTP calls and provides pre-configured prompts.