You need to include your API KEY and the BEARER TOKEN in the request, for example using curl it would be:
curl \ 'https://appengine.googleapis.com/v1/apps/[YOUR_APP_ID]?key=[YOUR_API_KEY]' \ --header 'Authorization: Bearer [YOUR_ACCESS_TOKEN]' \ --header 'Accept: application/json' \ --compressed Also you can try the API explorer which is easier to use as you only need to specify your APP ID. On Wednesday, December 15, 2021 at 9:25:32 AM UTC+1 [email protected] wrote: > I am trying to call GCP App Engine REST API- > https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps/get > from > API explorer as well as postman . This gives http code 403 . I am able to > deploy service from my local using cloud sdk with same user account. Not > sure why only REST API is not working. Any body else faced this issue. > > Request - GET > https://appengine.googleapis.com/v1/apps/test?key=[YOUR_API_KEY] HTTP/1.1 > Authorization: Bearer [YOUR_ACCESS_TOKEN] Accept: application/json > Response- { "error": { "code": 403, "message": "The caller does not have > permission", "status": "PERMISSION_DENIED" } } > > roles added to my principle- App Engine Admin, App Engine Code Viewer, App > Engine Deployer, App Engine Service Admin, App Engine Viewer, Owner > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/61f528d4-a964-4247-b034-a4c7882c59abn%40googlegroups.com.
