OPEN API 2.2.1.1 redirect URL not specified documentation...

OPEN API 2.2.1.1 redirect URL not specified documentation...

OPEN API 2.2.1.1 redirect URL not specified documentation...
OPEN API 2.2.1.1 redirect URL not specified documentation...
2025-08-16 03:19:42 - last edited 2025-08-22 07:52:50
Model: OC300  
Hardware Version:
Firmware Version: 5.15.24.17

omada version - 5.15.24.17 

 

I am trying to follow the open-api 2.2.1 Login Authentication & Obtain Authorization Code flow.

 

When i make this request.. with my data..

curl "https://localhost:8043/openapi/authorize/login?client_id=38f2d1b616434374b3f3215246f39940&omadac_id=beed48c7a2b0ea97c9698408843119f3" -H 'content-type:application/json' -d '{"username":"admin","password":"tplink123"}' -X POST -i -k --insecure

 

i am getting this error.

An unexpected error occurred: Call to /openapi/authorize/login failed: API Error -44106: The Client Id Or Client Secret is Invalid.

 

Is the documentation incorrect? 

 

 

When i create an authorization code mode in the controller it does give me client id and a client secrete. but the docs don't have the secret as part of the curl command..

 

 

Using the WEB-API i am able to login and get results back.. but i want to only use the open-api flow for my lib. 

 

Thoughts.. Docs out of date?

 

Thanks

 

  0      
  0      
#1
Options
1 Accepted Solution
Re:OPEN API 2.2.1.1 redirect URL not specified documentation...-Solution
2025-08-20 02:57:40 - last edited 2025-08-22 07:52:50

Hi  @justacoder 

 

I believe you should choose Client Mode. Please have a try.

 

Recommended Solution
  0  
  0  
#7
Options
6 Reply
Re:OPEN API 2.2.1.1 redirect URL not specified documentation...
2025-08-20 02:05:31 - last edited 2025-08-20 02:55:14

Hi  @justacoder 

 

Thanks for posting here.

 

To locate the reason, please share the screenshots showing the detailed attributes of the API in the controller.

 

 

 

  0  
  0  
#2
Options
Re:OPEN API 2.2.1.1 redirect URL not specified documentation...
2025-08-20 02:19:38 - last edited 2025-08-20 02:32:47

  @Vincent-TP 

 

 

 

 

Here is the screen shot of my controller openapi settings..

 

This is a dev box not connected to the internet so.. dont care about the creds..

 

Thanks

  0  
  0  
#3
Options
Re:OPEN API 2.2.1.1 redirect URL not specified documentation...
2025-08-20 02:33:58

  @Vincent-TP 

 

 

 

More screenshots..

 

Thanks

 

 

  0  
  0  
#4
Options
Re:OPEN API 2.2.1.1 redirect URL not specified documentation...
2025-08-20 02:50:58
Sorry we can delete this post. i was passing omada_id param spelled incorrectly..
  0  
  0  
#5
Options
Re:OPEN API 2.2.1.1 redirect URL not specified documentation...
2025-08-20 02:51:03
Sorry we can delete this post. i was passing omada_id param spelled incorrectly..
  0  
  0  
#6
Options
Re:OPEN API 2.2.1.1 redirect URL not specified documentation...-Solution
2025-08-20 02:57:40 - last edited 2025-08-22 07:52:50

Hi  @justacoder 

 

I believe you should choose Client Mode. Please have a try.

 

Recommended Solution
  0  
  0  
#7
Options