A nostr request will take the same parameter and give the same response as an http request, but it will use nostr as transport, to do that it will send encrypted events to the server public key, in the event 6 thing are required:
- rpcName: string containing the name of the method
- params: a map with the all the url params for the method
- query: a map with the the url query for the method
- body: the body of the method request
- requestId: id of the request to be able to get a response
The nostr server will send back a message response, and inside the body there will also be a requestId to identify the request this response is answering
-
AddApp
- auth type: Admin
- input: AddAppRequest
- output: AuthApp
-
AddProduct
- auth type: User
- input: AddProductRequest
- output: Product
-
AuthApp
- auth type: Admin
- input: AuthAppRequest
- output: AuthApp
-
AuthorizeDebit
- auth type: User
- input: DebitAuthorizationRequest
- output: DebitAuthorization
-
BanDebit
- auth type: User
- input: DebitOperation
- This methods has an empty response body
-
BanUser
- auth type: Admin
- input: BanUserRequest
- output: BanUserResponse
-
BatchUser
- auth type: User
- This methods has an empty request body
- This methods has an empty response body
-
CreateOneTimeInviteLink
- auth type: Admin
- input: CreateOneTimeInviteLinkRequest
- output: CreateOneTimeInviteLinkResponse
-
DecodeInvoice
- auth type: User
- input: DecodeInvoiceRequest
- output: DecodeInvoiceResponse
-
EditDebit
- auth type: User
- input: DebitAuthorizationRequest
- This methods has an empty response body
-
EnrollAdminToken
- auth type: User
- input: EnrollAdminTokenRequest
- This methods has an empty response body
-
GetAppsMetrics
- auth type: Metrics
- input: AppsMetricsRequest
- output: AppsMetrics
-
GetDebitAuthorizations
- auth type: User
- This methods has an empty request body
- output: DebitAuthorizations
-
GetHttpCreds
- auth type: User
- This methods has an empty request body
- output: HttpCreds
-
GetInviteLinkState
- auth type: Admin
- input: GetInviteTokenStateRequest
- output: GetInviteTokenStateResponse
-
GetLNURLChannelLink
- auth type: User
- This methods has an empty request body
- output: LnurlLinkResponse
-
GetLiveDebitRequests
- auth type: User
- This methods has an empty request body
- output: LiveDebitRequest
-
GetLiveUserOperations
- auth type: User
- This methods has an empty request body
- output: LiveUserOperation
-
GetLndMetrics
- auth type: Metrics
- input: LndMetricsRequest
- output: LndMetrics
-
GetLnurlPayLink
- auth type: User
- This methods has an empty request body
- output: LnurlLinkResponse
-
GetLnurlWithdrawLink
- auth type: User
- This methods has an empty request body
- output: LnurlLinkResponse
-
GetMigrationUpdate
- auth type: User
- This methods has an empty request body
- output: MigrationUpdate
-
GetPaymentState
- auth type: User
- input: GetPaymentStateRequest
- output: PaymentState
-
GetSeed
- auth type: Admin
- This methods has an empty request body
- output: LndSeed
-
GetUsageMetrics
- auth type: Metrics
- This methods has an empty request body
- output: UsageMetrics
-
GetUserInfo
- auth type: User
- This methods has an empty request body
- output: UserInfo
-
GetUserOperations
- auth type: User
- input: GetUserOperationsRequest
- output: GetUserOperationsResponse
-
LinkNPubThroughToken
- auth type: GuestWithPub
- input: LinkNPubThroughTokenRequest
- This methods has an empty response body
-
ListChannels
- auth type: Admin
- This methods has an empty request body
- output: LndChannels
-
LndGetInfo
- auth type: Admin
- input: LndGetInfoRequest
- output: LndGetInfoResponse
-
NewAddress
- auth type: User
- input: NewAddressRequest
- output: NewAddressResponse
-
NewInvoice
- auth type: User
- input: NewInvoiceRequest
- output: NewInvoiceResponse
-
NewProductInvoice
- auth type: User
- the request url query can take the following string items:
- id
- This methods has an empty request body
- output: NewInvoiceResponse
-
OpenChannel
- auth type: User
- input: OpenChannelRequest
- output: OpenChannelResponse
-
PayAddress
- auth type: User
- input: PayAddressRequest
- output: PayAddressResponse
-
PayInvoice
- auth type: User
- input: PayInvoiceRequest
- output: PayInvoiceResponse
-
ResetDebit
- auth type: User
- input: DebitOperation
- This methods has an empty response body
-
RespondToDebit
- auth type: User
- input: DebitResponse
- This methods has an empty response body
-
UpdateCallbackUrl
- auth type: User
- input: CallbackUrl
- output: CallbackUrl
-
UseInviteLink
- auth type: GuestWithPub
- input: UseInviteLinkRequest
- This methods has an empty response body
-
UserHealth
- auth type: User
- This methods has an empty request body
- This methods has an empty response body
-
Admin:
- expected context content
- admin_id: string
- expected context content
-
App:
- expected context content
- app_id: string
- expected context content
-
Guest:
- expected context content
-
GuestWithPub:
- expected context content
- app_id: string
- pub: string
- expected context content
-
Metrics:
- expected context content
- operator_id: string
- expected context content
-
User:
- expected context content
- app_id: string
- app_user_id: string
- user_id: string
- expected context content
-
AddApp
- auth type: Admin
- http method: post
- http route: /api/admin/app/add
- input: AddAppRequest
- output: AuthApp
-
AddAppInvoice
- auth type: App
- http method: post
- http route: /api/app/add/invoice
- input: AddAppInvoiceRequest
- output: NewInvoiceResponse
-
AddAppUser
- auth type: App
- http method: post
- http route: /api/app/user/add
- input: AddAppUserRequest
- output: AppUser
-
AddAppUserInvoice
- auth type: App
- http method: post
- http route: /api/app/user/add/invoice
- input: AddAppUserInvoiceRequest
- output: NewInvoiceResponse
-
AddProduct
- auth type: User
- http method: post
- http route: /api/user/product/add
- input: AddProductRequest
- output: Product
-
AuthApp
- auth type: Admin
- http method: post
- http route: /api/admin/app/auth
- input: AuthAppRequest
- output: AuthApp
-
AuthorizeDebit
- auth type: User
- http method: post
- http route: /api/user/debit/authorize
- input: DebitAuthorizationRequest
- output: DebitAuthorization
-
BanDebit
- auth type: User
- http method: post
- http route: /api/user/debit/ban
- input: DebitOperation
- This methods has an empty response body
-
BanUser
- auth type: Admin
- http method: post
- http route: /api/admin/user/ban
- input: BanUserRequest
- output: BanUserResponse
-
BatchUser
- auth type: User
- http method: post
- http route: /api/user/batch
- This methods has an empty request body
- This methods has an empty response body
-
CreateOneTimeInviteLink
- auth type: Admin
- http method: post
- http route: /api/admin/app/invite/create
- input: CreateOneTimeInviteLinkRequest
- output: CreateOneTimeInviteLinkResponse
-
DecodeInvoice
- auth type: User
- http method: post
- http route: /api/user/invoice/decode
- input: DecodeInvoiceRequest
- output: DecodeInvoiceResponse
-
EditDebit
- auth type: User
- http method: post
- http route: /api/user/debit/edit
- input: DebitAuthorizationRequest
- This methods has an empty response body
-
EncryptionExchange
- auth type: Guest
- http method: post
- http route: /api/encryption/exchange
- input: EncryptionExchangeRequest
- This methods has an empty response body
-
EnrollAdminToken
- auth type: User
- http method: post
- http route: /api/guest/npub/enroll/admin
- input: EnrollAdminTokenRequest
- This methods has an empty response body
-
GetApp
- auth type: App
- http method: post
- http route: /api/app/get
- This methods has an empty request body
- output: Application
-
GetAppUser
- auth type: App
- http method: post
- http route: /api/app/user/get
- input: GetAppUserRequest
- output: AppUser
-
GetAppUserLNURLInfo
- auth type: App
- http method: post
- http route: /api/app/user/lnurl/pay/info
- input: GetAppUserLNURLInfoRequest
- output: LnurlPayInfoResponse
-
GetAppsMetrics
- auth type: Metrics
- http method: post
- http route: /api/reports/apps
- input: AppsMetricsRequest
- output: AppsMetrics
-
GetDebitAuthorizations
- auth type: User
- http method: get
- http route: /api/user/debit/get
- This methods has an empty request body
- output: DebitAuthorizations
-
GetHttpCreds
- auth type: User
- http method: post
- http route: /api/user/http_creds
- This methods has an empty request body
- output: HttpCreds
-
GetInviteLinkState
- auth type: Admin
- http method: post
- http route: /api/admin/app/invite/get
- input: GetInviteTokenStateRequest
- output: GetInviteTokenStateResponse
-
GetLNURLChannelLink
- auth type: User
- http method: post
- http route: /api/user/lnurl_channel/url
- This methods has an empty request body
- output: LnurlLinkResponse
-
GetLiveDebitRequests
- auth type: User
- http method: post
- http route: /api/user/debit/sub
- This methods has an empty request body
- output: LiveDebitRequest
-
GetLiveUserOperations
- auth type: User
- http method: post
- http route: /api/user/operations/sub
- This methods has an empty request body
- output: LiveUserOperation
-
GetLndMetrics
- auth type: Metrics
- http method: post
- http route: /api/reports/lnd
- input: LndMetricsRequest
- output: LndMetrics
-
GetLnurlPayInfo
- auth type: Guest
- http method: get
- http route: /api/guest/lnurl_pay/info
- the request url query can take the following string items:
- k1
- This methods has an empty request body
- output: LnurlPayInfoResponse
-
GetLnurlPayLink
- auth type: User
- http method: get
- http route: /api/user/lnurl_pay/link
- This methods has an empty request body
- output: LnurlLinkResponse
-
GetLnurlWithdrawInfo
- auth type: Guest
- http method: get
- http route: /api/guest/lnurl_withdraw/info
- the request url query can take the following string items:
- k1
- This methods has an empty request body
- output: LnurlWithdrawInfoResponse
-
GetLnurlWithdrawLink
- auth type: User
- http method: get
- http route: /api/user/lnurl_withdraw/link
- This methods has an empty request body
- output: LnurlLinkResponse
-
GetMigrationUpdate
- auth type: User
- http method: post
- http route: /api/user/migrations/sub
- This methods has an empty request body
- output: MigrationUpdate
-
GetNPubLinkingState
- auth type: App
- http method: post
- http route: /api/app/user/npub/state
- input: GetNPubLinking
- output: NPubLinking
-
GetPaymentState
- auth type: User
- http method: post
- http route: /api/user/payment/state
- input: GetPaymentStateRequest
- output: PaymentState
-
GetSeed
- auth type: Admin
- http method: get
- http route: /api/admin/seed
- This methods has an empty request body
- output: LndSeed
-
GetUsageMetrics
- auth type: Metrics
- http method: post
- http route: /api/reports/usage
- This methods has an empty request body
- output: UsageMetrics
-
GetUserInfo
- auth type: User
- http method: post
- http route: /api/user/info
- This methods has an empty request body
- output: UserInfo
-
GetUserOperations
- auth type: User
- http method: post
- http route: /api/user/operations
- input: GetUserOperationsRequest
- output: GetUserOperationsResponse
-
HandleLnurlAddress
- auth type: Guest
- http method: get
- http route: /.well-known/lnurlp/:address_name
- the request url params are the following string items:
- address_name
- This methods has an empty request body
- output: LnurlPayInfoResponse
-
HandleLnurlPay
- auth type: Guest
- http method: get
- http route: /api/guest/lnurl_pay/handle
- the request url query can take the following string items:
- amount
- k1
- lnurl
- nostr
- This methods has an empty request body
- output: HandleLnurlPayResponse
-
HandleLnurlWithdraw
- auth type: Guest
- http method: get
- http route: /api/guest/lnurl_withdraw/handle
- the request url query can take the following string items:
- k1
- pr
- This methods has an empty request body
- This methods has an empty response body
-
Health
- auth type: Guest
- http method: get
- http route: /api/health
- This methods has an empty request body
- This methods has an empty response body
-
LinkNPubThroughToken
- auth type: GuestWithPub
- http method: post
- http route: /api/guest/npub/link
- input: LinkNPubThroughTokenRequest
- This methods has an empty response body
-
ListChannels
- auth type: Admin
- http method: get
- http route: /api/admin/channels
- This methods has an empty request body
- output: LndChannels
-
LndGetInfo
- auth type: Admin
- http method: post
- http route: /api/admin/lnd/getinfo
- input: LndGetInfoRequest
- output: LndGetInfoResponse
-
NewAddress
- auth type: User
- http method: post
- http route: /api/user/chain/new
- input: NewAddressRequest
- output: NewAddressResponse
-
NewInvoice
- auth type: User
- http method: post
- http route: /api/user/invoice/new
- input: NewInvoiceRequest
- output: NewInvoiceResponse
-
NewProductInvoice
- auth type: User
- http method: get
- http route: /api/user/product/get/invoice
- the request url query can take the following string items:
- id
- This methods has an empty request body
- output: NewInvoiceResponse
-
OpenChannel
- auth type: User
- http method: post
- http route: /api/user/open/channel
- input: OpenChannelRequest
- output: OpenChannelResponse
-
PayAddress
- auth type: User
- http method: post
- http route: /api/user/chain/pay
- input: PayAddressRequest
- output: PayAddressResponse
-
PayAppUserInvoice
- auth type: App
- http method: post
- http route: /api/app/invoice/pay
- input: PayAppUserInvoiceRequest
- output: PayInvoiceResponse
-
PayInvoice
- auth type: User
- http method: post
- http route: /api/user/invoice/pay
- input: PayInvoiceRequest
- output: PayInvoiceResponse
-
RequestNPubLinkingToken
- auth type: App
- http method: post
- http route: /api/app/user/npub/token
- input: RequestNPubLinkingTokenRequest
- output: RequestNPubLinkingTokenResponse
-
ResetDebit
- auth type: User
- http method: post
- http route: /api/user/debit/reset
- input: DebitOperation
- This methods has an empty response body
-
ResetNPubLinkingToken
- auth type: App
- http method: post
- http route: /api/app/user/npub/token/reset
- input: RequestNPubLinkingTokenRequest
- output: RequestNPubLinkingTokenResponse
-
RespondToDebit
- auth type: User
- http method: post
- http route: /api/user/debit/finish
- input: DebitResponse
- This methods has an empty response body
-
SendAppUserToAppPayment
- auth type: App
- http method: post
- http route: /api/app/internal/pay
- input: SendAppUserToAppPaymentRequest
- This methods has an empty response body
-
SendAppUserToAppUserPayment
- auth type: App
- http method: post
- http route: /api/app/user/internal/pay
- input: SendAppUserToAppUserPaymentRequest
- This methods has an empty response body
-
SetMockAppBalance
- auth type: App
- http method: post
- http route: /api/app/mock/blance/set
- input: SetMockAppBalanceRequest
- This methods has an empty response body
-
SetMockAppUserBalance
- auth type: App
- http method: post
- http route: /api/app/mock/user/blance/set
- input: SetMockAppUserBalanceRequest
- This methods has an empty response body
-
SetMockInvoiceAsPaid
- auth type: Guest
- http method: post
- http route: /api/lnd/mock/invoice/paid
- input: SetMockInvoiceAsPaidRequest
- This methods has an empty response body
-
UpdateCallbackUrl
- auth type: User
- http method: post
- http route: /api/user/cb/update
- input: CallbackUrl
- output: CallbackUrl
-
UseInviteLink
- auth type: GuestWithPub
- http method: post
- http route: /api/guest/invite
- input: UseInviteLinkRequest
- This methods has an empty response body
-
UserHealth
- auth type: User
- http method: post
- http route: /api/user/health
- This methods has an empty request body
- This methods has an empty response body
- http_callback_url: string
- invoice_req: NewInvoiceRequest
- payer_identifier: string
- allow_user_creation: boolean
- name: string
- http_callback_url: string
- invoice_req: NewInvoiceRequest
- payer_identifier: string
- receiver_identifier: string
- balance: number
- fail_if_exists: boolean
- identifier: string
- name: string
- price_sats: number
- app: Application
- available: number
- fees: number
- invoices: number
- operations: ARRAY of: UserOperation
- received: number
- spent: number
- total_fees: number
- users: UsersInfo
- identifier: string
- info: UserInfo
- max_withdrawable: number
- balance: number
- id: string
- name: string
- npub: string
- apps: ARRAY of: AppMetrics
- from_unix: number *this field is optional
- include_operations: boolean *this field is optional
- to_unix: number *this field is optional
- app: Application
- auth_token: string
- allow_user_creation: boolean *this field is optional
- name: string
- user_id: string
- balance_sats: number
- banned_app_users: ARRAY of: BannedAppUser
- app_id: string
- app_name: string
- nostr_pub: string
- user_identifier: string
- url: string
- capacity: number
- channel_id: string
- closed_height: number
- closes_at_unix: number
- sats: number *this field is optional
- invitation_link: string
- authorized: boolean
- debit_id: string
- npub: string
- rules: ARRAY of: DebitRule
- authorize_npub: string
- request_id: string *this field is optional
- rules: ARRAY of: DebitRule
- debits: ARRAY of: DebitAuthorization
- expires_at_unix: number
- npub: string
- npub: string
- request_id: string
- response: DebitResponse_response
- rule: DebitRule_rule
- invoice: string
- amount: number
- deviceId: string
- publicKey: string
- admin_token: string
- amount: number
- interval: IntervalType
- number_of_intervals: number
- base_url_override: string
- user_identifier: string
- user_identifier: string
- invite_token: string
- used: boolean
- user_identifier: string
- invoice: string
- link: string
- latestIncomingInvoice: number
- latestIncomingTx: number
- latestIncomingUserToUserPayment: number
- latestOutgoingInvoice: number
- latestOutgoingTx: number
- latestOutgoingUserToUserPayment: number
- max_size: number
- latestIncomingInvoiceOperations: UserOperations
- latestIncomingTxOperations: UserOperations
- latestIncomingUserToUserPayemnts: UserOperations
- latestOutgoingInvoiceOperations: UserOperations
- latestOutgoingTxOperations: UserOperations
- latestOutgoingUserToUserPayemnts: UserOperations
- x: number
- y: number
- pr: string
- routes: ARRAY of: Empty
- token: string
- url: string
- token: string
- debit: LiveDebitRequest_debit
- npub: string
- request_id: string
- operation: UserOperation
- open_channels: ARRAY of: OpenChannel
- nodeId: number
- alias: string
- nodes: ARRAY of: LndNodeMetrics
- from_unix: number *this field is optional
- to_unix: number *this field is optional
- chain_balance: ARRAY of: GraphPoint
- channel_balance: ARRAY of: GraphPoint
- closed_channels: ARRAY of: ClosedChannel
- closing_channels: number
- external_balance: ARRAY of: GraphPoint
- forwarding_events: number
- forwarding_fees: number
- offline_channels: number
- online_channels: number
- open_channels: ARRAY of: OpenChannel
- pending_channels: number
- seed: ARRAY of: string
- k1: string
- lnurl: string
- allowsNostr: boolean
- callback: string
- maxSendable: number
- metadata: string
- minSendable: number
- nostrPubkey: string
- tag: string
- balanceCheck: string
- callback: string
- defaultDescription: string
- k1: string
- maxWithdrawable: number
- minWithdrawable: number
- payLink: string
- tag: string
- closure: ClosureMigration *this field is optional
- relays: RelaysMigration *this field is optional
- state: NPubLinking_state
- addressType: AddressType
- address: string
- amountSats: number
- memo: string
- zap: string *this field is optional
- invoice: string
- active: boolean
- capacity: number
- channel_id: string
- label: string
- lifetime: number
- local_balance: number
- remote_balance: number
- closeAddress: string
- destination: string
- fundingAmount: number
- pushAmount: number
- channelId: string
- address: string
- amoutSats: number
- satsPerVByte: number
- network_fee: number
- operation_id: string
- service_fee: number
- txId: string
- amount: number
- debit_npub: string *this field is optional
- invoice: string
- user_identifier: string
- amount: number
- debit_npub: string *this field is optional
- invoice: string
- amount_paid: number
- network_fee: number
- operation_id: string
- preimage: string
- service_fee: number
- amount: number
- network_fee: number
- paid_at_unix: number
- service_fee: number
- id: string
- name: string
- noffer: string
- price_sats: number
- relays: ARRAY of: string
- user_identifier: string
- token: string
- event_type: string
- failure_string: string
- forward_fail_event: boolean
- incoming_amt_msat: number
- incoming_channel_id: number
- incoming_htlc_id: number
- offchain: boolean
- outgoing_amt_msat: number
- outgoing_channel_id: number
- outgoing_htlc_id: number
- settled: boolean
- timestamp_ns: number
- amount: number
- from_user_identifier: string
- amount: number
- from_user_identifier: string
- to_user_identifier: string
- amount: number
- amount: number
- user_identifier: string
- amount: number
- invoice: string
- auth_in_nano: number
- batch: boolean
- batch_size: number
- handle_in_nano: number
- nostr: boolean
- parsed_in_nano: number
- processed_at_ms: number
- rpc_name: string
- validate_in_nano: number
- metrics: ARRAY of: UsageMetric
- invite_token: string
- balance: number
- bridge_url: string
- callback_url: string
- max_withdrawable: number
- ndebit: string
- network_max_fee_bps: number
- network_max_fee_fixed: number
- noffer: string
- service_fee_bps: number
- userId: string
- user_identifier: string
- amount: number
- confirmed: boolean
- identifier: string
- inbound: boolean
- internal: boolean
- network_fee: number
- operationId: string
- paidAtUnix: number
- service_fee: number
- tx_hash: string
- type: UserOperationType
- fromIndex: number
- operations: ARRAY of: UserOperation
- toIndex: number
- always_been_inactive: number
- balance_avg: number
- balance_median: number
- negative_balance: number
- no_balance: number
- total: number
- NESTED_PUBKEY_HASH
- TAPROOT_PUBKEY
- WITNESS_PUBKEY_HASH
- DAY
- MONTH
- WEEK
- INCOMING_INVOICE
- INCOMING_TX
- INCOMING_USER_TO_USER
- OUTGOING_INVOICE
- OUTGOING_TX
- OUTGOING_USER_TO_USER