See api-docs Menu

Get Apps

Use this API to return a list of all Apps in a OneLogin account.

This call returns up to 50 apps per page.

For details about using the pagination element to easily “page” through apps, see Pagination.

Resource URL

https://api.<us_or_eu>.onelogin.com/api/1/apps

Header Parameters

Authorization

required

string

Set to bearer:<access_token>.

Set <access_token> to the access token you generated using the Generate Token API.

The access token must have been generated using an API credential pair created using the scope required to call this API. This API can be called using any one of the following scopes: Read All, or Manage All.

Sample Responses

{
    "status": {
        "error": false,
        "code": 200,
        "type": "success",
        "message": "Success"
    },
    "pagination": {
        "before_cursor": null,
        "after_cursor": "aWQ6Ojo4NjU3ODMtLSMjaWQ6Ojo4NjU3ODM",
        "previous_link": null,
        "next_link": "https://api.us.onelogin.com/api/1/apps?after_cursor=aWQ6Ojo4NjU3ODMtLSMjaWQ6Ojo4NjU3ODM"
    },
    "data": [
        {
            "id": 32491897,
            "connector_id": 176,
            "name": "Dropbox",
            "extension": true,
            "icon": "https://s3.amazonaws.com/onelogin-assets/images/icons/dropbox.png",
            "visible": true,
            "provisioning": true
        },
        {
            "id": 12380689,
            "connector_id": 7164,
            "name": "Office 365",
            "extension": true,
            "icon": "https://s3.amazonaws.com/onelogin-assets/images/icons/office_365.png",
            "visible": true,
            "provisioning": false
        },
        {
            "id": 21307882,
            "connector_id": 30319,
            "name": "Amazon Web Services (AWS)",
            "extension": false,
            "icon": "https://s3.amazonaws.com/onelogin-assets/images/icons/amazonwebservices2.png",
            "visible": true,
            "provisioning": false
        }
        ...
    ]
}

Typically, this error means that your Authorization header value is missing or incorrectly formatted. The Authorization header value should use this format: bearer:<access_token>.

{
   "status":{
      "error":true,
      "code":400,
      "type":"bad request",
      "message":"Authorization Information is incorrect"
   }
}

Typically, this error means that your access token value is invalid.

{
   "status":{
      "error":true,
      "code":401,
      "type":"Unauthorized",
      "message":"Authentication Failure"
   }
}

Or you’re not using a Read All or Manage All level API credential

{
    "status": {
        "error": true,
        "code": 401,
        "type": "Unauthorized",
        "message": "Insufficient Permission"
    }
}

Response Elements

For more information about the pagination element, see Query Parameters.

id Apps unique ID in OneLogin.
connector_id ID of the apps underlying connector.
name App name.
extension True indicates the authentication type for the app is forms based.
icon A link to the apps icon url.
visible Indicates if the app is visible in the OneLogin portal.
provisioning Indicates if the App has provisioning enabled or not.

Postman Collection

Replace sample variables indicated by {{ }} with your actual values.

Download for the Apps API

Sample Code

cURL

Replace sample values indicated by < > with your actual values.

Get Users

curl 'https://api.<us_or_eu>>.onelogin.com/api/1/apps' \
-X GET \
-H "Authorization: bearer <access_token>"

Have a Question?

Have a how-to question? Seeing a weird error? Ask us about it on StackOverflow.

Found a bug? Submit a support ticket.

Have a product idea or request? Share it with us in our Ideas Portal.