Portal
Last updated
Last updated
Currently, our 'portal' is just an API, but a UI to show your customers' queries, time to response, most popular routes, and more is coming. Checkout nlapi.io to see the latest.
Note: In order to interact with the portal (aside from logging in and signing up) you will need to be properly authenticated. For more information on authentication, please refer to our .
For now the portal is used strictly to create new applications (tenants) and api-keys. Once you have your api-key, you can start using the NLAPI!
To create a new developer account, use the /portal/signup
post route.
To login with an account that already exists use the /portal/login
post route (Payload and response is the same as the signup route)
Example Payload:
Example Response:
Make sure to save the access token as you'll use it for authentication throughout the use of the portal.
Now that you have a developer account, you need to create an application so you can save your schema (Or in the case you are using a Devii account you need to tell us what tenants you are using)
To create an application, make a post request to: /portal/applications
Example Headers:
Example Payload for OpenAPI Users:
Example Payload for Devii Users:
Example Success (200) Response:
Creating an api key will allow you to send requests to the /nlapi
endpoint. You will add this key to the nlapi-key
header in all your requests. Eventually we will add usage tracking so you can track what api key is sending the most requests.
To create a new api key, send a post request to /portal/api-keys
where application_id
is the id of the application for which you would like to create an api key. You will need to pass your access token via the Authorization Header. { 'Authorization': 'Bearer [your-access-token]'}
Payload:
Example 200 Response:
Please note: The access token is for use with the portal and is NOT the same as your nlapi-key, which you'll use to authenticate yourself with the .
For more information on authentication, please refer to our .
It's time to implement! Visit our to get started.
If you've implemented, Check out our Training Documentation to get the best performance.
Addtional documentation for the portal is available at .