Authentication and Authorization
This page will show you how to create API keys and authenticate in order to use your data.
Create API keys
In order to interact with your data, you need to authenticate using API keys. Head over to the Access Control tab and click API Keys to create API Keys. Copy the API key and the secret and store them somewhere safe. You will need to provide them while authenticating.
As a developer, you want to be able to specify the permissions of specific actions of applications on resources so that you can have full control on access to your application’s data. For this goal policies are introduced. To be able to use the policies feature, you need to have at least one dataset and one API key in the project. In order to create/update policy, you will need to specify the description, select at least one resource (currently policies are available only on a dataset level), select at least one subject (which is the api key) and pick the actions that this policy allows. After saving, this policy will automatically be applied to your project .
Head over to the Access Control tab and click Policies to view list of already created policies. All policy related actions can be performed on this page.
Click the button "Create policy". The creation dialog will appear. Fill in all necessary data and hit "Save policy". A new policy is created and ready to use.
Click the "pencil" button/icon on the policy row of your choice. The dialog for policy update will appear. Change all necessary data and hit "Save policy". The policy is updated.
Click the "trash" button/icon on the policy row of your choice. The "Delete Confirmation" dialog will appear. Read the message carefully and choose the action that suits your needs.
You can install the SDK through NPM:
jexiaClient() function will return an instance of the
Client class. On Node.JS, you will need to provide a
fetch standard compliant function as a parameter. You will need to add a compatible dependency to your project. For development of the SDK we've used
Authenticate through REST API
You can also authenticate though the REST API:
Send the e-mail and password along with the request in the body:
The response will look like this:
Now send your token along in the Authorization Header with each request you make