Skip to main content
POST
/
connections
Create connection
curl --request POST \
  --url https://api.bundleup.io/v1/connections \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "integration_id": "<string>",
  "auth_token": "<string>",
  "external_id": "<string>",
  "refresh_token": "<string>",
  "expires_in": 123
}
'
{
  "data": {
    "id": "<string>",
    "external_id": "<string>",
    "expires_at": "2023-11-07T05:31:56Z",
    "integration_id": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Pass the API key as a bearer token.

Body

application/json
integration_id
string
required

Integration ID to associate with the connection.

auth_token
string
required

Provider access token.

external_id
string

External account identifier.

refresh_token
string

Provider refresh token.

expires_in
number

Access token lifetime in seconds.

Response

Connection created successfully.

data
object
required