Authorize
curl --request GET \
--url https://app.attio.com/authorizeimport requests
url = "https://app.attio.com/authorize"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://app.attio.com/authorize', 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/authorize",
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://app.attio.com/authorize"
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://app.attio.com/authorize")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.attio.com/authorize")
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{
"302": {}
}OAuth 2.0
Authorize
GET
/
authorize
Authorize
curl --request GET \
--url https://app.attio.com/authorizeimport requests
url = "https://app.attio.com/authorize"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://app.attio.com/authorize', 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/authorize",
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://app.attio.com/authorize"
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://app.attio.com/authorize")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.attio.com/authorize")
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{
"302": {}
}Query Parameters
string
required
Your app’s client ID. You can find this in your app’s settings pages at
build.attio.com.
string
required
The response type. This should always be
"code".string
required
The URL to redirect to after the user authorizes access to your app. This URL must exactly match
one of the registered redirect URLs in your app’s settings pages at
build.attio.com.
string
A random string to prevent CSRF attacks. Set this when starting the OAuth flow and verify it
matches when the user is redirected back to your app.
Response
Redirect
After the user approves the connection, they are redirected to the
redirect_uri with a code
query parameter. If provided, the original state is also included.Was this page helpful?
⌘I