Browse our guides and interact with our API reference for more information about MEDSAPI Dynamic Health. Try MEDSAPI Dynamic Health and learn about core concepts.





Get Categories Code Samples

Use the code samples below as examples to create an application in your desired language.  The following code samples use the /content/categories endpoint which allows you to get the content categories.  Get started and begin to understand the endpoint by following the examples below in the language of your choice. 


# Categories:

curl -X GET "|Nursing Skills"
  -H "accept: application/json"
  -H "authorization: Bearer TOKEN"
  -H "Content-Type: application/json"
// Categories:

// Construct the client
OkHttpClient client = new OkHttpClient();

// Create the URL
HttpUrl url = new HttpUrl.Builder()
    .addQueryParameter("shallow", "true")
    .addQueryParameter("categoryPath", "Skills|Nursing Skills")

// Build the request
Request request = new Request.Builder()
    .addHeader("Accept", "application/json")
    .addHeader("Authorization", "Bearer TOKEN")
    .addHeader("Content-Type", "application/json")

// Send the request
Response response = client.newCall(request).execute();
// Categories: 

const host = "";
const path = "/medsapi-dynamic-health/v1/content/categories";
const queryParams = {
    shallow: true,
    categoryPath: "Skills|Nursing Skills"

// Create the Request
const url = host + path;

const settings = {
    async: true,
    crossDomain: true,
    url: url,
    method: "GET",
    headers: {
        Accept: "application/json",
        Authorization: "Bearer TOKEN",
        Content-Type: "application/json"
    data: queryParams

// Send the Request
$.ajax(settings).done(function (response) {
# Categories:

# Form the URL 
urlstr = File.join('https://', '', 'medsapi-dynamic-health/v1/content/categories')
uri = URI.parse(urlstr)
params = { :shallow => "true", :categoryPath => "Skills|Nursing Skills" }

# Add params to URI
uri.query = URI.encode_www_form( params )

# Create the HTTP object
http =, uri.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

# Create the request
request =
request["Accept"] = "application/json"
request["Authorization"] = "Bearer TOKEN"
request["Content-Type"] = "application/json"

# Send the request
response = http.request(request)
# Categories:

# Form the URL
url = ''.join(['/medsapi-dynamic-health/v1/content','/categories'])
queryParams = {
   'shallow': "true",
   'categoryPath': "Skills|Nursing Skills"

# Create Connection Instance
conn = http.client.HTTPSConnection("")

# Create the Request Headers
headers = {
    'Authorization': "Bearer TOKEN",
    'Accept': "application/json",
    'content-type': "application/json"  

# Send Request  
conn.request("GET", url, queryParams, headers)