API Reference

Effects

Subscriptions that react to ledger signals — deliver the event payload to a webhook endpoint or a bridge. Supports all ledger signals (`balance-received`, `intent-updated`, `wallet-created`, `signer-updated`, and 50+ more) with optional dot-path filters for fine-grained targeting.

List effects

GET
/effects

Authorization

BearerAuth LedgerHeader
AuthorizationBearer <token>

Access token obtained from POST /oauth/token

In: header

x-ledger<token>

Handle of the target ledger (e.g. demo-co)

In: header

Query Parameters

limit?integer

Maximum records to return

Default25
Rangevalue <= 100
offset?integer

Records to skip

Default0

Response Body

application/json

curl -X GET "https://demo-co.ldg-stg.one/api/v2/effects"
{
  "data": [
    {
      "handle": "notify-payment-received",
      "signal": "anchor-created",
      "filter": {
        "wallet.data.handle": "main@comercio-ejemplo.com.co"
      },
      "action": {
        "schema": "webhook",
        "endpoint": "https://comercio-ejemplo.com.co/api/webhooks/minka"
      }
    }
  ],
  "meta": {
    "total": 4,
    "limit": 25,
    "offset": 0
  }
}

Create webhook subscription

POST
/effects

Authorization

BearerAuth LedgerHeader
AuthorizationBearer <token>

Access token obtained from POST /oauth/token

In: header

x-ledger<token>

Handle of the target ledger (e.g. demo-co)

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://demo-co.ldg-stg.one/api/v2/effects" \  -H "Content-Type: application/json" \  -d '{    "data": {      "handle": "notify-balance-received-comercio",      "signal": "balance-received",      "filter": {        "wallet.data.handle": "main@comercio-ejemplo.com.co"      },      "action": {        "schema": "webhook",        "endpoint": "https://comercio-ejemplo.com.co/api/webhooks/minka"      }    }  }'
{
  "data": {
    "handle": "notify-payment-received",
    "signal": "anchor-created",
    "filter": {
      "wallet.data.handle": "main@comercio-ejemplo.com.co"
    },
    "action": {
      "schema": "webhook",
      "endpoint": "https://comercio-ejemplo.com.co/api/webhooks/minka"
    }
  }
}
{
  "error": {
    "code": "schema-validation-failed",
    "message": "Required field 'schema' is missing from data"
  }
}

Get effect

GET
/effects/{handle}

Authorization

BearerAuth LedgerHeader
AuthorizationBearer <token>

Access token obtained from POST /oauth/token

In: header

x-ledger<token>

Handle of the target ledger (e.g. demo-co)

In: header

Path Parameters

handle*string

Record handle

Response Body

application/json

application/json

curl -X GET "https://demo-co.ldg-stg.one/api/v2/effects/pay-20260608-001"
{
  "data": {
    "handle": "notify-payment-received",
    "signal": "anchor-created",
    "filter": {
      "wallet.data.handle": "main@comercio-ejemplo.com.co"
    },
    "action": {
      "schema": "webhook",
      "endpoint": "https://comercio-ejemplo.com.co/api/webhooks/minka"
    }
  }
}
{
  "error": {
    "code": "not-found",
    "message": "Wallet not found"
  }
}

On this page

No Headings