Documentation
Coinos is free and open source software. The code is available at github.com/coinos
Coinos has a REST API that can be used to register accounts and make payments. The following examples show how you can call the API with curl
API Base URL
Auth Token
Sign in to view your auth token here, or get one from the /login endpoint. Save it in a variable called $token to run the examples. It gives full access to your account so keep it safe.
POST /register
Register a new user account with a username and password
POST /login
Login to an account to get its auth token
GET /me
Get your account details and balance
POST /user
Update your account/settings
POST /invoice
Create an invoice.
Get a lightning invoice to receive funds
Get a bitcoin address to receive funds
Sample response
You can check the received field to see how much has been paid
Specify a webhook to be called when an invoice is paid
GET /invoice/:hash
Fetch an invoice by passing a bitcoin address or lightning payment hash
POST /payments
Send a lightning payment
Send an internal payment to another user
POST /bitcoin/send
Send a bitcoin payment
GET /payments
Get all payments sent or received by the current user