> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kudohires.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Analyse one candidate against a search

> Scores one person (0-100) against the search's description and notes, with strengths, concerns and what to ask. Send a LinkedIn profile URL (Kudo Hires looks the profile up) or the profile text yourself. Nothing is added to the search's pipeline and nobody is contacted. Each key can run a limited number of analyses per UTC day (50 by default). Takes 5-20 seconds. Scope `candidates:analyze`.




## OpenAPI

````yaml /openapi.json post /jobs/{job_id}/analyze-candidate
openapi: 3.1.0
info:
  title: Kudo Hires API
  version: 1.1.0
  summary: >-
    Create searches, read their candidates, find more candidates and analyse one
    candidate against a search.
  description: >
    One key per workspace. Nothing here contacts a candidate or a client. New
    candidates land on the search's pipeline at stage "sourced" for the
    recruiter to review, tagged "Web check pending". Every answer is JSON. Lists
    are pages ({data, next_cursor, has_more}); every error is {"error": {"code",
    "message"}}.
  contact:
    name: Kudo Hires
    url: https://app.kudohires.com
  license:
    name: Proprietary
    identifier: LicenseRef-KudoHires
servers:
  - url: https://app.kudohires.com/api/v1
    description: Production.
security:
  - ApiKey: []
tags:
  - name: Workspace
    description: Who you are.
  - name: Searches
    description: The searches (job openings) of the workspace.
  - name: Candidates
    description: The people on a search.
  - name: Find more candidates
    description: Queue a search for more candidates and follow it.
  - name: Analyse a candidate
    description: >-
      Score one person against a search, from a LinkedIn URL or pasted profile
      text.
paths:
  /jobs/{job_id}/analyze-candidate:
    post:
      tags:
        - Analyse a candidate
      summary: Analyse one candidate against a search
      description: >
        Scores one person (0-100) against the search's description and notes,
        with strengths, concerns and what to ask. Send a LinkedIn profile URL
        (Kudo Hires looks the profile up) or the profile text yourself. Nothing
        is added to the search's pipeline and nobody is contacted. Each key can
        run a limited number of analyses per UTC day (50 by default). Takes 5-20
        seconds. Scope `candidates:analyze`.
      operationId: analyzeCandidate
      parameters:
        - $ref: '#/components/parameters/JobId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AnalyzeCandidateRequest'
            examples:
              request:
                $ref: '#/components/examples/analyze_candidate_request'
      responses:
        '200':
          description: The analysis.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CandidateAnalysis'
              examples:
                analysis:
                  $ref: '#/components/examples/analyze_candidate_response'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          description: >-
            No such search in this workspace (not_found), or no public data for
            this LinkedIn URL (profile_not_found; send profile_text instead).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  $ref: '#/components/examples/error_not_found_response'
        '422':
          $ref: '#/components/responses/Unprocessable'
        '429':
          description: >-
            This key has used today's analyses (daily_limit). The limit resets
            at 00:00 UTC.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                daily_limit:
                  $ref: '#/components/examples/error_daily_limit_response'
        '503':
          description: >-
            The analysis or the profile lookup is not switched on
            (not_configured) or temporarily unavailable (unavailable).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unavailable:
                  $ref: '#/components/examples/error_auth_unavailable_response'
components:
  parameters:
    JobId:
      name: job_id
      in: path
      required: true
      description: The search's id.
      schema:
        type: string
        format: uuid
  schemas:
    AnalyzeCandidateRequest:
      type: object
      additionalProperties: false
      description: Exactly one of linkedin_url or profile_text.
      properties:
        linkedin_url:
          type: string
          maxLength: 300
          description: A LinkedIn profile URL (linkedin.com/in/...).
        profile_text:
          type: string
          maxLength: 20000
          description: The profile or CV as text, when you have it or the URL is not found.
    CandidateAnalysis:
      type: object
      additionalProperties: false
      required:
        - analysis_id
        - job_id
        - linkedin_url
        - score
        - verdict
        - summary
        - strengths
        - concerns
        - missing_information
        - profile
      properties:
        analysis_id:
          type: string
          format: uuid
        job_id:
          type: string
          format: uuid
        linkedin_url:
          type:
            - string
            - 'null'
          description: The canonical profile URL analysed; null for profile_text.
        score:
          type: integer
          minimum: 0
          maximum: 100
        verdict:
          type: string
          enum:
            - strong_fit
            - possible_fit
            - not_a_fit
          description: strong_fit = 80+, possible_fit = 50-79, not_a_fit = below 50.
        summary:
          type: string
        strengths:
          type: array
          items:
            type: string
        concerns:
          type: array
          items:
            type: string
        missing_information:
          type: array
          items:
            type: string
          description: What to ask the candidate.
        profile:
          description: What the LinkedIn lookup found; null for profile_text.
          oneOf:
            - type: 'null'
            - type: object
              additionalProperties: false
              properties:
                name:
                  type:
                    - string
                    - 'null'
                headline:
                  type:
                    - string
                    - 'null'
                current_title:
                  type:
                    - string
                    - 'null'
                current_company:
                  type:
                    - string
                    - 'null'
                location:
                  type:
                    - string
                    - 'null'
    Error:
      type: object
      additionalProperties: false
      required:
        - error
      properties:
        error:
          type: object
          additionalProperties: false
          required:
            - code
            - message
          properties:
            code:
              type: string
              description: >
                Stable machine code: invalid_request, invalid_api_key,
                insufficient_scope, workspace_inactive, view_as_not_allowed,
                forbidden, not_found, search_in_flight, missing_brief,
                job_not_active, too_many_unreviewed, not_enabled,
                auth_unavailable, unavailable, profile_not_found, daily_limit,
                not_configured.
            message:
              type: string
              description: A sentence for a person.
  examples:
    analyze_candidate_request:
      summary: By LinkedIn URL
      value:
        linkedin_url: https://www.linkedin.com/in/jane-doe-example
    analyze_candidate_response:
      summary: A possible fit
      value:
        analysis_id: 0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d
        job_id: 6f1c2b8e-3a4d-4c5e-9f60-7a8b9c0d1e2f
        linkedin_url: https://www.linkedin.com/in/jane-doe-example
        score: 72
        verdict: possible_fit
        summary: >-
          Two years of outbound B2B sales to German-speaking SMBs at a Barcelona
          scale-up. Matches the market and the seniority; German level is not
          stated.
        strengths:
          - 2 years outbound SDR into DACH
          - Already based in Barcelona
        concerns:
          - No quota attainment shown
        missing_information:
          - Is German native or fluent?
          - Current notice period
        profile:
          name: Jane Doe
          headline: SDR DACH
          current_title: Sales Development Representative
          current_company: Example Scale-up
          location: Barcelona, Catalonia, Spain
    error_not_found_response:
      summary: Unknown id
      value:
        error:
          code: not_found
          message: Not found.
    error_daily_limit_response:
      summary: Daily analyses used up
      value:
        error:
          code: daily_limit
          message: >-
            This API key has used today's 50 analyses. The limit resets at 00:00
            UTC.
    error_auth_unavailable_response:
      summary: Try again
      value:
        error:
          code: auth_unavailable
          message: Could not check the API key right now. Please try again.
    error_invalid_request_response:
      summary: Unknown body field
      value:
        error:
          code: invalid_request
          message: 'Unknown field: review_gate_override. Allowed: max_candidates, note.'
    error_invalid_api_key_response:
      summary: Missing or revoked key
      value:
        error:
          code: invalid_api_key
          message: Missing, unknown or revoked API key.
    error_workspace_inactive_response:
      summary: Workspace not active
      value:
        error:
          code: workspace_inactive
          message: This workspace is not active. Contact Kudo Hires.
    error_missing_brief_response:
      summary: No brief yet
      value:
        error:
          code: missing_brief
          message: >-
            Add a job description or a brief note first, so the search knows
            what to look for.
  responses:
    BadRequest:
      description: >-
        The request is not valid (unknown body field, bad max_candidates, limit,
        status, stage or cursor). Code invalid_request.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            invalid:
              $ref: '#/components/examples/error_invalid_request_response'
    Unauthorized:
      description: Missing, unknown or revoked key. Code invalid_api_key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            invalid_key:
              $ref: '#/components/examples/error_invalid_api_key_response'
    Forbidden:
      description: >-
        The key lacks the scope (insufficient_scope), the workspace is not
        active (workspace_inactive) or the request came from a view-as session
        (view_as_not_allowed).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            inactive:
              $ref: '#/components/examples/error_workspace_inactive_response'
    Unprocessable:
      description: >-
        The search cannot be searched now. Codes missing_brief, job_not_active,
        too_many_unreviewed (40 or more candidates waiting for review),
        not_enabled.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            missing_brief:
              $ref: '#/components/examples/error_missing_brief_response'
  securitySchemes:
    ApiKey:
      type: http
      scheme: bearer
      description: >-
        Per-workspace key issued by Kudo Hires (starts with kh_live_). Send it
        in the Authorization header, never in a URL.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.