Skip to content
Navigation

listSecrets

GET
/api/v1/workspaces/{workspaceId}/secrets

Secrets the caller can attach (their own; all of them for workspace admins). Values are never returned.

Authorization

  • session
    optional
    API key in cookie
  • token
    optional
    HTTP Bearer

    Authorization: Bearer <token>

Path parameters

  • workspaceId
    string
    required

Returns

200

Secrets.

JSON
  • id
    string
    required
  • workspaceId
    string
    required
  • name
    string
    required
  • rule
    object
    required
    • hosts
      array of
      string
      required

      Exact host names or "*.example.com".

    • header
      string
      required
    • template
      string
      required

      Header value; {{.Value}} is the secret. Function: base64.

  • placeholder
    string
    required

    What sandboxes see instead of the value.

  • owner
    object
    required
    • id
      string
      required
    • email
      string
      required
    • name
      string
      required
    • avatarUrl
      string
      required
  • canManage
    boolean
    required
  • createdAt
    string
    required
    format: date-time
  • updatedAt
    string
    required
    format: date-time

404

Error.
JSON
  • error
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close