CirrusMD API Documentation

Repository for GiHub Pages hosted Developer Documentation

Authentication

CirrusMD uses access tokens to control authorization to the API. You can request a CirrusMD CLIENT_ID and CLIENT_SECRET from CirrusMD directly.

NOTE

Replace <base_url> from the examples below with one of the following:

Environment Base URL
Production https://api.cirrusmd.com
Sandbox https://api-sandbox.cirrusmd.com

Request URL

POST <base_url>/oauth/token

Query Parameters

Parameter Description
client_id provided client ID
client_secret provided client secret
grant_type “client_credentials”
scope “customer”

Example Request

curl -X POST "<base_url>/oauth/token" \
  -F "client_id=CLIENT_ID" \
  -F "client_secret=CLIENT_SECRET" \
  -F "grant_type=client_credentials" \
  -F "scope=customer"

Example Response

  {
    "access_token": {access_token},
    "token_type": "bearer",
    "expires_in": 7200,
    "scope": "customer",
    "created_at": 1471643200
  }