When a user wants to give access to his or her resources to another user, the app can grant the endpoint. But this time the app has to pass the email of the granted user. The granted user will also receive an email to confirm this action.

# In the next example, we let the user’s friend read the temperature of the thing with ID "thingId1". She won’t be able to grant this resource to anybody else, as we aren’t granting her the grant permission. Also it is not possible to grant permissions that the session token doesn’t have.
curl -i -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -H "Authorization: SESSION_TOKEN" \
  -d '{"email": "[email protected]", "permissions": {"temperature":{"thingId1":{"get": true}}}}' \
  -X PUT "https://api.thethings.io/v2/me/grant" -k
Click Try It! to start a request and see the response here!