Generate OAuth access token

POST {{baseUrl}}/oauth/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 Authentication for more.

Parameter refreshon and its corresponding response type everlastingrefresh 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). Learn more.

Request Body

[{"name"=>"grant_type", "value"=>"authorization_code", "datatype"=>"string"}]

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"access_token":"\u003cstring\u003e","token_type":"bearer","expires_in":"\u003cinteger\u003e","scope":"\u003cstring\u003e","response_type":"authorization_code"}