Getting Started

MIDAS APIs provide secure access to Midland States Bank services through a consistent REST API interface.

This guide walks you through obtaining credentials, authenticating, and making your first API request.

Prerequisites

Before you begin, make sure you have all of the following:

  • Sandbox access approved

  • Valid Client ID and Client Secret

The Midland Custom Dev team will assist with all of these items, please reach out with any questions or issues. (CustomDev@midlandsb.com)

Authentication

The Midland API uses OAuth 2.0 for all API requests.

Request:

curl -X POST https://uat.midas.midlandsb.com/oauth/token \ 
-d client_id=$YOUR_CLIENT_ID \
-d client_secret=$YOUR_CLIENT_SECRET

Response:

{
"access_token": "...",
"expires_in": 3600
}

This access token will be used in all subsequent requests.

Making your First API request

After you have an Oauth Token you simply just to include the access token in the Authorization header of requests to MIDAS APIs.

For example:

curl --request GET \
--url "https://uat.api.midas.midlandsb.com/fintech/heartbeat" \
--header "Authorization: Bearer $ACCESS_TOKEN"

Different APIs may have different required permissions/scopes. If you have insufficient permisions you'll get a 403 Forbidden error response. Permissions are managed by the Midland Custom Dev team so please reach out to CustomDev@midlandsb.com if your user requires additional permissions.