Step 3: Exchange authorization code with access token

Prerequisites

The authorization code provided in the redirect URI can only be exchanged once and expires 5 minutes after issuance. You must exchange an authorization code with an access token or an access token/refresh token pair. You can then use the access_token to call API methods on behalf of the user.

Body Params
string
required

The client ID

string
required

The client secret

string
required

The authorization code

string
required
Defaults to authorization_code

Value is always "authorization_code"

string
required
Defaults to https://app.marq.com/oauth2/clients/<your client id>/redirect

The redirect URI used to get the authorization code. As a service, Marq provides a redirect uri for you to use that allows the user to copy the authorization code to the clipboard. To use it, register the redirect URI https://app.Lucidpress.com/oauth2/clients/<your client id>/redirect. When you use this redirect URI and a user grants access to your app, Lucidpress will redirect the user to a page on our site where they can view and copy the authorization code.

Responses

Language
Credentials
OAuth2
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json