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

# Store a login (username, password, TOTP secret) for one or more sites



## OpenAPI

````yaml /openapi.json post /vault/items
openapi: 3.1.0
info:
  title: Styne sandbox API
  version: 0.1.0
  description: >-
    Isolated Linux sandboxes for AI agents: create from a template, run
    commands, files, fork, snapshots, pause and resume. The wire contract is the
    E2B API, so an unmodified E2B SDK works.
servers:
  - url: https://api.styne.ai
security:
  - bearerAuth: []
tags:
  - name: Sandboxes
    externalDocs:
      url: https://docs.styne.ai/quickstart
  - name: Templates
    externalDocs:
      url: https://docs.styne.ai/guide-templates
  - name: Run commands
    externalDocs:
      url: https://docs.styne.ai/exec
  - name: Files
    externalDocs:
      url: https://docs.styne.ai/files
  - name: Fork
    externalDocs:
      url: https://docs.styne.ai/fork
  - name: Snapshots
    externalDocs:
      url: https://docs.styne.ai/snapshots
  - name: Volumes
    externalDocs:
      url: https://docs.styne.ai/volumes
  - name: Logs and metrics
    externalDocs:
      url: https://docs.styne.ai/observability
  - name: Timeouts, pause and resume
    externalDocs:
      url: https://docs.styne.ai/pause-tiers
  - name: Plans and billing
    externalDocs:
      url: https://docs.styne.ai/billing
  - name: Agent sign-up
    externalDocs:
      url: https://docs.styne.ai/agent-signup
  - name: Browsers
    externalDocs:
      url: https://docs.styne.ai/browsers
  - name: Browser profiles
    externalDocs:
      url: https://docs.styne.ai/profiles
  - name: Login vault
    externalDocs:
      url: https://docs.styne.ai/vault
  - name: Ports and preview URLs
    externalDocs:
      url: https://docs.styne.ai/ports
  - name: SSH and port forwarding
    externalDocs:
      url: https://docs.styne.ai/ssh
  - name: CI runners
    externalDocs:
      url: https://docs.styne.ai/ci
  - name: Run a coding agent in a sandbox
    externalDocs:
      url: https://docs.styne.ai/agents
  - name: State store
    externalDocs:
      url: https://docs.styne.ai/state
  - name: Calls between sandboxes
    externalDocs:
      url: https://docs.styne.ai/calls
  - name: Wake triggers and schedules
    externalDocs:
      url: https://docs.styne.ai/wake-triggers
  - name: Checkpoints and rewind
    externalDocs:
      url: https://docs.styne.ai/checkpoints
  - name: Container images
    externalDocs:
      url: https://docs.styne.ai/images
paths:
  /vault/items:
    post:
      tags:
        - Login vault
      summary: Store a login (username, password, TOTP secret) for one or more sites
      operationId: vault.items.create
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              description: Store a vault item.
              properties:
                label:
                  type: string
                  description: Free text, up to 200 characters.
                hosts:
                  type: array
                  items:
                    type: string
                  description: >-
                    1 to 5 sites the item may be typed into; *.example.com
                    covers subdomains. Cannot change later.
                site:
                  type: string
                  description: One site, instead of hosts.
                login_url:
                  type: string
                  description: https address on one of the hosts where the sign-in starts.
                fields:
                  type: object
                  description: The secrets; they are sealed and never answered.
                  properties:
                    username:
                      type: string
                      description: 1 to 320 bytes; required on create.
                    password:
                      type: string
                      description: 1 to 1024 bytes; required on create.
                    totp_secret:
                      type: string
                      description: >-
                        One-time-code secret: base32, an otpauth://totp/,
                        otpauth://hotp/ or otpauth://steam/ link,
                        steam://<base32>, or a Steam shared_secret in base64
                        with totp.type steam; null on update removes it.
                totp:
                  type: object
                  description: >-
                    type (totp, hotp, steam), digits (6, 7, 8), period (15, 30,
                    60), algorithm (SHA1, SHA256, SHA512) and, for hotp, the
                    counter of the first code, when the secret does not carry
                    them. A Steam code has 5 characters and 30 s.
                profiles:
                  type: array
                  items:
                    type: string
                  description: >-
                    Profile ids or end-user names to link; each profile signs in
                    with one item.
      responses:
        2XX:
          description: Success. The answer is described on https://docs.styne.ai/vault.
        default:
          description: An error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      externalDocs:
        description: Login vault
        url: https://docs.styne.ai/vault
components:
  schemas:
    Error:
      type: object
      description: >-
        Every error answer has this shape; the codes are listed on the errors
        page.
      properties:
        code:
          type: integer
          description: The HTTP status.
        error_code:
          type: string
          description: A stable machine-readable code, for example free_tier_limit.
        message:
          type: string
          description: What happened and what to do, in plain words.
        origin:
          type: string
          description: >-
            Where the fault came from, for example client, customer_limit or
            infrastructure.
        request_id:
          type: string
          description: Quote it to support; the same value is in the x-request-id header.
      required:
        - code
        - message
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Your Styne API key: Authorization: Bearer $STYNE_API_KEY.'

````

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