An introduction to building with Leen
connection
must belong to an organization
that is owned by you. When you add a new connection to an organization
you’ll be given a connection-id
that you will use to pull data. Currently, all requests to Leen’s API require a connection-id
to be included in your authentication headers since all data is scoped to a given connection.
Create an Organization
POST
request to the /provisioning/organizations
endpoint. This will create a new organization and return an organization-id
that you will use to add connections.Example POST body
Example Response
Create a Connection
POST
request to the /provisioning/organizations/{organization_id}/connections
endpoint. This will create a new connection
and return a connection-id
that you will use to pull data.You will need to specify the vendor
and credentials
for the connection. The vendor
is the name of the
product that Leen is connecting to and the credentials object will be specific to the vendor. More information
can be found on the API Reference page.Example POST body
Example Response
Pull Data
GET
to any relevant data endpoints with your API key
and Connection-ID
in the headers. For example, to pull Vulnerability Management data you’d send this request.Example Request