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

# Search skills

> Type-ahead: find skills by a few letters (e.g. “fork”) and keep the `skill_id` the recruiter picks.

**Scope:** `skills:read`



## OpenAPI

````yaml /blue-collar-api/api-reference/openapi.json get /skills/search
openapi: 3.1.0
info:
  title: Record Blue Collar API
  version: 1.0.0
  description: >-
    Run Record candidate verification from your own system. You need two things:
    your **key id** and your **secret**. Everything else is generated. See
    Authentication for how.
servers:
  - url: https://api-bc.userecord.io/api/v1/partner
    description: Blue Collar API
security: []
tags:
  - name: Skills
    description: The skill taxonomy, read live a page at a time
  - name: Skill requests
    description: Ask Record to add a missing skill
  - name: Lookups
    description: >-
      Lookups for filling in a job mandate: places in India, the countries an
      abroad job can be in, and the employment types and shifts the playground
      offers
  - name: Workflows
    description: >-
      Your organisation's blue-collar workflows (read all; change and
      soft-delete only the ones you created)
  - name: Job mandates
    description: >-
      Your organisation's job mandates, addressed by Record's mandate_id (read
      all; change only the ones you created)
  - name: Campaigns
    description: Contact candidates for one of your jobs and verify them. Spends credits
  - name: Results
    description: >-
      What Record collected from each candidate: status (pending, completed,
      declined, failed) and an output of answers and verdicts
  - name: Events
    description: >-
      Pull your result events and acknowledge them: the safety net behind the
      webhook, and a way to receive results without exposing a URL
  - name: Webhooks
    description: >-
      Endpoints that Record POSTs result events to: signed, retried until you
      acknowledge, replayable
  - name: Analytics
    description: >-
      The workflow Overview analytics of the Record playground: funnel,
      channels, follow-ups, calls, drop-offs, languages (read-only, scope
      analytics:read)
paths:
  /skills/search:
    get:
      tags:
        - Skills
      summary: Search skills
      description: >-
        Type-ahead: find skills by a few letters (e.g. “fork”) and keep the
        `skill_id` the recruiter picks.


        **Scope:** `skills:read`
      operationId: searchSkills
      parameters:
        - name: q
          in: query
          required: true
          description: >-
            2 to 60 characters; matches the start of words, tolerates small
            typos
          schema:
            type: string
            minLength: 2
            maxLength: 60
          example: forklift
        - name: collar
          in: query
          required: false
          description: Ranks this collar first; does not hide the others
          schema:
            type: string
            enum:
              - blue
              - grey
              - white
        - name: domain_id
          in: query
          required: false
          schema:
            type: string
            pattern: ^[a-z0-9_]{3,200}$
        - name: sub_domain_id
          in: query
          required: false
          schema:
            type: string
            pattern: ^[a-z0-9_]{3,200}$
        - name: limit
          in: query
          required: false
          description: 1 to 20, default 10
          schema:
            type: integer
            minimum: 1
            maximum: 20
            default: 10
          example: 10
      responses:
        '200':
          description: Matching skills
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    const: true
                    type: boolean
                  message:
                    type: string
                  data:
                    type: object
                    properties:
                      query:
                        type: string
                      count:
                        type: integer
                        description: How many results came back
                      items:
                        type: array
                        items:
                          type: object
                          properties:
                            skill_id:
                              type: string
                              description: Stable taxonomy id, e.g. sk_27338
                            name:
                              type: string
                            sub_domain:
                              type: object
                              properties:
                                id:
                                  type: string
                                name:
                                  type: string
                            domain:
                              type: object
                              properties:
                                id:
                                  type: string
                                name:
                                  type: string
                            collar:
                              type: string
                              enum:
                                - blue
                                - grey
                                - white
                            verifiable:
                              type: boolean
                              description: >-
                                Whether Record can generate skill-verification
                                questions for it
              example:
                success: true
                data:
                  query: forklift
                  count: 2
                  items:
                    - skill_id: sk_5177
                      name: Forklift Truck
                      sub_domain:
                        id: >-
                          sub_architecture_and_construction__heavy_equipment_operation
                        name: Heavy Equipment Operation
                      domain:
                        id: dom_architecture_and_construction
                        name: Architecture and Construction
                      collar: white
                      verifiable: true
                    - skill_id: sk_5176
                      name: Forklift Safety
                      sub_domain:
                        id: >-
                          sub_architecture_and_construction__heavy_equipment_operation
                        name: Heavy Equipment Operation
                      domain:
                        id: dom_architecture_and_construction
                        name: Architecture and Construction
                      collar: white
                      verifiable: true
        '400':
          description: >-
            `VALIDATION_FAILED`: `q` shorter than 2 characters, or only
            wildcards.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: '`DAILY_CAP`: 15,000 different skills already seen today.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - ApiKey: []
          SecretKey: []
      x-codeSamples:
        - lang: bash
          label: cURL
          source: pcall GET "/api/v1/partner/skills/search?q=forklift&limit=10"
        - lang: javascript
          label: JavaScript
          source: >-
            const res = await call("GET",
            "/api/v1/partner/skills/search?q=forklift&limit=10");

            const { data } = await res.json();
        - lang: python
          label: Python
          source: >-
            res = call("GET",
            "/api/v1/partner/skills/search?q=forklift&limit=10")

            data = res.json()["data"]
components:
  schemas:
    Error:
      type: object
      properties:
        success:
          const: false
          type: boolean
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - VALIDATION_FAILED
                - LIMIT_EXCEEDED
                - UNAUTHORIZED
                - SCOPE_MISSING
                - FORBIDDEN
                - HTTPS_REQUIRED
                - NOT_FOUND
                - CONFLICT
                - WORKFLOW_IN_USE
                - INSUFFICIENT_CREDITS
                - IDEMPOTENCY_KEY_REQUIRED
                - IDEMPOTENCY_KEY_REUSED
                - IDEMPOTENCY_IN_PROGRESS
                - PAYLOAD_TOO_LARGE
                - UNSUPPORTED_MEDIA_TYPE
                - RATE_LIMITED
                - COOLDOWN
                - DAILY_CAP
                - SERVICE_DISABLED
                - SERVER_ERROR
            message:
              type: string
            details:
              type: array
              items:
                type: object
                properties:
                  path:
                    type: string
                  message:
                    type: string
            request_id:
              type: string
              description: Quote it to Record support
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: Your key id, `VFN_TEST_…` or `VFN_LIVE_…`. Sent on every request.
    SecretKey:
      type: apiKey
      in: header
      name: x-secret-key
      description: >-
        Your secret, `VFN_SK_…`. **Not a real header, and never sent to the
        API.** It is only a form field for Try it, which uses it to sign your
        request in your browser. In your own code you sign each request with the
        secret and send `x-api-key`, `x-timestamp` and `x-signature` (see
        Authentication).

````

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