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

# Unarchive candidate on job

> Restore an archived candidate to a job pipeline. The existing candidacy returns at its previous stage, with pipeline history preserved. This does not create a new candidacy.

Find the candidate UUID on `GET /v1/persons/{id}` or `POST /v1/persons/search` with `include: ["candidates"]` where `is_archived` is true. `GET /v1/candidates/{id}` returns 404 while the candidacy is archived.

Already-active and unknown candidate IDs return 404.

Returns the restored candidate, person, job and current pipeline stage IDs. Pipeline history is unchanged; `GET /v1/candidates/{id}` (`candidates:read`) returns full detail.

Requires the `candidates:write` API key scope.



## OpenAPI

````yaml /api-reference/openapi-v1.json post /v1/candidates/{id}/unarchive
openapi: 3.1.0
info:
  title: Stardex API (v1)
  version: 1.0.0
  description: >-
    Stardex ATS API — manage candidates, jobs, companies, and recruiting
    workflows.
servers:
  - url: https://api.stardex.ai
    description: Production API server
security:
  - bearerAuth: []
tags:
  - name: Persons
    description: Manage person records — contacts, work history, and custom fields.
  - name: Jobs
    description: Manage job postings — pipeline stages, team members, and custom fields.
  - name: Candidates
    description: Manage candidate records and pipeline stage transitions.
  - name: Companies
    description: Browse and retrieve company records.
  - name: Lists
    description: Create, search, and retrieve saved person and company lists.
  - name: Person Activities
    description: Create and manage activity records (notes, emails, meetings) for persons.
  - name: Team Members
    description: List team members for use in search filters and assignments.
  - name: Custom Fields
    description: Retrieve custom field definitions and tag options for search filters.
  - name: Campaigns
    description: >-
      Create and edit email campaigns, enroll people through enrollment batches,
      and manage who is enrolled.
paths:
  /v1/candidates/{id}/unarchive:
    post:
      tags:
        - Candidates
      summary: Unarchive candidate on job
      description: >-
        Restore an archived candidate to a job pipeline. The existing candidacy
        returns at its previous stage, with pipeline history preserved. This
        does not create a new candidacy.


        Find the candidate UUID on `GET /v1/persons/{id}` or `POST
        /v1/persons/search` with `include: ["candidates"]` where `is_archived`
        is true. `GET /v1/candidates/{id}` returns 404 while the candidacy is
        archived.


        Already-active and unknown candidate IDs return 404.


        Returns the restored candidate, person, job and current pipeline stage
        IDs. Pipeline history is unchanged; `GET /v1/candidates/{id}`
        (`candidates:read`) returns full detail.


        Requires the `candidates:write` API key scope.
      operationId: unarchiveCandidate
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
            description: Candidate UUID
      responses:
        '200':
          description: Candidate restored to the job
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnarchiveCandidateResponse'
              example:
                success: true
                data:
                  id: 234e5678-e90a-12b3-c456-789012345678
                  person_id: 345e6789-e01b-23c4-d567-890123456789
                  job_id: 123e4567-e89b-12d3-a456-426614174000
                  current_pipeline_stage_id: 567e8901-e23c-45d6-e789-012345678901
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                    description: Always false for error responses.
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: >-
                          Machine-readable error code (e.g. "VALIDATION_ERROR",
                          "NOT_FOUND").
                      message:
                        type: string
                        description: Human-readable error description.
                      details:
                        type: object
                        additionalProperties: {}
                        description: >-
                          Extra facts about the error when they help you fix it,
                          such as a limit and when it resets.
                    required:
                      - code
                      - message
                required:
                  - success
                  - error
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                    description: Always false for error responses.
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: >-
                          Machine-readable error code (e.g. "VALIDATION_ERROR",
                          "NOT_FOUND").
                      message:
                        type: string
                        description: Human-readable error description.
                      details:
                        type: object
                        additionalProperties: {}
                        description: >-
                          Extra facts about the error when they help you fix it,
                          such as a limit and when it resets.
                    required:
                      - code
                      - message
                required:
                  - success
                  - error
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                    description: Always false for error responses.
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: >-
                          Machine-readable error code (e.g. "VALIDATION_ERROR",
                          "NOT_FOUND").
                      message:
                        type: string
                        description: Human-readable error description.
                      details:
                        type: object
                        additionalProperties: {}
                        description: >-
                          Extra facts about the error when they help you fix it,
                          such as a limit and when it resets.
                    required:
                      - code
                      - message
                required:
                  - success
                  - error
components:
  schemas:
    UnarchiveCandidateResponse:
      type: object
      properties:
        success:
          type: boolean
          enum:
            - true
        data:
          $ref: '#/components/schemas/UnarchiveCandidate'
      required:
        - success
        - data
    UnarchiveCandidate:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Restored candidate UUID.
        person_id:
          type: string
          format: uuid
          description: Associated person UUID.
        job_id:
          type: string
          format: uuid
          description: Associated job UUID.
        current_pipeline_stage_id:
          type:
            - string
            - 'null'
          format: uuid
          description: >-
            Pipeline stage UUID the candidacy returns at. Matches
            current_pipeline_stage_id on GET /v1/candidates/{id}.
      required:
        - id
        - person_id
        - job_id
        - current_pipeline_stage_id
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Authenticate with a Bearer token: API key, OAuth token, or session
        token.

````

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