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

# Restore sample

> Available within the 7-day Trash window. Brings the sample back to the active list and extends its expiration so it isn't immediately re-trashed. Same permission gate as the expiration endpoints.



## OpenAPI

````yaml POST /samples/{id}/restore
openapi: 3.1.0
info:
  title: Strand AI Platform API
  version: v1
  description: >-
    REST surface for uploading WSIs, submitting Lattice inference jobs, and
    streaming results. All endpoints require an `Authorization: Bearer
    sk-strand-...` header. Generate keys at `/settings/api-keys`.
servers:
  - url: https://app.strandai.com/api/v1
    description: Production
security:
  - ApiKey: []
paths:
  /samples/{id}/restore:
    post:
      tags:
        - Samples
      summary: Restore a sample from Trash
      description: >-
        Available within the 7-day Trash window. Brings the sample back to the
        active list and extends its expiration so it isn't immediately
        re-trashed. Same permission gate as the expiration endpoints.
      operationId: restoreSample
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Restored sample
          content:
            application/json:
              schema:
                type: object
                required:
                  - id
                properties:
                  id:
                    type: string
                    format: uuid
                  archivedAt:
                    type: 'null'
                  expiresAt:
                    type: string
                    format: date-time
                    nullable: true
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Not allowed for this sample
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Sample not found in this org
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '412':
          description: Sample is not archived
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      required:
        - error
        - message
      properties:
        error:
          type: string
        message:
          type: string
        required:
          type: integer
          nullable: true
  securitySchemes:
    ApiKey:
      type: http
      scheme: bearer
      bearerFormat: sk-strand-XXXXXXXXXXXXXXXXXXXXXXXX

````