Thank you. After this support, I can get access_token and refresh_token with RMS API Authorize API.
But I got 403 Forbidden response from /devices RMS API. How can I get success response from RMS API ?
Details are as follows.
--
I requested authorization with each read permission as follows.
scope="devices:read device_remote_access:read device_logs:read device_location:read device_configurations:read device_alerts:read device_actions:read"
I can get code and tokens. Then I requested /devices RMS API with access_token. There is no required parameter in devicesGet API document.
GET /api/devices HTTP/1.1
Host: rms.teltonika-networks.com
User-Agent: curl/7.64.1
Accept:application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJqdGkiOiJhOGIxYTBj...(omit)
Then I got 403 Forbidden response as follows.
HTTP/1.1 403 Forbidden
Server: nginx/1.19.1
Date: Tue, 05 Jan 2021 07:35:42 GMT
Content-Type: application/json
Transfer-Encoding: chunked
Connection: keep-alive
Cache-Control: no-cache, private
X-RateLimit-Limit: 100000
X-RateLimit-Remaining: 99992
X-RateLimit-Reset: 1612421552
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload
X-XSS-Protection: 1; mode=block
Content-Security-Policy: form-action 'self' *.rms.teltonika-networks.com
Content-Security-Policy: frame-ancestors 'self' *.rms.teltonika-networks.com
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: Accept,Authorization,Content-Type,Origin,X-Requested-With,X-XSRF-TOKEN
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS, HEAD
Access-Control-Max-Age: 86000
{"success":false,"errors":[{"code":"FORBIDDEN","message":"Forbidden."}]}