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

# Start exit for specific VTXOs

> Registers the specified VTXOs for emergency exit. The daemon automatically progresses registered exits in the background at the cadence defined by `SLOW_INTERVAL`, creating and broadcasting the required transactions in sequence. Once all exit transactions are confirmed and the timelock has elapsed, call `claim` to sweep the resulting outputs to an on-chain address.



## OpenAPI

````yaml https://gitlab.com/ark-bitcoin/bark/-/raw/master/bark-rest/openapi.json post /api/v1/exits/start/vtxos
openapi: 3.1.0
info:
  title: barkd REST API
  description: >-
    A simple REST API for barkd, a wallet daemon for integrating bitcoin
    payments into your app over HTTP. Supports self-custodial Lightning, Ark,
    and on-chain out of the box.


    barkd is a long-running daemon best suited for always-on or
    high-connectivity environments like nodes, servers, desktops, and
    point-of-sale terminals.


    All endpoints return JSON. Amounts are denominated in satoshis.
  contact:
    name: Second Team
    email: hello@second.tech
  license:
    name: MIT
    identifier: MIT
  version: 0.1.4
servers: []
security:
  - bearer: []
tags:
  - name: boards
    description: Move on-chain bitcoin onto the Ark protocol.
  - name: exits
    description: Move bitcoin back on-chain without server cooperation.
  - name: fees
    description: Estimate fees for wallet operations before executing them.
  - name: lightning
    description: Create Lightning invoices and track receives.
  - name: onchain
    description: Manage barkd's on-chain bitcoin wallet.
  - name: wallet
    description: Manage Ark balances and VTXOs, send payments via Ark, LN, and on-chain.
  - name: bitcoin
    description: Query bitcoin network data.
  - name: notifications
    description: Receive real-time notifications from barkd.
paths:
  /api/v1/exits/start/vtxos:
    post:
      tags:
        - exits
      summary: Start exit for specific VTXOs
      description: >-
        Registers the specified VTXOs for emergency exit. The daemon
        automatically progresses registered exits in the background at the
        cadence defined by `SLOW_INTERVAL`, creating and broadcasting the
        required transactions in sequence. Once all exit transactions are
        confirmed and the timelock has elapsed, call `claim` to sweep the
        resulting outputs to an on-chain address.
      operationId: exit_start_vtxos
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExitStartRequest'
        required: true
      responses:
        '200':
          description: Exit started successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExitStartResponse'
        '400':
          description: No VTXO IDs provided, or one of the provided VTXO IDs is invalid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestError'
        '404':
          description: One the VTXOs wasn't found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundError'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerError'
components:
  schemas:
    ExitStartRequest:
      type: object
      required:
        - vtxos
      properties:
        vtxos:
          type: array
          items:
            type: string
          description: The ID of VTXOs to unilaterally exit
    ExitStartResponse:
      type: object
      required:
        - message
      properties:
        message:
          type: string
    BadRequestError:
      type: object
      required:
        - message
      properties:
        message:
          type: string
    NotFoundError:
      type: object
      required:
        - resources
        - message
      properties:
        message:
          type: string
        resources:
          type: array
          items:
            type: string
    InternalServerError:
      type: object
      required:
        - message
      properties:
        message:
          type: string
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: AuthToken
      description: Base64url-encoded auth token

````