Ruzora AI API

The AI API from Ruzora — 9 operation(s) for ai.

GitHub OpenAPI

Operations 9

POST /api/ai/generate Generate Messages #
POST /api/ai/refine Refine Message #
POST /api/ai/parse-resume Parse Resume #
POST /api/ai/usage Log External Usage #
POST /api/ai/chat-log Log Chat Turns Endpoint #
GET /api/ai/chat-sessions List Chat Sessions Endpoint #
GET /api/ai/chat-sessions/{session_id} Get Chat Transcript Endpoint #
GET /api/ai/usage/summary Get Usage Summary #
GET /api/ai/templates Get Templates #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/ruzora-com:ruzora-com-ai-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

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.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

ruzora-com-ai-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ruzora Candidate CRM AI API
  description: Candidate pipeline, sourcing, and LinkedIn automation
  version: 1.0.0
tags:
- name: AI
paths:
  /api/ai/generate:
    post:
      tags:
      - AI
      summary: Generate Messages
      description: Generate 5 message alternatives for a candidate
      operationId: generate_messages_api_ai_generate_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenerateRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenerateResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/ai/refine:
    post:
      tags:
      - AI
      summary: Refine Message
      description: Refine a message based on instruction
      operationId: refine_message_api_ai_refine_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RefineRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RefineResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/ai/parse-resume:
    post:
      tags:
      - AI
      summary: Parse Resume
      description: Parse resume text using Claude and extract structured profile data.
      operationId: parse_resume_api_ai_parse_resume_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ResumeParseRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResumeParseResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/ai/usage:
    post:
      tags:
      - AI
      summary: Log External Usage
      description: 'Log AI token usage from external services (chat-api, agent-service).


        This endpoint is for internal service-to-service use.'
      operationId: log_external_usage_api_ai_usage_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UsageLogRequest'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/ai/chat-log:
    post:
      tags:
      - AI
      summary: Log Chat Turns Endpoint
      description: 'Persist a chat conversation turn from chat-api (Sol v2 Phase 0).


        Internal service-to-service endpoint, same trust model as /usage.

        chat-api calls it fire-and-forget — failures here must never affect

        the visitor''s chat experience.'
      operationId: log_chat_turns_endpoint_api_ai_chat_log_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ChatLogRequest'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/ai/chat-sessions:
    get:
      tags:
      - AI
      summary: List Chat Sessions Endpoint
      description: 'List recent Sol chat sessions, newest first (admin review).


        With ``lead_id``: every chat that lead had (``lead_id`` match OR one of

        the lead''s shortlist tokens, parent or share), each with its transcript,

        token kind, claim stamp and intent tools. Backs the CRM lead page''s

        "Shortlist chats" section. ``since``/``surface`` do not apply then.'
      operationId: list_chat_sessions_endpoint_api_ai_chat_sessions_get
      security:
      - HTTPBearer: []
      parameters:
      - name: since
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Since
      - name: surface
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Surface
      - name: lead_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Lead Id
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 50
          title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/ai/chat-sessions/{session_id}:
    get:
      tags:
      - AI
      summary: Get Chat Transcript Endpoint
      description: Full ordered transcript for one Sol chat session (admin review).
      operationId: get_chat_transcript_endpoint_api_ai_chat_sessions__session_id__get
      security:
      - HTTPBearer: []
      parameters:
      - name: session_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Session Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/ai/usage/summary:
    get:
      tags:
      - AI
      summary: Get Usage Summary
      description: Get AI usage summary grouped by service and operation.
      operationId: get_usage_summary_api_ai_usage_summary_get
      security:
      - HTTPBearer: []
      parameters:
      - name: days
        in: query
        required: false
        schema:
          type: integer
          default: 30
          title: Days
      - name: service
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Service
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/UsageSummaryResponse'
                title: Response Get Usage Summary Api Ai Usage Summary Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/ai/templates:
    get:
      tags:
      - AI
      summary: Get Templates
      description: Get available message templates
      operationId: get_templates_api_ai_templates_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - HTTPBearer: []
components:
  schemas:
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    ChatLogRequest:
      properties:
        session_id:
          type: string
          format: uuid
          title: Session Id
        surface:
          type: string
          pattern: ^(intake|shortlist|lp|home)$
          title: Surface
        visitor_email:
          anyOf:
          - type: string
            maxLength: 255
          - type: 'null'
          title: Visitor Email
        lead_id:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Lead Id
        shortlist_token:
          anyOf:
          - type: string
            maxLength: 64
          - type: 'null'
          title: Shortlist Token
        origin:
          anyOf:
          - type: string
            maxLength: 32
          - type: 'null'
          title: Origin
        turns:
          items:
            $ref: '#/components/schemas/ChatTurnIn'
          type: array
          maxItems: 10
          minItems: 1
          title: Turns
      type: object
      required:
      - session_id
      - surface
      - turns
      title: ChatLogRequest
      description: One completed conversation turn (user message + assistant reply).
    ResumeParseRequest:
      properties:
        resume_text:
          type: string
          title: Resume Text
        candidate_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Candidate Id
      type: object
      required:
      - resume_text
      title: ResumeParseRequest
    RefineRequest:
      properties:
        original_message:
          type: string
          title: Original Message
        instruction:
          type: string
          title: Instruction
      type: object
      required:
      - original_message
      - instruction
      title: RefineRequest
    UsageSummaryResponse:
      properties:
        service:
          type: string
          title: Service
        operation:
          type: string
          title: Operation
        model:
          type: string
          title: Model
        call_count:
          type: integer
          title: Call Count
        total_input_tokens:
          type: integer
          title: Total Input Tokens
        total_output_tokens:
          type: integer
          title: Total Output Tokens
        total_cost_usd:
          type: number
          title: Total Cost Usd
      type: object
      required:
      - service
      - operation
      - model
      - call_count
      - total_input_tokens
      - total_output_tokens
      - total_cost_usd
      title: UsageSummaryResponse
    RefineResponse:
      properties:
        refined_message:
          type: string
          title: Refined Message
        changes_made:
          type: string
          title: Changes Made
      type: object
      required:
      - refined_message
      - changes_made
      title: RefineResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    UsageLogRequest:
      properties:
        service:
          type: string
          title: Service
        operation:
          type: string
          title: Operation
        model:
          type: string
          title: Model
        input_tokens:
          type: integer
          title: Input Tokens
        output_tokens:
          type: integer
          title: Output Tokens
        cache_creation_input_tokens:
          type: integer
          title: Cache Creation Input Tokens
          default: 0
        cache_read_input_tokens:
          type: integer
          title: Cache Read Input Tokens
          default: 0
        session_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Session Id
        metadata_json:
          anyOf:
          - type: string
          - type: 'null'
          title: Metadata Json
      type: object
      required:
      - service
      - operation
      - model
      - input_tokens
      - output_tokens
      title: UsageLogRequest
      description: Request body for external services to log AI usage.
    GenerateResponse:
      properties:
        alternatives:
          items:
            $ref: '#/components/schemas/MessageAlternative'
          type: array
          title: Alternatives
      type: object
      required:
      - alternatives
      title: GenerateResponse
    ResumeParseResponse:
      properties:
        parsed_data:
          additionalProperties: true
          type: object
          title: Parsed Data
        candidate_updated:
          type: boolean
          title: Candidate Updated
          default: false
      type: object
      required:
      - parsed_data
      title: ResumeParseResponse
    ChatTurnIn:
      properties:
        role:
          type: string
          pattern: ^(user|assistant)$
          title: Role
        content:
          type: string
          maxLength: 20000
          minLength: 1
          title: Content
        tools_used:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          title: Tools Used
      type: object
      required:
      - role
      - content
      title: ChatTurnIn
    GenerateRequest:
      properties:
        candidate_name:
          type: string
          title: Candidate Name
        location:
          type: string
          title: Location
        skills:
          items:
            type: string
          type: array
          title: Skills
        current_role:
          anyOf:
          - type: string
          - type: 'null'
          title: Current Role
        company:
          anyOf:
          - type: string
          - type: 'null'
          title: Company
        context:
          anyOf:
          - type: string
          - type: 'null'
          title: Context
      type: object
      required:
      - candidate_name
      - location
      - skills
      title: GenerateRequest
    MessageAlternative:
      properties:
        style:
          type: string
          title: Style
        message:
          type: string
          title: Message
        character_count:
          type: integer
          title: Character Count
      type: object
      required:
      - style
      - message
      - character_count
      title: MessageAlternative
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer