SmartThings API: Listing location mode

I am using the below link to find all the possible API I can use for SmartThings.

I wanted to create a new API rule that is based on the value of location mode. I can get list of my location id and device id but I can’t find the API to list all my location modes.

Does anyone know what is the API to list the location mode?

Thanks in advance.

Have you tried this?{locationId}/modes

You also need the proper scopes on your token (modes)

And for the active one …{locationId}/modes/current

Thanks. Got the values using your URL.

1 Like

I had the same question. I do not find this specified in the API anywhere. Does anyone know where the modes and modes/current are documented?
The URL provided above works great, but I fear I am missing out on better API documentation than what I am using at

I’m not aware of any docs per se, but the Core SDK has to interact with the API and there can be some useful comments in the ‘endpoints’ bits, and the code itself can hint at missing docs.