> ## 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.

# Send a payment

> Sends an Ark or Lightning payment to the specified destination. Accepts an Ark address, BOLT11 invoice, BOLT12 offer, or Lightning address. Ark address payments are settled instantly via an out-of-round (arkoor) transaction. The `amount_sat` field is required for Ark addresses and Lightning addresses but optional for invoices and offers that already encode an amount. Comments are only supported for Lightning addresses. To send to an on-chain bitcoin address, use `send-onchain` instead.



## OpenAPI

````yaml https://gitlab.com/ark-bitcoin/bark/-/raw/master/bark-rest/openapi.json post /api/v1/wallet/send
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/wallet/send:
    post:
      tags:
        - wallet
      summary: Send a payment
      description: >-
        Sends an Ark or Lightning payment to the specified destination. Accepts
        an Ark address, BOLT11 invoice, BOLT12 offer, or Lightning address. Ark
        address payments are settled instantly via an out-of-round (arkoor)
        transaction. The `amount_sat` field is required for Ark addresses and
        Lightning addresses but optional for invoices and offers that already
        encode an amount. Comments are only supported for Lightning addresses.
        To send to an on-chain bitcoin address, use `send-onchain` instead.
      operationId: send
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SendRequest'
        required: true
      responses:
        '200':
          description: Payment sent successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SendResponse'
        '400':
          description: >-
            The provided destination is not a valid Ark address, BOLT11 invoice,
            BOLT12 offer, or Lightning address
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestError'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerError'
components:
  schemas:
    SendRequest:
      type: object
      required:
        - destination
      properties:
        amount_sat:
          type:
            - integer
            - 'null'
          format: int64
          description: >-
            The amount to send (in satoshis). Optional for bolt11 invoices.
            Depending on the

            `destination`, the wallet must contain this amount plus any fees
            configured by the server in

            [FeeSchedule](crate::cli::fees::FeeSchedule).
          minimum: 0
        comment:
          type:
            - string
            - 'null'
          description: >-
            An optional comment, only supported when paying to lightning
            addresses
        destination:
          type: string
          description: >-
            The destination can be an Ark address, a BOLT11-invoice, LNURL or a
            lightning address
    SendResponse:
      type: object
      required:
        - message
      properties:
        message:
          type: string
          description: Success message
    BadRequestError:
      type: object
      required:
        - message
      properties:
        message:
          type: string
    InternalServerError:
      type: object
      required:
        - message
      properties:
        message:
          type: string
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: AuthToken
      description: Base64url-encoded auth token

````