Generate a API Token
Once you have access to the OneFirewall Platform, you have to navigate under the profile page, where you can click and generate an API JWT Token that you have to store and use it for the requests to the set of APIs as presented in this documentation. On every request to the APIs you must use your own key within theauthorization header. An example of a simple API againt /api/v1/version can be found below (even if this API does not require authorization)
HTTP Request
Python Request
simple-http-request.py
Organization Selection
For certain APIs, especially those related to scanning and resource management, you must specify the organization context. You can do this in two ways:- Header: Include the
X-Org-Idheader with your organization’s ID. - Query Parameter: Include
org_id=YOUR_ORG_IDin the URL.

