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

# List personal secrets

> Returns the name, owner, and timestamps of your personal secrets in this organization, sorted by name. Sail never returns the stored values. A credential that belongs to no user gets an empty list.

An organization admin can pass `owner` to list other members' personal secrets. See [Personal secrets](https://docs.sailresearch.com/sailboxes-credentials#personal-secrets).



## OpenAPI

````yaml /sailbox-openapi.json get /user/secrets
openapi: 3.1.0
info:
  title: Sail Sailbox API
  version: '2026-10-04'
  description: >-
    Create and operate Sailboxes over HTTP. Sailboxes are fast-booting virtual
    machines that you can pause, resume, and checkpoint.


    Run commands, stream files, manage lifecycle and networking, and inspect
    usage. Turning on SSH and building an image still require an SDK or the CLI.
    See the [HTTP API guide](/sailboxes-http-api).
servers:
  - url: https://sailbox-api.sailresearch.com/v1
security:
  - BearerAuth: []
tags:
  - name: Apps
    description: Groups that own Sailboxes. One app per workload.
  - name: Lifecycle
    description: >-
      A Sailbox's whole life: create it, watch it, stop and start it, terminate
      it.
  - name: Checkpoints
    description: Save a Sailbox to start from later, and copy a running one.
  - name: Image builds
    description: >-
      Watch and cancel the image builds your organization starts with an SDK or
      the CLI.
  - name: Exec
    description: Run commands and control their standard input and terminals.
  - name: Files
    description: Stream regular files into and out of a Sailbox.
  - name: Networking
    description: >-
      Publish ports, serve them on hostnames you own, and identify a Sailbox to
      other Sailboxes.
  - name: Secrets
    description: >-
      Organization and personal values that egress policy rules can add to
      matching requests. Sail never returns a stored value.
  - name: Egress policies
    description: >-
      What a Sailbox may connect to, and what happens to the HTTPS requests it
      sends.
  - name: Volumes
    description: >-
      Shared storage that outlives any one Sailbox. Alpha: these endpoints can
      still change.
  - name: SSH access
    description: Certificates for connecting to a Sailbox with `ssh`.
  - name: Usage
    description: Resource usage and spend.
  - name: Identity
    description: Who your API key belongs to.
paths:
  /user/secrets:
    get:
      tags:
        - Secrets
      summary: List personal secrets
      description: >-
        Returns the name, owner, and timestamps of your personal secrets in this
        organization, sorted by name. Sail never returns the stored values. A
        credential that belongs to no user gets an empty list.


        An organization admin can pass `owner` to list other members' personal
        secrets. See [Personal
        secrets](https://docs.sailresearch.com/sailboxes-credentials#personal-secrets).
      operationId: listPersonalSecrets
      parameters:
        - name: name
          in: query
          schema:
            type: string
          description: >-
            Return only secrets with exactly this name. The match is
            case-sensitive, and surrounding whitespace is trimmed first.
        - name: owner
          in: query
          schema:
            type: string
            default: me
            pattern: ^(?:me|anyone|user:[A-Za-z0-9_.-]{1,255})$
          description: >-
            Whose personal secrets to list: `me` for your own, `anyone` for
            every member's, or `user:` followed by a user ID for one member's.
            Only an organization admin may send a value other than `me`.
        - name: limit
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 1000
            default: 100
          description: How many secrets to return.
        - name: offset
          in: query
          schema:
            type: integer
            minimum: 0
            maximum: 100000
            default: 0
          description: How many secrets to skip before the page starts.
      responses:
        '200':
          description: The personal secrets.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PersonalSecretList'
              example:
                data:
                  - org_id: org_1a2b3c
                    name: GITHUB_TOKEN
                    visibility: personal
                    owner_user_id: user_4d5e6f
                    created_at: '2026-08-20T09:30:00Z'
                    updated_at: '2026-08-20T09:30:00Z'
                limit: 100
                offset: 0
                total: 1
                has_more: false
        '400':
          description: >-
            The request was rejected. See the error message for the offending
            field.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  message: owner must be me, anyone, or user:<id>
                  type: invalid_request_error
                  param: null
                  code: null
        '401':
          description: The API key is missing or invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  message: Invalid API key
                  type: authentication_error
                  param: null
                  code: invalid_api_key
        '402':
          description: >-
            The organization is out of credits. The error carries a
            `billing_url` pointing at the page where you add them. Retry once
            you have.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  message: >-
                    Your API key has been disabled due to insufficient credits.
                    Visit https://app.sailresearch.com/billing to add credits.
                  type: billing_error
                  param: null
                  code: credits_exhausted
                  billing_url: https://app.sailresearch.com/billing
        '403':
          description: >-
            `owner` names someone else and the credential is not an organization
            admin's.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  message: >-
                    listing other members' personal secrets requires an
                    organization admin
                  type: permission_error
                  param: null
                  code: null
        '429':
          description: >-
            Too many requests in flight, or the organization is at a limit. A
            `Retry-After` header means the request never started, so retry it
            unchanged after that delay. Without one, the request ran and hit the
            limit `message` names. Some of those clear on their own, such as a
            shortage of public ports; others need you to free something up
            first. Send the request again once the cause is gone.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  message: >-
                    Too many concurrent requests. Please retry after some of
                    your organization's in-flight requests complete.
                  type: rate_limit_error
                  param: null
                  code: rate_limited
          headers:
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
        '500':
          description: Server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  message: list secrets failed
                  type: server_error
                  param: null
                  code: null
        '503':
          description: >-
            Sail is momentarily unavailable. Retry after the delay in the
            `Retry-After` header when one is present, and with backoff
            otherwise.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  message: Authentication service unavailable
                  type: server_error
                  param: null
                  code: null
          headers:
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
components:
  schemas:
    PersonalSecretList:
      type: object
      additionalProperties: false
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Secret'
          description: >-
            The requested page of personal secrets, sorted by owner and then by
            name. Values are not included.
        limit:
          type: integer
          minimum: 1
          maximum: 1000
          description: Page size that was applied.
        offset:
          type: integer
          minimum: 0
          description: Offset that was applied.
        total:
          type: integer
          minimum: 0
          description: Total number of personal secrets matching the filters.
        has_more:
          type: boolean
          description: Whether another page follows this one.
      required:
        - data
        - limit
        - offset
        - total
        - has_more
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          $ref: '#/components/schemas/ErrorObject'
    Secret:
      type: object
      additionalProperties: false
      properties:
        org_id:
          type: string
          description: Organization the secret is stored in.
        name:
          type: string
          pattern: ^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$
          description: >-
            Name used in egress policy rules. The secret value is never
            returned.
        visibility:
          type: string
          description: >-
            `organization` for a secret that belongs to the organization, or
            `personal` for one that belongs to a single member. Other values may
            be added.
          examples:
            - organization
            - personal
        owner_user_id:
          type: string
          description: >-
            User a personal secret belongs to. Left out of an organization
            secret.
        created_at:
          type: string
          format: date-time
          description: When the secret was first created.
        updated_at:
          type: string
          format: date-time
          description: When the secret value was last replaced.
      required:
        - org_id
        - name
        - visibility
        - created_at
        - updated_at
    ErrorObject:
      type: object
      required:
        - message
        - type
        - param
        - code
      properties:
        message:
          type: string
          description: Human-readable description of what went wrong.
        type:
          type: string
          description: >-
            Error category: `invalid_request_error`, `authentication_error`,
            `permission_error`, `billing_error`, `not_found_error`,
            `conflict_error`, `rate_limit_error`, `quota_exceeded_error`,
            `not_implemented_error`, or `server_error`.
        param:
          oneOf:
            - type: string
            - type: 'null'
          description: >-
            The request field the error refers to, when the error is about one
            field.
        code:
          oneOf:
            - type: string
            - type: integer
            - type: 'null'
          description: >-
            Stable short code for the error, when one applies. Errors relayed
            from the Sailbox runtime carry its status token, for example
            `already_exists` or `failed_precondition` on a 409, which the HTTP
            status alone does not distinguish.
        billing_url:
          type: string
          format: uri
          description: Page where you add credits. Sent with a 402.
      additionalProperties: true
  headers:
    RetryAfter:
      description: >-
        How many seconds to wait before retrying. On a 429 it also means the
        request never started, so the retry can reuse the same
        `Idempotency-Key`.
      schema:
        type: integer
        minimum: 0
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key

````