List all connections
curl --request GET \
--url https://qubesync.com/api/v1/connections \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://qubesync.com/api/v1/connections"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://qubesync.com/api/v1/connections', 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://qubesync.com/api/v1/connections",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>"
],
]);
$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://qubesync.com/api/v1/connections"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://qubesync.com/api/v1/connections")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://qubesync.com/api/v1/connections")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"app_id": "550e8400-e29b-41d4-a716-446655440000",
"username": "550e8400-e29b-41d4-a716-446655440001",
"last_connected_at": "2023-01-01T12:00:00Z",
"name": "My Customer Inc.",
"company_file": "My Company File.QBW",
"qbxml_version": "14.0",
"quickbooks_product_name": "QuickBooks Pro 2021",
"onboarding_token_expires_at": "2023-01-08T12:00:00Z",
"type": "standard",
"redirect_url": "https://myapp.com/quickbooks-setup-callback",
"links": {
"self": "/api/v1/connections/123e4567-e89b-12d3-a456-426614174000",
"ui": "/app/connections/123e4567-e89b-12d3-a456-426614174000",
"onboarding": "https://qubesync.com/onboarding/123e4567-e89b-12d3-a456-426614174000"
}
}
],
"meta": {
"page": 1,
"total_pages": 1
}
}Unauthorized{
"errors": {
"last_connected_at": [
"is read-only: QuBe Sync sets it from the Web Connector and QuickBooks"
]
}
}Connections
List all connections
Returns a list of all connections for the authenticated application. Send page or page_size to get them a page at a time instead, oldest first, with a meta block saying how many pages there are. Without either, every connection comes back in one answer and there is no meta, as this endpoint has always answered.
GET
/
connections
List all connections
curl --request GET \
--url https://qubesync.com/api/v1/connections \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://qubesync.com/api/v1/connections"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://qubesync.com/api/v1/connections', 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://qubesync.com/api/v1/connections",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>"
],
]);
$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://qubesync.com/api/v1/connections"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://qubesync.com/api/v1/connections")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://qubesync.com/api/v1/connections")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"app_id": "550e8400-e29b-41d4-a716-446655440000",
"username": "550e8400-e29b-41d4-a716-446655440001",
"last_connected_at": "2023-01-01T12:00:00Z",
"name": "My Customer Inc.",
"company_file": "My Company File.QBW",
"qbxml_version": "14.0",
"quickbooks_product_name": "QuickBooks Pro 2021",
"onboarding_token_expires_at": "2023-01-08T12:00:00Z",
"type": "standard",
"redirect_url": "https://myapp.com/quickbooks-setup-callback",
"links": {
"self": "/api/v1/connections/123e4567-e89b-12d3-a456-426614174000",
"ui": "/app/connections/123e4567-e89b-12d3-a456-426614174000",
"onboarding": "https://qubesync.com/onboarding/123e4567-e89b-12d3-a456-426614174000"
}
}
],
"meta": {
"page": 1,
"total_pages": 1
}
}Unauthorized{
"errors": {
"last_connected_at": [
"is read-only: QuBe Sync sets it from the Web Connector and QuickBooks"
]
}
}Authorizations
Use your app's API_KEY as the username, and leave the password blank
Query Parameters
Optional. Which page of the list, from 1. Sending it turns paging on.
Required range:
x >= 1Optional. How many to a page, at most 100. Sending it turns paging on.
Required range:
1 <= x <= 100
