Auth
Exchange code or refresh token for tokens
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>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
grant_type: 'authorization_code',
code: '<string>',
code_verifier: '<string>',
redirect_uri: '<string>',
client_id: '<string>',
install_id: '<string>',
user_agent: '<string>'
})
};
fetch('https://app.paperlink.online/api/auth/mobile/token', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.paperlink.online/api/auth/mobile/token"
payload = {
"grant_type": "authorization_code",
"code": "<string>",
"code_verifier": "<string>",
"redirect_uri": "<string>",
"client_id": "<string>",
"install_id": "<string>",
"user_agent": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"access_token": "<string>",
"refresh_token": "<string>",
"token_type": "<string>",
"expires_in": 123,
"user_id": "<string>"
}Body
application/json
⌘I
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>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
grant_type: 'authorization_code',
code: '<string>',
code_verifier: '<string>',
redirect_uri: '<string>',
client_id: '<string>',
install_id: '<string>',
user_agent: '<string>'
})
};
fetch('https://app.paperlink.online/api/auth/mobile/token', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.paperlink.online/api/auth/mobile/token"
payload = {
"grant_type": "authorization_code",
"code": "<string>",
"code_verifier": "<string>",
"redirect_uri": "<string>",
"client_id": "<string>",
"install_id": "<string>",
"user_agent": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"access_token": "<string>",
"refresh_token": "<string>",
"token_type": "<string>",
"expires_in": 123,
"user_id": "<string>"
}
