Confirm whether you have access to the API by making a successful request.
Use the following command to make a request to the . This will return a list of pins in your account. curl --location --request GET 'https://api.pinterest.com/v5/pins' \
--header 'Authorization: Bearer YOUR_TOKEN' \
--header 'Content-Type: application/json'
It should return a JSON response with a list of pins. If you have no pins, it will return an empty array, like so:
{ "items": [], "bookmark": null }
Congratulations! You've made your first successful API call!
Keep exploring our docs and see what else is possible with the Pinterest API.