API documentation
The btc-era.co API follows the REST schema. Everything is a resource and can be modified by standard http methods GET, POST, PUT and DELETE. Information returned is always in json format.
To use the API you need to provide an API token in the HTTP header "Http-Authorization". You can get/create your API-Key in the Dashboard.
Agent resource
Manage your agents. You can list existing agents, update them, create new agents or delete an agent.
Note: The
method | resource location | description |
---|---|---|
GET | https://btc-era.co/api/v1/agent/ | Retrieve a list of all agents. |
curl example: | curl -H "Authorization: |
|
GET | https://btc-era.co/api/v1/agent/ |
Retrieve details of agent with id |
curl example: | curl -H "Authorization: |
|
POST | https://btc-era.co/api/v1/agent/ |
Create a new agent. You need to provide the following parameters:
|
curl example: | curl -H "Authorization: |
|
PUT | https://btc-era.co/api/v1/agent/ |
Change an existing agent. You can provide the following parameters:
|
curl example: | curl -H "Authorization: |
|
DELETE | https://btc-era.co/api/v1/agent/ |
Delete agent |
curl example: | curl -H "Authorization: |
Address resource
Manage the bitcoin addresses of your agents. You can list, add or remove the addresses an agent is watching.
method | resource location | description |
---|---|---|
GET | https://btc-era.co/api/v1/agent/ |
Retrieve a list of all addresses agent is currently watching. |
curl example: | curl -H "Authorization: |
|
GET | https://btc-era.co/api/v1/agent/ |
Check if an address is on the agent's watchlist. |
curl example: | curl -H "Authorization: |
|
POST | https://btc-era.co/api/v1/agent/ |
Add a bitcoin address to the agent's watchlist. |
curl example: | curl -H "Authorization: |
|
DELETE | https://btc-era.co/api/v1/agent/ |
Remove a bitcoin address from the agent's watchlist. |
curl example: | curl -H "Authorization: |
Notification resources
Manage notification settings. You can create, list, update or delete notification settings of an agent.
There are three types of notifications, each having it's own resource URI:
- manage email notifications
- feed
- manage rss/atom feed notifications
- url
- manage url callback notifications
- xmpp
- manage xmpp instant messaging notifications
method | resource location | description |
---|---|---|
GET | https://btc-era.co/api/v1/agent/ |
Retrieve a list of all |
curl example: | curl -H "Authorization: |
|
GET | https://btc-era.co/api/v1/agent/ |
Get a specific |
curl example: | curl -H "Authorization: |
|
POST | https://btc-era.co/api/v1/agent/ |
Create a new
|
curl example (email): | curl -H "Authorization: |
|
curl example (url callback): | curl -H "Authorization: |
|
curl example (feed): | curl -H "Authorization: |
|
curl example (xmpp): | curl -H "Authorization: |
|
DELETE | https://btc-era.co/api/v1/agent/ |
Delete a notification. |
curl example: | curl -H "Authorization: |