# Particle API (List Products API Call)

**URL:** <https://community.particle.io/t/particle-api-list-products-api-call/54700>\
**Category:** Cloud\
**Created:** [February 13, 2020, 7:46pm UTC](https://community.particle.io/t/particle-api-list-products-api-call/54700 "2020-02-13T19:46:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeffrey](https://avatars.discourse-cdn.com/v4/letter/j/d6d6ee/32.png) [@Jeffrey](https://community.particle.io/u/Jeffrey)\
**Post date:** [February 13, 2020, 7:46pm UTC](https://community.particle.io/t/particle-api-list-products-api-call/54700/1 "2020-02-13T19:46:26Z")

</div>

Hi,

I am trying to send a curl command to Particle API in order to obtain a list of products for my given account. I am able to send the request, but do not obtain any products (see below).

URL:

```auto
https://api.particle.io/v1/products?access_token=XXXX...

```

Response (PHP):

```auto
Array ( [products] => Array ( ) )

```

This is because all of our products moved to our organization. How do I grab all the products under a given organization. I read through the documentation at [https://docs.particle.io/reference/device-cloud/api/#list-products](https://docs.particle.io/reference/device-cloud/api/#list-products) and found no organization to be apart of the GET request. I also looked under generating an access token to determine if I need a specific access token for the organization, but am not seeing any mention of it. Is there any documentation on this? I saw old post (couple years) of organizations being apart of the API GET request, but found that this is also depreciated? Is this the case?

---

<div class="post-metadata">

**Author:** ![Jeffrey](https://avatars.discourse-cdn.com/v4/letter/j/d6d6ee/32.png) [@Jeffrey](https://community.particle.io/u/Jeffrey)\
**Post date:** [February 20, 2020, 3:34pm UTC](https://community.particle.io/t/particle-api-list-products-api-call/54700/2 "2020-02-20T15:34:03Z")

</div>

Update,

The post I am referring to stating that the organizations slugs are no longer in use is found here:

> [@Error: "Organization not found for user's role" when using "particle" authentication](https://community.particle.io/t/error-organization-not-found-for-users-role-when-using-particle-authentication/19939/24):
>
> Hi Sorry I missed the original post. We no longer use “org slugs” but product IDs which is just a short number - the SDKs have been adapter to accept this number instead of the org slug string - you can find this number next to the little key icon in the product page in the [console](https://console.particle.io).

I am currently working around this issue by listing all devices associated to my account by using:  
GET /v1/devices

then running through each device and creating a set of products, thus giving me a unique list of products for all my devices (which is going to be 500+ by the end of the month). I find that this is very inefficient and wondering if there is a more preferred way of obtaining products under an organization that is not depreciated.

Side Question on Particle API:  
Is there any way to set a product data limit (setting all SIMs in a given product to the same data limit without going through each individual device, similar to set data limit on the sim card page under a given product, see below)

 ![image](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/1/9/19d266337b88bfc7b11230f5613dd5238e705a49.png)

---

<div class="post-metadata">

**Author:** ![Jeffrey](https://avatars.discourse-cdn.com/v4/letter/j/d6d6ee/32.png) [@Jeffrey](https://community.particle.io/u/Jeffrey)\
**Post date:** [March 24, 2020, 2:30pm UTC](https://community.particle.io/t/particle-api-list-products-api-call/54700/3 "2020-03-24T14:30:15Z")

</div>

After opening a ticket with Particle, I uncovered the following information from Marek and thought to share since its been an open problem on the forums as far as I can tell with no solutions:

Using `GET /v1/user/products` will just reveal user-space Products. In order to see org products, you have to use `GET /v1/orgs/:slug/products` - of course, you must be an Org member. This org slug is not depreciated and a request has been made to update the Cloud API Docs in the upcoming weeks 🙂

Answer to side question  
I think the best workflow to instantiate Product Data Limit would be to script a:  
a) request GET /v1/products/:productID/sims that parses `"_id"` in the response  
b) batch PUT /v1/products/:productID/sims/:\_id the `"_id"` from above with the `mb_limit` argument of your choice ([link](https://docs.particle.io/reference/device-cloud/api/#update-sim-data-limit)).

There might be a future request to create a new feature to bulk update SIM data limit, but its not guaranteed.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/6/4/64635adccc35238caa19e9b553ec3e98b163d026.png) [@system](https://community.particle.io/u/system)\
**Post date:** [September 23, 2020, 2:30am UTC](https://community.particle.io/t/particle-api-list-products-api-call/54700/4 "2020-09-23T02:30:19Z")

</div>

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
