Interacting With the Lens AppIQ API

Leveraging the Lens AppIQ API can be a powerful and programmatic way to have access to Lens AppIQ.

Getting Started with the Lens AppIQ API

The first step you will need to grab is your Lens AppIQ API Endpoint https://api.lenscloud.io. Running the Lens AppIQ CLI Command shipa target list or in the Lens AppIQ UI under Settings -> General -> API endpoint.

lapps target list

* api (https://api.lenscloud.io:443)

Now you can interact with the Lens AppIQ API.

API Authentication

Your Lens AppIQ Token e.g API Key can be used to authenticate with the Lens AppIQ API. You can run shipa token show from the CLI to get this token.

lapps token show
API key: Some_API_Key

API Reference

The Lens AppIQ API has Swagger Documentation.
Swagger Docs

Sample Queries Using cURL

There are many ways to interact with the Lens AppIQ API. You can use tools like Postman, etc. Here are some raw cURL commands.

The cURL Query will be as follows:

curl --request GET \
  --insecure --url 'https://api.lenscloud.io:443/apps?locked=false' \
  --header 'Authorization: Bearer YourToken'

What’s Next