Introspect
curl --request POST \
--url https://app.attio.com/oauth/introspectimport requests
url = "https://app.attio.com/oauth/introspect"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://app.attio.com/oauth/introspect', 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://app.attio.com/oauth/introspect",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$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://app.attio.com/oauth/introspect"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.attio.com/oauth/introspect")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.attio.com/oauth/introspect")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body{
"active": true,
"scope": "<string>",
"client_id": "<string>",
"token_type": "<string>",
"exp": {},
"iat": 123,
"sub": "<string>",
"aud": "<string>",
"iss": "<string>",
"token_level": "<string>",
"authorized_by_workspace_member_id": "<string>",
"workspace_id": "<string>",
"workspace_name": "<string>",
"workspace_slug": "<string>",
"workspace_logo_url": {}
}OAuth 2.0
Introspect
POST
/
oauth
/
introspect
Introspect
curl --request POST \
--url https://app.attio.com/oauth/introspectimport requests
url = "https://app.attio.com/oauth/introspect"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://app.attio.com/oauth/introspect', 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://app.attio.com/oauth/introspect",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$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://app.attio.com/oauth/introspect"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.attio.com/oauth/introspect")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.attio.com/oauth/introspect")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body{
"active": true,
"scope": "<string>",
"client_id": "<string>",
"token_type": "<string>",
"exp": {},
"iat": 123,
"sub": "<string>",
"aud": "<string>",
"iss": "<string>",
"token_level": "<string>",
"authorized_by_workspace_member_id": "<string>",
"workspace_id": "<string>",
"workspace_name": "<string>",
"workspace_slug": "<string>",
"workspace_logo_url": {}
}Check whether an access token is valid, and if so, what scopes and identity it grants. A bearer token should be passed in the
Authorization header of the request.
Response
Inactive Token
Whether the token is currently active and usable. Returns
false for invalid or expired tokens.Active Token
The type of token. Always
"Bearer" for tokens acquired via the OAuth 2.0 flow.The time at which this token will expire, if set, as a number of seconds since January 1 1970 UTC.
The time at which this token was issued, as a number of seconds since January 1 1970 UTC.
The subject of the token. For a workspace-level token, this is the workspace ID. For a user-level
token, this is an opaque value that identifies the workspace member. Do not parse this value. To
get the workspace ID, use
workspace_id. To get the workspace member ID, use
authorized_by_workspace_member_id.The intended audience for this token. For Bearer tokens this is the same as the
client_id.The level of the token. This is
"workspace" or
"user".Was this page helpful?