cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Postman API GET URL

SOLVED
Highlighted
Here to help

Postman API GET URL

I am fairly new to the API world. I have manged to get the Meraki API collection into Postman but I am not able to get some of them to produce information. I am currently trying to run the API to get a list of group policies:

 

https://api.meraki.com/api/v0/networks/:networkId/groupPolicies

 

I am not sure what the network ID variable is. How should this information be entered into Postman?

1 ACCEPTED SOLUTION

Accepted Solutions
Here to help

Re: Postman API GET URL

Every network in you org has an unique ID. You can iterate all networks with corresponding IDs with https://api.meraki.com/api/v0/organizations/:organizationId/networks 

 

Before, you can iterate all orgs your api key has access to with https://dashboard.meraki.com/api/v0/organizations

 

 

View solution in original post

4 REPLIES 4
Here to help

Re: Postman API GET URL

Every network in you org has an unique ID. You can iterate all networks with corresponding IDs with https://api.meraki.com/api/v0/organizations/:organizationId/networks 

 

Before, you can iterate all orgs your api key has access to with https://dashboard.meraki.com/api/v0/organizations

 

 

View solution in original post

Here to help

Re: Postman API GET URL

Thank you for the reply, I was able to obtain the information I needed. Guess it's time to start stumbling through my API education.

Kind of a big deal

Re: Postman API GET URL

@theshmike is exactly right.

 

If I can offer general advice: Get some basic information first, then work backwards from the call you want to use to see what it needs.

 

These call names are based off the names at https://dashboard.meraki.com/api_docs

 

You will typically need to know your org ID, your network ID, device serial number, and/or client ID.

 

Org ID: For multiple orgs, assume you'll have to use "List the organizations that the user has privileges on" each time. If you have a single org, you could run it once and record your org ID someplace secure-ish. 

 

Network ID: Once you have the org ID, you can get your networkID(s) using "List the networks in an organization".

 

Now that you have those, look at the other variables that your target call needs.

 

Serial number? You can get that using "List devices in an organization" OR "List devices in a network". Or look at the dashboard.

 

Client ID? Use "List the clients that have used this network in the timespan" to get a list of client IDs, then find your target based off its mac address.

 

Always double-check how timespans work, by the way. It may have changed, but used to be some were seconds and some were done in Unix epoch time.

Here to help

Re: Postman API GET URL

Thank you for this information it is very helpful. I really appreciate the quick responses in this community. One of these days I might be able to offer some good advice. Have a great day everyone!

Welcome to the Meraki Community!
To start contributing, simply sign in with your Cisco account. If you don't yet have a Cisco account, you can sign up.