cURL
curl --request GET \
--url https://api.sandbox.humanity.org/v2/oauth/authorize/contextimport requests
url = "https://api.sandbox.humanity.org/v2/oauth/authorize/context"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.sandbox.humanity.org/v2/oauth/authorize/context', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sandbox.humanity.org/v2/oauth/authorize/context",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sandbox.humanity.org/v2/oauth/authorize/context"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sandbox.humanity.org/v2/oauth/authorize/context")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.humanity.org/v2/oauth/authorize/context")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"authorization_id": "<string>",
"client_id": "<string>",
"user_id": "<string>",
"app_scoped_user_id": "<string>",
"status": "<unknown>",
"redirect_uri": "<string>",
"requested_scopes": [
"<string>"
],
"application": {
"client_id": "<string>",
"name": "<string>",
"organization_id": "<string>",
"status": "<unknown>",
"redirect_uris": [
"<string>"
],
"created_by_user_id": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"revoked_at": "<string>"
},
"scopes": [
{
"id": "<string>",
"display_name": "<string>",
"description": "<string>",
"category": "<string>",
"implied_scopes": [
"<string>"
],
"is_default": true
}
],
"metadata": {
"created_at": "<string>",
"updated_at": "<string>",
"approved_at": "<string>",
"revoked_at": "<string>",
"last_token_issued_at": "<string>"
},
"policy": {
"requires_palm_verification": true,
"preset_cache_ttl_seconds": 123
},
"state": "<string>",
"granted_scopes": [
"<string>"
],
"code": "<string>",
"code_expires_at": "<string>",
"nonce": "<string>"
}OAuth & Consent
OAuth · Authorization context
GET
/
oauth
/
authorize
/
context
cURL
curl --request GET \
--url https://api.sandbox.humanity.org/v2/oauth/authorize/contextimport requests
url = "https://api.sandbox.humanity.org/v2/oauth/authorize/context"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.sandbox.humanity.org/v2/oauth/authorize/context', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sandbox.humanity.org/v2/oauth/authorize/context",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sandbox.humanity.org/v2/oauth/authorize/context"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sandbox.humanity.org/v2/oauth/authorize/context")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.humanity.org/v2/oauth/authorize/context")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"authorization_id": "<string>",
"client_id": "<string>",
"user_id": "<string>",
"app_scoped_user_id": "<string>",
"status": "<unknown>",
"redirect_uri": "<string>",
"requested_scopes": [
"<string>"
],
"application": {
"client_id": "<string>",
"name": "<string>",
"organization_id": "<string>",
"status": "<unknown>",
"redirect_uris": [
"<string>"
],
"created_by_user_id": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"revoked_at": "<string>"
},
"scopes": [
{
"id": "<string>",
"display_name": "<string>",
"description": "<string>",
"category": "<string>",
"implied_scopes": [
"<string>"
],
"is_default": true
}
],
"metadata": {
"created_at": "<string>",
"updated_at": "<string>",
"approved_at": "<string>",
"revoked_at": "<string>",
"last_token_issued_at": "<string>"
},
"policy": {
"requires_palm_verification": true,
"preset_cache_ttl_seconds": 123
},
"state": "<string>",
"granted_scopes": [
"<string>"
],
"code": "<string>",
"code_expires_at": "<string>",
"nonce": "<string>"
}Hydrate consent surfaces with rich metadata (app name, avatar, requested presets, policy requirements) before showing users an approval prompt. Call this with the
authorization_id returned from /oauth/authorize to render a branded UX or to pre-warm a hosted consent screen.
Pair with GET /oauth/authorize/result to poll for the final decision when embedding the consent UI.Query Parameters
Response
200 - application/json
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I