curl --request GET \
--url https://api.getoneprofile.ai/integrations/{integration_id}/ \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.getoneprofile.ai/integrations/{integration_id}/"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.getoneprofile.ai/integrations/{integration_id}/', 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.getoneprofile.ai/integrations/{integration_id}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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.getoneprofile.ai/integrations/{integration_id}/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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.getoneprofile.ai/integrations/{integration_id}/")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/integrations/{integration_id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"config": {},
"created_at": "2023-11-07T05:31:56Z",
"created_by_actor_type": "user",
"credentials_set": {},
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"integration_type": "<string>",
"kind": "source",
"name": "<string>",
"org_id": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"connect_method": "credentials_form",
"connect_method_retires_on": "2023-12-25",
"created_by_display_name": "<string>",
"health_checked_at": "2023-11-07T05:31:56Z",
"health_error_code": "<string>",
"health_error_message": "<string>",
"health_status": "healthy",
"icon_url": "<string>",
"record_types": [
{
"can_get_record": true,
"can_list_records": true,
"display_name": "<string>",
"is_custom": true,
"label": "<string>",
"slug": "<string>",
"write_actions": [
"create"
],
"identity_fields": [
"<string>"
]
}
],
"record_types_reported_live": false
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Get an integration
Get an integration by its ID, with its config and which of its credentials are set.
curl --request GET \
--url https://api.getoneprofile.ai/integrations/{integration_id}/ \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.getoneprofile.ai/integrations/{integration_id}/"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.getoneprofile.ai/integrations/{integration_id}/', 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.getoneprofile.ai/integrations/{integration_id}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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.getoneprofile.ai/integrations/{integration_id}/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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.getoneprofile.ai/integrations/{integration_id}/")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/integrations/{integration_id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"config": {},
"created_at": "2023-11-07T05:31:56Z",
"created_by_actor_type": "user",
"credentials_set": {},
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"integration_type": "<string>",
"kind": "source",
"name": "<string>",
"org_id": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"connect_method": "credentials_form",
"connect_method_retires_on": "2023-12-25",
"created_by_display_name": "<string>",
"health_checked_at": "2023-11-07T05:31:56Z",
"health_error_code": "<string>",
"health_error_message": "<string>",
"health_status": "healthy",
"icon_url": "<string>",
"record_types": [
{
"can_get_record": true,
"can_list_records": true,
"display_name": "<string>",
"is_custom": true,
"label": "<string>",
"slug": "<string>",
"write_actions": [
"create"
],
"identity_fields": [
"<string>"
]
}
],
"record_types_reported_live": false
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Response
Successful Response
One integration with its config and which of its credentials are set.
The General API's read, untyped by design: typing it per integration type would publish every type's name in the General document, enrichment vendors among them. The Integration-Specific API's create and update answers carry the typed read.
The day this connection's connect method stops working, when the vendor is retiring it (Zendesk API tokens stop working on 2027-04-30). The connection keeps syncing until then; the settings page asks the customer to switch it to OAuth. Null when the method is not retiring.
Machine-readable error code from the latest health check (e.g. 'unauthorized', 'insufficient_permissions', 'rate_limited'). Drives the 'Action required: reauthorize' state and Reconnect CTA when it is 'unauthorized' or 'insufficient_permissions'. Null if never checked, pending or healthy.
True when record_types holds every record type the live connection reports (a PostHog project's group types), so a lookup's record type missing from it is gone from the tool. False when the tool's record types are not discovered live, or when the connection was not asked or did not answer.
Was this page helpful?