The REST API is a powerful tool that allows external communications with the BizDock data.

Security management


API action

An API action represents simply a method of the API, for example “get the actors” or “create a portfolio entry”.

Authentication headers

When calling the API, the HTTP request should contains some headers used for the authentication:

  • X-bizdock-timestamp: The current timestamp in milliseconds
  • X-bizdock-application: The application key
  • X-bizdock-signature: The request signature

API authentication mode

The API authentication mode defines the way to secure the communication with the API. There are 2 modes:

  • APPLICATION_KEY_ONLY: each request should include an application key in the header in order to authenticate the sender.
  • SIGNATURE: each request should include an signature in the header and should be signed with a secret key. This allows to authenticate the sender and prevent also man-in-the-middle attack.

The API could be only called with a secured communication protocol (HTTPS), so the requests and responses (including the headers) are in both cases encrypted.

API key

An API key is a pair of keys (application and secret) that are used to create a request. An API key also contains a configuration to define which actions are authorized.

Change the API authentication mode

→ To change the API authentication mode, the permission ADMIN_CONFIGURATION_PERMISSION is required.

  1. Go to the System preferences,
  2. Click on “Update”,
  3. Under “API authenticaton mode”, select the wished mode.

API keys management

→ To manage the API keys, the permission API_MANAGER_PERMISSION is required.

The API keys management interface is available from the “Integration” item inside the “Admin” menu. Then select the “API keys” item from the left menu.


Field Description
Is testable A testable key could be used in the API browser.
Name The name of the key.
Description The description of the key.
API authorizations List of authorized actions for the key. An authorization is defined by an HTTP method and a pattern for the actions, it follows this syntax: {HTTP_METHOD} {ACTIONS_PATTERN}.
ACTIONS_PATTERN: a regular expression which described the authorized actions according to their routes.
GET /api/core/portfolio/.* : All GET actions that start with /api/core/portfolio/
POST (.*) : all POST actions
Secret key The secret key used to sign the requests (automatically generated).
Application key The application key used to authenticate the request sender (automatically generated).
Protocol version The protocol version, currently 1 (automatically generated).
Hash algorithm The hash algorithm for the signature, currently SHA-512 (automatically generated).

Create an API key

  1. Go to the “API configuration manager”,
  2. Click on the “Add” icon inside the Registered applications table,
  3. Complete the API key's attributes and Save,
  4. The new API key is created with an application and a secret keys auto-generated.

Edit an API key

  1. Go to the “API configuration manager”,
  2. Click on the “Edit” icon for the wished API key,
  3. Modify the API key's attributes and Save,
  4. The API key data have been updated.

The application and secret keys are not modified.

Reset an API key

It is possible to reset the application and secret keys for an API key. This allows to keep the API key configuration with a new set of authentication keys.

  1. Go to the “API configuration manager”,
  2. Click on the wished API key,
  3. Click on the “Reset” icon in the panel's title (top right),
  4. Confirm that you want to reset the API key,
  5. The API keys have been reset, and so new application and secret keys have been generated.

All applications using the resettled API key should be modified in order to use the new generated ones.

Delete an API key

  1. Go to the “API configuration manager”,
  2. Click on the “Delete” icon for the wished API key,
  3. Confirm that you want to delete the API key,
  4. The API key is deleted.

All applications using the deleted API key can no more communicate with the API.

Sign a request

When the BizDock instance is configured with the SIGNATURE mode, then all API requests should be signed. The computed signature is simply added in the request header.

This section explains how to manually sign a request. For sure, the different steps should be then code-included in the app which use the API.

1. Get the API key data

  1. Go to the “API configuration manager”,
  2. Click on the wished API key,
  3. The identity card of the API key is displayed.

Then keep the following data:

${secretKey}: The secret key
${applicationKey}: The application key



2. Construct the signature's parameters

${method}: The HTTP method of the call (GET, POST…)
${url}: The full URL of the call
${body}: The request body (only for POST and PUT methods)
${timestamp}: The current timestamp in milliseconds

To get the current timestamp in milliseconds, you can use this online tool:

Example 1 (GET)


Example 2 (POST)


3. Construct the cipher

if POST and PUT:




The “+” characters are part of the cipher.

Example 1 (GET)


Example 2 (POST)


4. Encrypt the cipher with the hash algorithm

The current hash algorithm is SHA-512:


To encrypt a cipher, you can use this online tool: The generated digest is given in hexadecimal.

Example 1 (GET)


Example 2 (POST)


5. Encode the digest in Base 64


To encode a digest in Base 64, you can use this online tool:
This should be done by 2 steps:

  1. Decode Hex
  2. Encode Base 64

Example 1 (GET)


Example 2 (POST)


6. Clean with URL-Safe the digest64

The followings characters should be replaced:

  • - instead of +
  • _ instead of /
  • = should be removed

Example 1 (GET)


Example 2 (POST)


7. Add the protocol version

The current protocol version is 1:


Example 1 (GET)


Example 2 (POST)


8. Add the headers to the request


Example 1 (GET)


Example 2 (POST)


Timestamp a request

The timestamp of a request is a security feature to prevent the execution of a same request at different times.

The API has a tolerance of 60 seconds, meaning a request is valid during this period under the condition of the timestamp generated by the client is timely aligned with the API clock.

To be sure the client clock is aligned with the API clock, a particular action “/api/system/time” could be called and returns the current timestamp of the API server. For sure the call doesn't need to include the timestamp.

Grant access computation

The grant access for an API action is depending of the given authentication headers.

  • All authentication headers are given
    • The API authentication mode could be SIGNATURE or APPLICATION_KEY_ONLY
    • The corresponding API key should authorize the action
  • The authentication headers “X-bizdock-timestamp” and “X-bizdock-application” are given
    • The API authentication mode should be APPLICATION_KEY_ONLY
    • The corresponding API key should authorize the action
  • No authentication header is given (usually the action is done by a User from the API Browser)
    • No restriction about API authentication mode
    • The User has the permission API_TESTER_PERMISSION
    • The API key is manually selected by the User, and should authorize the action and be testable

On top of that, it is considered that the authentication headers are correct.

API Browser

The API browser allows to test easily and quickly the different actions. It is also the full documentation to construct the requests and treat the responses.

The API browser is available only across BizDock and for an authorized (with the permission API_TESTER_PERMISSION) sign-in User.

The API browser interface is available from the “Integration” item inside the “Admin” menu. Then select the “API browser” item from the left menu.

It is possible to switch the using API keys thanks the “Tested application” dropdown menu.

API client

An API client should be soon available for JAVA and PHP languages.