Skip to main content
Question

Jamf API response

  • September 3, 2025
  • 5 replies
  • 85 views

snehapatil
Forum|alt.badge.img+1

I wanted clarification on what HTTP response status code Jamf Pro will return if I call the /api/v2/mobile-devices endpoint when I only have a Jamf Computer license, and similarly, what status code I will get if I call the /api/v1/computers-inventory endpoint when I only have a Mobile Devices license.

5 replies

AJPinto
Forum|alt.badge.img+26
  • Legendary Contributor
  • September 3, 2025

Sounds like the perfect situation for you to test.

 

I would not expect API to care what licenses you have or don't have as the licenses are for the managed devices and not the API access. The API will return results if you have results to return from the endpoint regardless of what licenses you have.


snehapatil
Forum|alt.badge.img+1
  • Author
  • New Contributor
  • September 3, 2025

I have account with both type license.Are you sure it would not return any error code like unauthorized or not found ?


AJPinto
Forum|alt.badge.img+26
  • Legendary Contributor
  • September 3, 2025

The unauthorized would be returned if the API account you use does not have access to the API endpoint you are trying to access. I’m not sure if there is a situation where Jamf will ever return “not found”, but so long as you have devices to be found Jamf will return results. 

 

What problem are you trying to solve, or is this just curiosity?


snehapatil
Forum|alt.badge.img+1
  • Author
  • New Contributor
  • September 3, 2025

We are working on integrating Jamf with our product and wanted to confirm if any Jamf APIs have license-based restrictions. Specifically, in cases where customers may have purchased only one type of license (e.g., Computers or Mobile Devices), are there certain APIs that would be inaccessible?


snehapatil
Forum|alt.badge.img+1
  • Author
  • New Contributor
  • September 3, 2025

The unauthorized would be returned if the API account you use does not have access to the API endpoint you are trying to access. I’m not sure if there is a situation where Jamf will ever return “not found”, but so long as you have devices to be found Jamf will return results. 

 

What problem are you trying to solve, or is this just curiosity?

Are you sure we get empty response with 200 status code?