oauth

Generate OAuth access token

Generate an OAuth access token by using an authorization code or a refresh token.

IMPORTANT: You need to start the OAuth flow via www.pinterest.com/oauth before calling this endpoint (or have an existing refresh token).

See <a href='/docs/getting-started/authentication-and-scopes/'>Authentication</a> for more.

<strong>Parameter <i>refresh_on</i> and its corresponding response type <i>everlasting_refresh</i> are now available to all apps! Later this year, continuous refresh will become the default behavior (ie you will no longer need to send this parameter). <a href='/docs/getting-started/using-beta-and-restricted-features/'>Learn more</a>.</strong>

<strong>Use <a href='/tools/debug-token/'>Token Debugger</a> to validate and inspect your access token.</strong>

post/oauth/token

Response

response

response_type'authorization_code' | 'refresh_token' | 'client_credentials'
access_tokenstring required
token_typestring required
expires_ininteger required
scopestring required

Changes