/api/co/realtime/configEndpoint operation.
Returns Supabase Realtime connection config and channel names for the authenticated user.
Auth: Bearer token (`Authorization: Bearer <token>`)Source: CORE-COMMON-API-COMPLETE.md
Request Example
{}Response Example
{
"supabase_url": "string_value",
"anon_key": "string_value",
"channels": {},
"enabled": true
}Node.js Axios example
import axios from "axios";
const BASE_URL = process.env.MINBIL_API_BASE_URL ?? "http://localhost:5000";
const API_KEY = process.env.MINBIL_API_KEY ?? "YOUR_API_KEY";
const ACCESS_TOKEN = process.env.MINBIL_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
async function run() {
const response = await axios({
method: "get",
url: BASE_URL + "/api/co/realtime/config",
headers: {
"Content-Type": "application/json",
Authorization: "Bearer " + ACCESS_TOKEN,
},
timeout: 20000,
});
console.log(response.status, response.data);
}
run().catch((error) => {
console.error(error.response?.status, error.response?.data ?? error.message);
});cURL example
curl -X GET 'https://api.minbil.no/api/co/realtime/config'\
-H 'Accept: application/json'\
-H 'Authorization: Bearer <access-token>'Fetch example
const BASE_URL = process.env.MINBIL_API_BASE_URL ?? "http://localhost:5000";
const API_KEY = process.env.MINBIL_API_KEY ?? "YOUR_API_KEY";
const ACCESS_TOKEN = process.env.MINBIL_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
const response = await fetch(BASE_URL + "/api/co/realtime/config", {
method: "GET",
headers: {
"Content-Type": "application/json",
Authorization: "Bearer " + ACCESS_TOKEN,
},
});
const data = await response.json();
console.log(response.status, data);