Welcome to the iOps360 API. Our API allows 3rd party vendors to request information from our servers to be used with outside software. The iOps360 API exposes very useful endpoints from within the platform. You can do things like query the Schedule, manage Roster Data, and much more.

Find out how to send requests to our API, use our API playground here. The playground will provide examples on how to utilize the API with cURL examples, but any language that supports RESTful calls can be used.

Authentication

Our API uses OAuth 2.0 for authentication, specifically the bearer token grant type. Using the Client Id and Client Secret, you will be provided an access token. The access token is used as “Authorization: Bearer (Token)” and the token in the headers for all subsequent requests. In the API Play Ground, click the “token” endpoint, and enter your Client Id and Client Secret. Click Execute to obtain an access token. Click “Authorize” at the top of the playground and paste the access token to authorize all subsequent requests automatically.

Getting your API credentials

To generate an API Client Id and Client Secret pairs, go to the Resources -> Integrations page and click “iOps360 Api“. Click “Create API Access Codes”. Only users with Sysop permissions can access the Integrations page.

If you do not need the API credentials or the credentials have been compromised, be sure to delete the Client Id and Client Secret to ensure your data remains safe.

curl -X POST “https://sch.iops360.com/api/token” -H “accept: application/json” -H “Content-Type: application/x-www-form-urlencoded” -d “grant_type=password&username=ClientId&password=ClientSecret”

{
  "access_token": "1UHA_naIBMZPv-nau_6kIgcPbemAn9yI2YVOqLqGW53rCP_bEvz7ibCveBceQP4BR2D1LI8EPLcRP57lbmJw98GuSXMr_lsM5qKcbLKqlKemJZyXgN2MI2EdQcGga3LUkaQwiq24KzP8EdFOAjfkdfjsakfjsdkN8NXyyTE590QnJ1CS_rH4cio-dNBV8bpdd9GWUAA8ca2yN4HxBd6-FGqTyPCryoo20QOKA1Cb1HYfCydsTCSCOq8hE",
  "token_type": "bearer",
  "expires_in": 86399,
  "userName": "1",
  ".issued": "Mon, 24 May 2021 12:22:04 GMT",
  ".expires": "Tue, 25 May 2021 12:22:04 GMT"
}

Subsequent Requests / Commands

In the API Play Ground, copy the access token after using the client Id and client secret. Click “Authorize” at the top of the API Play Ground and paste the access token into the “Bearer” field. We will use the “schedule” endpoint below but any command will work.

curl 
-X GET "https://sch.iops360.com/api/schedule" 
-H  "accept: application/json" 
-H  "Authorization: Bearer 1UHA_naIBMZPv-nau_6kIgcPbemAn9yI2YVOqLqGW53rCP_bEvz7ibCveBceQP4BR2D1LI8EPLcRP57lbmJw98GuSXMr_lsM5qKcbLKqlKemJZyXgN2MI2EdQcGga3LUkaQwiq24KzP8EdFOAjfkdfjsakfjsdkN8NXyyTE590QnJ1CS_rH4cio-dNBV8bpdd9GWUAA8ca2yN4HxBd6-FGqTyPCryoo20QOKA1Cb1HYfCydsTCSCOq8hE"
[
  {
    "id": 3152159,
    "date": "2021-05-24",
    "start": "2021-05-24 08:00:00",
    "end": "2021-05-25 08:00:00",
    "length": 24,
    "unit": "QRV",
    "userName": "Supervisor, B Shift",
    "userId": 547,
    "description": ""
  }
]

We are adding new endpoints frequently so check back for updates. If you agency needs an endpoint now, contact iOps360 to have it moved up in our priority list.

iOps360 API
Tagged on: