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

# Job Title Suggestions

> Expand job titles into variations with AI

Returns title variations to include and keywords to exclude, ready to use as `job_titles` and `excluded_job_titles` in a persona or a lead search. Variations are generated in the languages set in your agent preferences (French and English by default).


## OpenAPI

````yaml POST /job_title_suggestions
openapi: 3.0.1
info:
  title: Pipecorn Miscellaneous API
  description: Pipecorn Miscellaneous API
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://app.pipecorn.com/api/v2/
security:
  - defaultApiKey: []
paths:
  /job_title_suggestions:
    post:
      summary: Suggest job titles
      description: >-
        Expands job titles into variations with AI: other seniority levels with
        the same responsibility, feminine and masculine forms, and translations
        into your agent languages (French and English by default). Also suggests
        keywords to exclude, such as `assistant` or `intern`.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - job_titles
              properties:
                job_titles:
                  type: array
                  items:
                    type: string
                  description: Job titles to expand (strings)
                  example:
                    - Head of Marketing
                    - Responsable Communication
      responses:
        '200':
          description: Suggestions. An empty list means no suggestion could be generated
          content:
            application/json:
              schema:
                type: object
                required:
                  - suggestions
                properties:
                  suggestions:
                    type: array
                    items:
                      type: object
                      properties:
                        jobTitle:
                          type: string
                          example: Chief Marketing Officer
                        selectionType:
                          type: string
                          enum:
                            - INCLUDED
                            - EXCLUDED
                          description: >-
                            `INCLUDED` for a title variation, `EXCLUDED` for a
                            keyword to exclude
                          example: INCLUDED
              example:
                suggestions:
                  - jobTitle: CMO
                    selectionType: INCLUDED
                  - jobTitle: Directeur Marketing
                    selectionType: INCLUDED
                  - jobTitle: Assistant
                    selectionType: EXCLUDED
        '400':
          description: The request body is not a JSON object
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                invalid_json:
                  summary: Invalid JSON
                  value:
                    error: Invalid JSON
                not_object:
                  summary: Request body must be a JSON object
                  value:
                    error: Request body must be a JSON object
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                missing_key:
                  summary: No API key present
                  value:
                    error: No API key present
                invalid_key:
                  summary: Invalid API key
                  value:
                    error: Invalid API key
        '422':
          description: Invalid `job_titles`
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                missing:
                  summary: job_titles is required
                  value:
                    error: job_titles is required
                not_array:
                  summary: job_titles must be an array
                  value:
                    error: job_titles must be an array
                not_strings:
                  summary: job_titles must be an array of strings
                  value:
                    error: job_titles must be an array of strings
        '429':
          description: Rate limit exceeded (your plan's per-minute limit)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: Rate limit exceeded. Please wait before retrying.
components:
  schemas:
    Error:
      required:
        - error
      type: object
      properties:
        error:
          description: >-
            Human-readable error message. A few validation errors return a list
            of messages instead of a single string.
          oneOf:
            - type: string
            - type: array
              items:
                type: string
        message:
          type: string
          description: >-
            Longer explanation, sent by validators that add context. Such errors
            may also carry extra top-level keys like `valid_values` or
            `example`.
        details:
          type: string
          description: >-
            Parser message, sent with `"Invalid JSON format in request body"`
            when the request body is not valid JSON.
  securitySchemes:
    defaultApiKey:
      type: apiKey
      in: header
      description: Your API key
      name: X-API-KEY

````

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