Connection

Get Connection

GET
Get details of a connection for a specific tenant.

Headers

x-revert-api-tokenstringRequired
Your official API key for accessing revert apis.
x-api-versionstringOptional
Optional Revert API version you're using. If missing we default to the latest version of the API.
x-revert-t-idstringRequired
The unique customer id used when the customer linked their account.

Response

This endpoint returns an object
owner_account_public_token
string
t_id
string
tp_access_token
string
tp_customer_id
string
tp_id
enum
app
objectOptional
app_client_id
stringOptional
app_client_secret
stringOptional
error
stringOptional
tp_account_url
stringOptional
tp_refresh_token
stringOptional
GET
$curl https://api.revert.dev/connection \
> -H "x-revert-api-token: string" \
> -H "x-api-version: string" \
> -H "x-revert-t-id: string"
Response
1{
2 "owner_account_public_token": "string",
3 "t_id": "string",
4 "tp_access_token": "string",
5 "tp_customer_id": "string",
6 "tp_id": "hubspot",
7 "app": {
8 "id": "string",
9 "tp_id": "hubspot",
10 "owner_account_public_token": "string",
11 "is_revert_app": true,
12 "scope": [
13 "string"
14 ],
15 "app_client_id": "string",
16 "app_client_secret": "string",
17 "account": {
18 "id": "string",
19 "tenant_count": 0,
20 "private_token": "string",
21 "public_token": "string",
22 "domain": "string",
23 "skipWaitlist": true,
24 "users": [
25 {
26 "id": "string",
27 "domain": "string",
28 "email": "string",
29 "accountId": "string"
30 }
31 ],
32 "apps": []
33 },
34 "connections": [
35 {
36 "tp_id": "hubspot",
37 "tp_access_token": "string",
38 "tp_customer_id": "string",
39 "t_id": "string",
40 "owner_account_public_token": "string",
41 "tp_refresh_token": "string",
42 "tp_account_url": "string",
43 "app_client_id": "string",
44 "app_client_secret": "string"
45 }
46 ],
47 "app_config": {
48 "bot_token": "string",
49 "org_url": "string"
50 }
51 },
52 "app_client_id": "string",
53 "app_client_secret": "string",
54 "error": "string",
55 "tp_account_url": "string",
56 "tp_refresh_token": "string"
57}