Connection

Import Connections

POST
Import multiple connections for a specific environment. Use this to bulk import connections as a one-time exercise.

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.

Request

This endpoint expects an object.
connections
list of objectsRequired

Response

This endpoint returns an object
status
enum
Allowed values: okerror
POST
1curl -X POST https://api.revert.dev/connection/import \
2 -H "x-revert-api-token: string" \
3 -H "x-api-version: string" \
4 -H "x-revert-t-id: string" \
5 -H "Content-Type: application/json" \
6 -d '{
7 "connections": [
8 {
9 "tp_id": "hubspot",
10 "tp_access_token": "string",
11 "tp_refresh_token": "string",
12 "tp_customer_id": "string",
13 "t_id": "string",
14 "app_client_id": "string",
15 "app_client_secret": "string",
16 "app_id": "string"
17 }
18 ]
19}'
200Successful
1{
2 "status": "ok"
3}