Get Config
curl --request GET \
--url https://api.openloophealth.com/v0.1/configs \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.openloophealth.com/v0.1/configs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.openloophealth.com/v0.1/configs', 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://api.openloophealth.com/v0.1/configs",
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: Bearer <token>"
],
]);
$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://api.openloophealth.com/v0.1/configs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.openloophealth.com/v0.1/configs")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.openloophealth.com/v0.1/configs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "test_config_id",
"organization_id": "test_org_id",
"provider_account_id": "test_account_id",
"account_type": "standalone",
"parent_config_id": null,
"emr_id": "test_emr_id",
"payment_provider": "stripe",
"publishable_key": "test_publishable_key",
"provider_access_disabled": false,
"payment_group": "test_payment_group_id",
"metadata": {
"billing_email": "billing@example.com"
},
"retention_app_id": "test_retention_app_id",
"status": "ACTIVE",
"created_at": "2025-01-15T08:00:00Z",
"updated_at": "2026-05-20T14:30:00Z",
"created_by_actor_id": "test_actor_id",
"created_by_actor_type": "SYSTEM",
"updated_by_actor_id": "test_actor_id",
"updated_by_actor_type": "SYSTEM"
}
}Configs
Get Config
Returns the caller’s own configuration record. The target config is resolved from the caller’s identity, not from a path or query parameter, so there is no way to look up any config other than your own. Provider secret keys are never stored on the config, so the response never includes one.
GET
/
configs
Get Config
curl --request GET \
--url https://api.openloophealth.com/v0.1/configs \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.openloophealth.com/v0.1/configs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.openloophealth.com/v0.1/configs', 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://api.openloophealth.com/v0.1/configs",
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: Bearer <token>"
],
]);
$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://api.openloophealth.com/v0.1/configs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.openloophealth.com/v0.1/configs")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.openloophealth.com/v0.1/configs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "test_config_id",
"organization_id": "test_org_id",
"provider_account_id": "test_account_id",
"account_type": "standalone",
"parent_config_id": null,
"emr_id": "test_emr_id",
"payment_provider": "stripe",
"publishable_key": "test_publishable_key",
"provider_access_disabled": false,
"payment_group": "test_payment_group_id",
"metadata": {
"billing_email": "billing@example.com"
},
"retention_app_id": "test_retention_app_id",
"status": "ACTIVE",
"created_at": "2025-01-15T08:00:00Z",
"updated_at": "2026-05-20T14:30:00Z",
"created_by_actor_id": "test_actor_id",
"created_by_actor_type": "SYSTEM",
"updated_by_actor_id": "test_actor_id",
"updated_by_actor_type": "SYSTEM"
}
}
