Connection

Delete Connection

DEL
Delete 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
status
enum
Allowed values: okerror
deleted
object
DEL
$curl -X DELETE 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 "status": "ok",
3 "deleted": {
4 "tp_id": "hubspot",
5 "tp_access_token": "string",
6 "tp_customer_id": "string",
7 "t_id": "string",
8 "owner_account_public_token": "string",
9 "tp_refresh_token": "string",
10 "tp_account_url": "string",
11 "app_client_id": "string",
12 "app_client_secret": "string",
13 "app": {
14 "id": "string",
15 "tp_id": "hubspot",
16 "owner_account_public_token": "string",
17 "is_revert_app": true,
18 "scope": [
19 "string"
20 ],
21 "app_client_id": "string",
22 "app_client_secret": "string",
23 "account": {
24 "id": "string",
25 "tenant_count": 0,
26 "private_token": "string",
27 "public_token": "string",
28 "domain": "string",
29 "skipWaitlist": true,
30 "users": [
31 {
32 "id": "string",
33 "domain": "string",
34 "email": "string",
35 "accountId": "string"
36 }
37 ],
38 "apps": []
39 },
40 "connections": [],
41 "app_config": {
42 "bot_token": "string",
43 "org_url": "string"
44 }
45 }
46 }
47}