Oauth Consent
import requests
url = "https://app.ubik-agent.com/api/v1/oauth/consent"
payload = {
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"approved": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({request_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a', approved: true})
};
fetch('https://app.ubik-agent.com/api/v1/oauth/consent', 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/consent \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"approved": true
}
'{
"redirect_url": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Oauth Consent
POST
/
oauth
/
consent
Oauth Consent
import requests
url = "https://app.ubik-agent.com/api/v1/oauth/consent"
payload = {
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"approved": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({request_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a', approved: true})
};
fetch('https://app.ubik-agent.com/api/v1/oauth/consent', 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/consent \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"approved": true
}
'{
"redirect_url": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Was this page helpful?
⌘I

