Oauth Token
import requests
url = "https://app.ubik-agent.com/api/v1/oauth/token"
payload = {
"grant_type": "<string>",
"code": "<string>",
"redirect_uri": "<string>",
"client_id": "<string>",
"code_verifier": "<string>",
"refresh_token": "<string>"
}
headers = {"Content-Type": "application/x-www-form-urlencoded"}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({
grant_type: '<string>',
code: '<string>',
redirect_uri: '<string>',
client_id: '<string>',
code_verifier: '<string>',
refresh_token: '<string>'
})
};
fetch('https://app.ubik-agent.com/api/v1/oauth/token', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://app.ubik-agent.com/api/v1/oauth/token \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data 'grant_type=<string>' \
--data 'code=<string>' \
--data 'redirect_uri=<string>' \
--data 'client_id=<string>' \
--data 'code_verifier=<string>' \
--data 'refresh_token=<string>'{
"access_token": "<string>",
"expires_in": 123,
"scope": "<string>",
"token_type": "bearer",
"refresh_token": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Oauth Token
POST
/
oauth
/
token
Oauth Token
import requests
url = "https://app.ubik-agent.com/api/v1/oauth/token"
payload = {
"grant_type": "<string>",
"code": "<string>",
"redirect_uri": "<string>",
"client_id": "<string>",
"code_verifier": "<string>",
"refresh_token": "<string>"
}
headers = {"Content-Type": "application/x-www-form-urlencoded"}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({
grant_type: '<string>',
code: '<string>',
redirect_uri: '<string>',
client_id: '<string>',
code_verifier: '<string>',
refresh_token: '<string>'
})
};
fetch('https://app.ubik-agent.com/api/v1/oauth/token', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://app.ubik-agent.com/api/v1/oauth/token \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data 'grant_type=<string>' \
--data 'code=<string>' \
--data 'redirect_uri=<string>' \
--data 'client_id=<string>' \
--data 'code_verifier=<string>' \
--data 'refresh_token=<string>'{
"access_token": "<string>",
"expires_in": 123,
"scope": "<string>",
"token_type": "bearer",
"refresh_token": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Body
application/x-www-form-urlencoded
Was this page helpful?
⌘I

