Woleet's Swagger/OpenAPI official JavaScript client generated using openapi-codegen (see official API documentation at https://api.woleet.io)
Switch branches/tags
Nothing to show
Clone or download
vbarat 1.5.2
Latest commit 464beba Sep 26, 2018
Failed to load latest commit information.
.swagger-codegen Domain user management added Jan 25, 2018
docs 1.5.2 Sep 26, 2018
src 1.5.2 Sep 26, 2018
test 1.5.2 Sep 26, 2018
.swagger-codegen-ignore Initial release 1.0.1 Dec 21, 2016
.travis.yml Initial release 1.0.1 Dec 21, 2016
README.md 1.5.2 Sep 26, 2018
git_push.sh API version 1.2.2 Jun 12, 2017
mocha.opts Initial release 1.0.1 Dec 21, 2016
package.json 1.5.2 Sep 26, 2018



WoleetApi - JavaScript client for woleet_api Welcome to Woleet API reference documentation.
It is highly recommanded to read the chapters introducing Woleet API concepts before reading this documentation. This SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.5.2
  • Package version: 1.5.2
  • Build package: io.swagger.codegen.languages.JavascriptClientCodegen For more information, please visit https://www.woleet.io/


For Node.js


To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install woleet_api --save
Local development

To use the library locally without publishing to a remote npm registry, first install the dependencies by changing into the directory containing package.json (and this README). Let's call this JAVASCRIPT_CLIENT_DIR. Then run:

npm install

Next, link it globally in npm with the following, also from JAVASCRIPT_CLIENT_DIR:

npm link

Finally, switch to the directory you want to use your woleet_api from, and run:

npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

You should now be able to require('woleet_api') in javascript files from the directory you ran the last command above from.


If the library is hosted at a git repository, e.g. https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via:

    npm install GIT_USER_ID/GIT_REPO_ID --save

For browser

The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file, that's to say your javascript file where you actually use this library):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:

module: {
  rules: [
      parser: {
        amd: false

Getting Started

Please follow the installation instruction and execute the following JS code:

var WoleetApi = require('woleet_api');

var defaultClient = WoleetApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME'
BasicAuth.password = 'YOUR PASSWORD'

// Configure API key authorization: JWTAuth
var JWTAuth = defaultClient.authentications['JWTAuth'];
JWTAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//JWTAuth.apiKeyPrefix['Authorization'] = "Token"

var api = new WoleetApi.AnchorApi()

var anchor = new WoleetApi.Anchor(); // {Anchor} Anchor object to create.

var callback = function(error, data, response) {
  if (error) {
  } else {
    console.log('API called successfully. Returned data: ' + data);
api.createAnchor(anchor, callback);

Documentation for API Endpoints

All URIs are relative to https://api.woleet.io/v1

Class Method HTTP request Description
WoleetApi.AnchorApi createAnchor POST /anchor Create a new anchor.
WoleetApi.AnchorApi deleteAnchor DELETE /anchor/{anchorid} Delete an anchor.
WoleetApi.AnchorApi getAnchor GET /anchor/{anchorid} Get an anchor by its identifier.
WoleetApi.AnchorApi searchAnchorIds GET /anchorids Search for public anchors' identifiers.
WoleetApi.AnchorApi searchAnchors GET /anchors Search for anchors.
WoleetApi.AnchorApi updateAnchor PUT /anchor/{anchorid} Update an anchor.
WoleetApi.DomainApi createDomainUser POST /domain/admin/user Create a new domain user.
WoleetApi.DomainApi deleteDomainUser DELETE /domain/admin/user/{userid} Delete a domain user.
WoleetApi.DomainApi getDomainUser GET /domain/admin/user/{userid} Get a domain user by its identifier.
WoleetApi.DomainApi searchDomainUsers GET /domain/admin/users Search for domain users.
WoleetApi.DomainApi updateDomainUser PUT /domain/admin/user/{userid} Update a domain user.
WoleetApi.ReceiptApi getOTSReceipt GET /receipt/{anchorid}/ots Get the proof receipt of an anchor (OpenTimestamps proof format).
WoleetApi.ReceiptApi getReceipt GET /receipt/{anchorid} Get the proof receipt of an anchor (Chainpoint proof format).
WoleetApi.ReceiptApi verifyReceipt POST /receipt/verify Verify a proof receipt.
WoleetApi.SignatureRequestApi createSignatureRequest POST /signatureRequest Create a new signature request.
WoleetApi.SignatureRequestApi deleteSignatureRequest DELETE /signatureRequest/{requestid} Delete a signature request.
WoleetApi.SignatureRequestApi getSignatureRequest GET /signatureRequest/{requestid} Get a signature request by its identifier.
WoleetApi.SignatureRequestApi searchSignatureRequests GET /signatureRequests Search for signature requests.
WoleetApi.SignatureRequestApi signSignatureRequest POST /signatureRequest/{requestid}/sign Sign a signature request.
WoleetApi.SignatureRequestApi updateSignatureRequest PUT /signatureRequest/{requestid} Update a signature request.
WoleetApi.TokenApi generateToken GET /token Generate a JWT token.
WoleetApi.TokenApi revokeToken DELETE /token Revoke a JWT token.
WoleetApi.UserApi getCredits GET /user/credits Get user's anchoriong credits.
WoleetApi.UserApi getTokens GET /user/tokens Get user's tokens.
WoleetApi.UserApi putTokens PUT /user/tokens Update user's tokens.

Documentation for Models

Documentation for Authorization


  • Type: HTTP basic authentication


  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header