API Documentation

This page shows how to use Biteq.

First things first, let’s add sats to your API wallet. Use this endpoint to create an invoice which you can pay to fund your API wallet for paying others!

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
amountstringOptional
Responses
chevron-right
200

POST /create-invoice

application/json
post
/create-invoice
200

POST /create-invoice

Now you can copy your invoice, and pay it with your personal wallet! Once you have paid your invoice, you can check with Biteq to see if it reflected. Copy the checkingId you got earlier and make this request!

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
hashstringOptional
Responses
chevron-right
200

GET /check-invoice

application/json
get
/check-invoice
200

GET /check-invoice

Another thing you can do is make an invoice on your personal wallet and pay it with the sats you have in the Biteq API. Let's try that method out!

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
invoicestringOptional
Responses
chevron-right
200

POST /pay-invoice

application/json
post
/pay-invoice
200

POST /pay-invoice

Now, let’s verify to see if a lightning address exists! This endpoint will not just return if it’s valid, but basic metadata and more info of the Lightning address, like ZEBEDEE. (thanks to fiatjaf for the endpoint)

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
addressstringOptional
Responses
chevron-right
200

GET /check-address

application/json
get
/check-address
200

GET /check-address

Next, let's pay to a lightning address! (useful for play-to earn games and/or GPT sites) Let's try this endpoint out!

POST https://biteq.teqquu.com/pay-address

Request Body

Name
Type
Description

amount*

Integer

address*

String

comment

String

Defaults to "Payment from Biteq"

I should have covered this a while ago, but you can also check your balance before you try paying or stuff to make sure you don’t get any errors. Let’s try that out!

GET https://biteq.teqquu.com/balance

There will be more endpoints soon, but remember, Biteq is in beta-testing and we will continue adding endpoints for you.

Last updated