Skip to main content

Making requests

After successfully obtaining an access token through the OAuth2 authentication process, you can use it to make authorized API requests to access protected resources. The access token should be included as a Bearer token in the Authorization header of your API requests.

Example: Retrieve Widget Data

In this example, we demonstrate how to retrieve the data of a specific widget using the access token. We will use the GET /widgets/:id endpoint, replacing :id with the ID of the desired widget.

Example Request:

curl -H "Authorization: Bearer ACCESS_TOKEN" ""

Replace ACCESS_TOKEN with the actual access token you received from the OAuth2 process and WIDGET_ID with the ID of the widget you want to retrieve.