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.

Request Body

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

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"access_token":"ipsum officia","token_type":"bearer","expires_in":-58345843,"scope":"sed qui","response_type":"authorization_code"}