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

# Create candidate

> Create a new candidate from CV and form details.



## OpenAPI

````yaml /api-reference/openapi-public.json post /{publicTenantSlug}/candidate-portal/open-application
openapi: 3.0.0
info:
  title: Spott API
  description: ''
  version: '1.0'
  contact: {}
servers:
  - url: https://api.gospott.com
security: []
tags:
  - name: public
    description: ''
paths:
  /{publicTenantSlug}/candidate-portal/open-application:
    post:
      tags:
        - public
      summary: Create candidate
      description: Create a new candidate from CV and form details.
      operationId: handleCandidatePortalOpenApplication
      parameters:
        - name: publicTenantSlug
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CandidatePortalOpenApplicationDto'
      responses:
        '200':
          description: ''
components:
  schemas:
    CandidatePortalOpenApplicationDto:
      type: object
      properties:
        firstName:
          type: string
          minLength: 1
          maxLength: 100
          pattern: /^[a-zA-ZÀ-ÿ\s\-']+$/
        lastName:
          type: string
          minLength: 1
          maxLength: 100
          pattern: /^[a-zA-ZÀ-ÿ\s\-']+$/
        cvAttachmentId:
          type: string
          minLength: 1
          maxLength: 100
        email:
          $ref: '#/components/schemas/CandidateEmailDto'
        phoneNumber:
          $ref: '#/components/schemas/CandidatePhoneNumberDto'
        socialMedia:
          $ref: '#/components/schemas/CandidateSocialMediaDto'
      required:
        - firstName
        - lastName
        - cvAttachmentId
        - email
        - phoneNumber
    CandidateEmailDto:
      type: object
      properties:
        purpose:
          type: string
          nullable: true
          enum:
            - personal
            - work
        email:
          type: string
          format: email
      required:
        - purpose
        - email
    CandidatePhoneNumberDto:
      type: object
      properties:
        purpose:
          type: string
          nullable: true
          enum:
            - personal
            - work
        phoneNumber:
          type: string
      required:
        - purpose
        - phoneNumber
    CandidateSocialMediaDto:
      type: object
      properties:
        url:
          type: string
          format: uri
        type:
          enum:
            - LINKEDIN
            - TWITTER
            - FACEBOOK
            - INSTAGRAM
          type: string
      required:
        - url
        - type

````