API Documentation

Coinos has a simple REST API that can be used to register accounts, fetch data, and make payments

* = required parameter

Base URL

{api}

Auth Token

This JWT authorizes you to use the API

{tokenSample}

POST /register

Register a new user account with a username and password

POST /login

Login to an account to get its auth token

POST /invoice

Create an invoice.

type: bitcoin or lightning
amount: amount in satoshis
webhook: an endpoint to hit when the invoice is paid
secret: a secret string for the webhook to check
hey

GET /invoice/:hash

Fetch an invoice by passing a bitcoin address or lightning payment hash