For the complete documentation index, see llms.txt. This page is also available as Markdown.

Receive

post
Header parameters
AuthorizationstringRequired

Authorization: Bearer header with token is required.

Keep your API key confidential.

Body
ttlintegerRequired

Branta will remove the payment after ttl seconds.

Example: 86400
metadatastringOptional

Optional stringified JSON to show the user.

Example: {"Name": "S*****", "Email": "s******.com"}
Responses
201

Payment created successfully

No content

post/payments
POST /v2/payments HTTP/1.1
Host: staging.guardrail.branta.pro
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 177

{
  "destinations": [
    {
      "value": "n2s5RV76sAMnQIOTMeRLsKkbS53g2v4gFUnH7i/RtRg4ZpIrDQq8WohDP9obSLLBGVrSnc8dR9TUC89veSg=",
      "type": "bitcoin_address",
      "primary": true,
      "zk": true
    }
  ],
  "ttl": 86400
}

No content

Zero Knowledge

Encrypt the destination before POST. A send lookup of a bare address is unknown. The SDK encrypts for you. HTTP callers use this algorithm:

Last updated