Skip to main content
POST
/
api
/
auth
/
mobile
/
token
Exchange code or refresh token for tokens
curl --request POST \
  --url https://app.paperlink.online/api/auth/mobile/token \
  --header 'Content-Type: application/json' \
  --data '
{
  "grant_type": "authorization_code",
  "code": "<string>",
  "code_verifier": "<string>",
  "redirect_uri": "<string>",
  "client_id": "<string>",
  "install_id": "<string>",
  "user_agent": "<string>"
}
'
{
  "access_token": "<string>",
  "refresh_token": "<string>",
  "token_type": "<string>",
  "expires_in": 123,
  "user_id": "<string>"
}

Body

application/json
grant_type
enum<string>
required
Available options:
authorization_code
code
string
required
code_verifier
string
required
redirect_uri
string<uri>
required
client_id
string
required
install_id
string
user_agent
string

Response

Tokens

access_token
string
refresh_token
string
token_type
string
expires_in
integer
user_id
string