Refresh an access token
pinterest_refresh_access_tokenExchange a Pinterest refresh token for a new access token when API calls fail with 401 errors, restoring authenticated access.
Instructions
Trade a refresh token for a fresh access token. Use this when calls start failing with 401.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"refresh_token": "<refresh_token>"
},
"name": "pinterest_refresh_access_token"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | Optionally narrow the new token to a subset of the original scopes. | |
| app_id | No | Falls back to PINTEREST_APP_ID. | |
| app_secret | No | Falls back to PINTEREST_APP_SECRET. | |
| refresh_token | Yes | The refresh token from the original exchange. |