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

# Analyze job from text

> Submit one or more job description texts for AI-powered analysis. The API will extract structured information including job details, experience and education preferences, requirements, and skills. Processing is asynchronous — use the returned IDs with the status endpoint to track progress. Billable — charges the `job_processing` action once per job in `inputs`; failed tasks are refunded. See `GET /tokens/costs` for live pricing.



## OpenAPI

````yaml /api-reference/openapi.json post /jobs/analyze
openapi: 3.1.0
info:
  title: Fribl API
  description: >-
    The Fribl API enables intelligent talent matching powered by AI. Analyze CVs
    and job descriptions from text or file uploads, search and manage skills,
    match candidates to positions with configurable scoring weights, and source
    candidate profiles from external databases. All document processing is
    asynchronous — submit documents for analysis, poll for status, and retrieve
    structured results when ready.
  version: 1.0.0
  contact:
    name: Fribl Support
    url: https://fribl.co
servers:
  - url: https://api-service.fribl.co/api/v1
    description: Production
security:
  - apiKey: []
tags:
  - name: CVs
    description: >-
      Upload, analyze, retrieve, update, and delete candidate CVs. CVs can be
      submitted as raw text or as PDF file uploads. Processing is asynchronous —
      use the status endpoint to track progress.
  - name: Jobs
    description: >-
      Upload, analyze, retrieve, update, and delete job descriptions. Jobs can
      be submitted as raw text or as PDF file uploads. Processing is
      asynchronous — use the status endpoint to track progress.
  - name: Matching
    description: >-
      Match analyzed CVs against job descriptions using AI-powered scoring.
      Configure weights across experience, hard skills, soft skills, and
      education dimensions to tailor match results to your hiring priorities.
  - name: Sourcing
    description: >-
      Search for candidate profiles from external sources, retrieve cached
      search results, and ingest selected profiles into your Fribl workspace for
      matching.
  - name: Skills
    description: >-
      Search the Fribl skills taxonomy and retrieve available languages for
      skill translation. These endpoints are publicly accessible and do not
      require authentication.
  - name: Tokens
    description: >-
      Inspect your workspace's usage-based token balance, review the ledger of
      every charge and refund, and read the live per-action price list. Billable
      endpoints deduct tokens and return 402 when the balance is insufficient.
      Tokens are purchased and managed in the Fribl Console
      (https://console.fribl.co).
paths:
  /jobs/analyze:
    post:
      tags:
        - Jobs
      summary: Analyze job from text
      description: >-
        Submit one or more job description texts for AI-powered analysis. The
        API will extract structured information including job details,
        experience and education preferences, requirements, and skills.
        Processing is asynchronous — use the returned IDs with the status
        endpoint to track progress. Billable — charges the `job_processing`
        action once per job in `inputs`; failed tasks are refunded. See `GET
        /tokens/costs` for live pricing.
      operationId: analyzeJobText
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AnalyzeTextBody'
      responses:
        '200':
          description: Analysis request accepted. Use the returned IDs to poll for status.
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: Analyze Jobs request received!
                  data:
                    type: object
                    properties:
                      ids:
                        type: array
                        items:
                          type: string
                          format: uuid
                        description: >-
                          Unique identifiers assigned to each submitted job
                          description.
                      status:
                        type: string
                        enum:
                          - PENDING
                        description: Initial processing status.
                    required:
                      - ids
                      - status
                required:
                  - message
                  - data
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
components:
  schemas:
    AnalyzeTextBody:
      type: object
      description: Request body for submitting text content for analysis.
      properties:
        inputs:
          type: array
          items:
            type: string
          description: >-
            Array of text strings to analyze. Each string represents a complete
            document.
        cache:
          type: boolean
          description: Whether to cache the analysis results.
        stream:
          type: boolean
          description: Whether to stream the analysis progress.
        block:
          type: boolean
          description: Whether to block until analysis is complete before returning.
      required:
        - inputs
    ErrorResponse:
      type: object
      description: Standard error response.
      properties:
        error:
          type: string
          description: Human-readable error message.
      required:
        - error
    InsufficientTokensError:
      type: object
      description: >-
        Returned with HTTP 402 when the workspace balance can't cover a billable
        request. No work is performed and nothing is charged.
      properties:
        code:
          type: string
          enum:
            - INSUFFICIENT_TOKENS
          description: Machine-readable error code. Switch on this rather than the message.
          example: INSUFFICIENT_TOKENS
        message:
          type: string
          example: 'Insufficient tokens: have 3, need 10'
        balance:
          type: integer
          description: Current workspace balance.
          example: 3
        required:
          type: integer
          description: Tokens required for this request (worst case for sourcing searches).
          example: 10
      required:
        - code
        - message
        - balance
        - required
  responses:
    BadRequest:
      description: The request was malformed or contained invalid parameters.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unauthorized:
      description: >-
        Authentication failed. Provide a valid API key in the `x-api-key`
        header.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    PaymentRequired:
      description: >-
        The workspace has insufficient tokens for the requested operation.
        Nothing was charged.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/InsufficientTokensError'
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API key in UUID format. Include this header with every authenticated
        request.

````