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

# Get send status

> Returns the status of a specified outgoing Lightning payment, identified by its payment hash or invoice string. The `state` field tracks the payment lifecycle from `start` through `paid`; the preimage is included once the payment succeeded. If the wallet does not recognize the payment hash, it will return `unknown`. This is a read on the status in the db, so it does not trigger any `sync` before checking the state.



## OpenAPI

````yaml https://gitlab.com/ark-bitcoin/bark/-/raw/master/bark-rest/openapi.json get /api/v1/lightning/sends/{identifier}
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.6.0
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: history
    description: Inspect and annotate wallet movement history.
  - 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/lightning/sends/{identifier}:
    get:
      tags:
        - lightning
      summary: Get send status
      description: >-
        Returns the status of a specified outgoing Lightning payment, identified
        by its payment hash or invoice string. The `state` field tracks the
        payment lifecycle from `start` through `paid`; the preimage is included
        once the payment succeeded. If the wallet does not recognize the payment
        hash, it will return `unknown`. This is a read on the status in the db,
        so it does not trigger any `sync` before checking the state.
      operationId: get_send_status
      parameters:
        - name: identifier
          in: path
          description: Payment hash or invoice string to search for
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Returns the Lightning send status
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LightningSendInfo'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestError'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerError'
components:
  schemas:
    LightningSendInfo:
      type: object
      required:
        - payment_hash
        - state
      properties:
        invoice:
          type:
            - string
            - 'null'
          description: The invoice string, if known.
        payment_hash:
          type: string
          description: The payment hash of the outgoing lightning payment
        preimage:
          type:
            - string
            - 'null'
          description: The payment preimage, revealed once the payment succeeded.
        state:
          type: string
          description: >-
            Lifecycle phase of the send: `unknown`, `start`, `htlc-received`,

            `payment-initiated`, `revocable-htlcs`, `revocation-stuck`, or
            `paid`.
    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

````