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>",
"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>",
"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
boolean
required
Whether the token is currently active and usable. Returns
false for invalid or expired tokens.Active Token
boolean
required
Whether the token is currently active and usable. Returns
true for valid tokens.string
required
A space-separated list of scopes associated with this token.
string
required
The app ID of the OAuth app that requested this token.
string
default:"Bearer"
required
The type of token. Always
"Bearer" for tokens acquired via the OAuth 2.0 flow.number | null
required
The time at which this token will expire, if set, as a number of seconds since January 1 1970 UTC.
number
required
The time at which this token was issued, as a number of seconds since January 1 1970 UTC.
string
required
Since Bearer tokens grant workspace-level permissions, this property contains the workspace ID.
string
required
The intended audience for this token. For Bearer tokens this is the same as the
client_id.string
default:"attio.com"
required
The issuer of the token. Always
"attio.com".string
required
The ID of the workspace member who authorized this token initially.
string
required
The ID of the workspace the token is scoped to.
string
required
The name of the workspace the token is scoped to.
string
required
The slug of the workspace the token is scoped to.
string | null
required
The logo URL of the workspace the token is scoped to.
Was this page helpful?
⌘I