Not specified in source.
Auth: BearerSource: API-DOC/workshop-rules/v2.md
Request Example
This endpoint does not use a JSON body. Send path/query parameters and required headers.
Response Example
{
"data": {
"id": 123
}
}
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_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
async function run() {
const response = await axios({
method: "get",
url: `${BASE_URL}/api/ws/v2/dashboard`,
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
timeout: 20000,
});
console.log(response.data);
}
run().catch((error) => {
console.error(error.response?.data ?? error.message);
});
cURL example
BASE_URL="${MINBIL_API_BASE_URL:-http://localhost:5000}"
API_KEY="${MINBIL_API_KEY:-YOUR_API_KEY}"
ACCESS_TOKEN="${MINBIL_WS_ACCESS_TOKEN:-YOUR_BEARER_TOKEN}"
curl -X GET "${BASE_URL}/api/ws/v2/dashboard" \\
-H "Content-Type: 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_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
const response = await fetch(`${BASE_URL}/api/ws/v2/dashboard`, {
method: "GET",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
});
const data = await response.json();
console.log(data);
Not specified in source.
Auth: BearerSource: API-DOC/workshop-rules/v2.md
Request Example
This endpoint does not use a JSON body. Send path/query parameters and required headers.
Response Example
{
"items": [
{
"id": 701,
"status": "PENDING",
"start_time": "2026-02-20T10:00:00Z"
}
],
"meta": {
"total": 1,
"page": 1,
"page_size": 20
}
}
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_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
async function run() {
const response = await axios({
method: "get",
url: `${BASE_URL}/api/ws/v2/bookings`,
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
params: {
"status": "PENDING",
"page": 1,
"page_size": 20
},
timeout: 20000,
});
console.log(response.data);
}
run().catch((error) => {
console.error(error.response?.data ?? error.message);
});
cURL example
BASE_URL="${MINBIL_API_BASE_URL:-http://localhost:5000}"
API_KEY="${MINBIL_API_KEY:-YOUR_API_KEY}"
ACCESS_TOKEN="${MINBIL_WS_ACCESS_TOKEN:-YOUR_BEARER_TOKEN}"
curl -X GET "${BASE_URL}/api/ws/v2/bookings" \\
-H "Content-Type: application/json" \\
-H "Authorization: Bearer ${ACCESS_TOKEN}"
# Suggested query params:
# {
# "status": "PENDING",
# "page": 1,
# "page_size": 20
# }
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_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
const response = await fetch(`${BASE_URL}/api/ws/v2/bookings`, {
method: "GET",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
});
const data = await response.json();
console.log(data);
// Suggested query params:
// {
// "status": "PENDING",
// "page": 1,
// "page_size": 20
// }
GET/api/ws/v2/customer-jobs/overviewNot specified in source.
Auth: BearerSource: API-DOC/workshop-rules/v2.md
Request Example
This endpoint does not use a JSON body. Send path/query parameters and required headers.
Response Example
{
"data": {
"id": 123
}
}
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_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
async function run() {
const response = await axios({
method: "get",
url: `${BASE_URL}/api/ws/v2/customer-jobs/overview`,
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
timeout: 20000,
});
console.log(response.data);
}
run().catch((error) => {
console.error(error.response?.data ?? error.message);
});
cURL example
BASE_URL="${MINBIL_API_BASE_URL:-http://localhost:5000}"
API_KEY="${MINBIL_API_KEY:-YOUR_API_KEY}"
ACCESS_TOKEN="${MINBIL_WS_ACCESS_TOKEN:-YOUR_BEARER_TOKEN}"
curl -X GET "${BASE_URL}/api/ws/v2/customer-jobs/overview" \\
-H "Content-Type: 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_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
const response = await fetch(`${BASE_URL}/api/ws/v2/customer-jobs/overview`, {
method: "GET",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
});
const data = await response.json();
console.log(data);
GET/api/ws/v2/bookings/:booking_idNot specified in source.
Auth: BearerSource: API-DOC/workshop-rules/v2.md
Request Example
This endpoint does not use a JSON body. Send path/query parameters and required headers.
Response Example
{
"items": [
{
"id": 701,
"status": "PENDING",
"start_time": "2026-02-20T10:00:00Z"
}
],
"meta": {
"total": 1,
"page": 1,
"page_size": 20
}
}
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_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
async function run() {
// Replace path params before calling endpoint: booking_id
const response = await axios({
method: "get",
url: `${BASE_URL}/api/ws/v2/bookings/:booking_id`,
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
params: {
"status": "PENDING",
"page": 1,
"page_size": 20
},
timeout: 20000,
});
console.log(response.data);
}
run().catch((error) => {
console.error(error.response?.data ?? error.message);
});
cURL example
BASE_URL="${MINBIL_API_BASE_URL:-http://localhost:5000}"
API_KEY="${MINBIL_API_KEY:-YOUR_API_KEY}"
ACCESS_TOKEN="${MINBIL_WS_ACCESS_TOKEN:-YOUR_BEARER_TOKEN}"
curl -X GET "${BASE_URL}/api/ws/v2/bookings/:booking_id" \\
-H "Content-Type: application/json" \\
-H "Authorization: Bearer ${ACCESS_TOKEN}"
# Suggested query params:
# {
# "status": "PENDING",
# "page": 1,
# "page_size": 20
# }
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_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
const response = await fetch(`${BASE_URL}/api/ws/v2/bookings/:booking_id`, {
method: "GET",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
});
const data = await response.json();
console.log(data);
// Suggested query params:
// {
// "status": "PENDING",
// "page": 1,
// "page_size": 20
// }
POST/api/ws/v2/bookings/:booking_id/messagesNot specified in source.
Auth: BearerSource: API-DOC/workshop-rules/v2.md
Request Example
{
"path_params": {
"booking_id": 123
},
"body": {
"workshop_id": 123,
"vehicle_id": 456,
"service_ids": [
1,
2
],
"preferred_start_time": "2026-02-20T10:00:00Z",
"note": "Need a quick service appointment."
}
}
Response Example
{
"success": true,
"message": "Operation completed"
}
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_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
async function run() {
// Replace path params before calling endpoint: booking_id
const response = await axios({
method: "post",
url: `${BASE_URL}/api/ws/v2/bookings/:booking_id/messages`,
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
data: {
"workshop_id": 123,
"vehicle_id": 456,
"service_ids": [
1,
2
],
"preferred_start_time": "2026-02-20T10:00:00Z",
"note": "Need a quick service appointment."
},
timeout: 20000,
});
console.log(response.data);
}
run().catch((error) => {
console.error(error.response?.data ?? error.message);
});
cURL example
BASE_URL="${MINBIL_API_BASE_URL:-http://localhost:5000}"
API_KEY="${MINBIL_API_KEY:-YOUR_API_KEY}"
ACCESS_TOKEN="${MINBIL_WS_ACCESS_TOKEN:-YOUR_BEARER_TOKEN}"
curl -X POST "${BASE_URL}/api/ws/v2/bookings/:booking_id/messages" \\
-H "Content-Type: application/json" \\
-H "Authorization: Bearer ${ACCESS_TOKEN}" \\
-d '{
"workshop_id": 123,
"vehicle_id": 456,
"service_ids": [
1,
2
],
"preferred_start_time": "2026-02-20T10:00:00Z",
"note": "Need a quick service appointment."
}'
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_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
const response = await fetch(`${BASE_URL}/api/ws/v2/bookings/:booking_id/messages`, {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
body: JSON.stringify({
"workshop_id": 123,
"vehicle_id": 456,
"service_ids": [
1,
2
],
"preferred_start_time": "2026-02-20T10:00:00Z",
"note": "Need a quick service appointment."
}),
});
const data = await response.json();
console.log(data);
GET/api/ws/v2/bookings/:booking_id/valid-transitionsNot specified in source.
Auth: BearerSource: API-DOC/workshop-rules/v2.md
Request Example
This endpoint does not use a JSON body. Send path/query parameters and required headers.
Response Example
{
"items": [
{
"id": 701,
"status": "PENDING",
"start_time": "2026-02-20T10:00:00Z"
}
],
"meta": {
"total": 1,
"page": 1,
"page_size": 20
}
}
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_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
async function run() {
// Replace path params before calling endpoint: booking_id
const response = await axios({
method: "get",
url: `${BASE_URL}/api/ws/v2/bookings/:booking_id/valid-transitions`,
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
params: {
"status": "PENDING",
"page": 1,
"page_size": 20
},
timeout: 20000,
});
console.log(response.data);
}
run().catch((error) => {
console.error(error.response?.data ?? error.message);
});
cURL example
BASE_URL="${MINBIL_API_BASE_URL:-http://localhost:5000}"
API_KEY="${MINBIL_API_KEY:-YOUR_API_KEY}"
ACCESS_TOKEN="${MINBIL_WS_ACCESS_TOKEN:-YOUR_BEARER_TOKEN}"
curl -X GET "${BASE_URL}/api/ws/v2/bookings/:booking_id/valid-transitions" \\
-H "Content-Type: application/json" \\
-H "Authorization: Bearer ${ACCESS_TOKEN}"
# Suggested query params:
# {
# "status": "PENDING",
# "page": 1,
# "page_size": 20
# }
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_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
const response = await fetch(`${BASE_URL}/api/ws/v2/bookings/:booking_id/valid-transitions`, {
method: "GET",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
});
const data = await response.json();
console.log(data);
// Suggested query params:
// {
// "status": "PENDING",
// "page": 1,
// "page_size": 20
// }
POST/api/ws/v2/bookings/status-transitionsNot specified in source.
Auth: BearerSource: API-DOC/workshop-rules/v2.md
Request Example
{
"body": {
"workshop_id": 123,
"vehicle_id": 456,
"service_ids": [
1,
2
],
"preferred_start_time": "2026-02-20T10:00:00Z",
"note": "Need a quick service appointment."
}
}
Response Example
{
"success": true,
"message": "Operation completed"
}
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_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
async function run() {
const response = await axios({
method: "post",
url: `${BASE_URL}/api/ws/v2/bookings/status-transitions`,
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
data: {
"workshop_id": 123,
"vehicle_id": 456,
"service_ids": [
1,
2
],
"preferred_start_time": "2026-02-20T10:00:00Z",
"note": "Need a quick service appointment."
},
timeout: 20000,
});
console.log(response.data);
}
run().catch((error) => {
console.error(error.response?.data ?? error.message);
});
cURL example
BASE_URL="${MINBIL_API_BASE_URL:-http://localhost:5000}"
API_KEY="${MINBIL_API_KEY:-YOUR_API_KEY}"
ACCESS_TOKEN="${MINBIL_WS_ACCESS_TOKEN:-YOUR_BEARER_TOKEN}"
curl -X POST "${BASE_URL}/api/ws/v2/bookings/status-transitions" \\
-H "Content-Type: application/json" \\
-H "Authorization: Bearer ${ACCESS_TOKEN}" \\
-d '{
"workshop_id": 123,
"vehicle_id": 456,
"service_ids": [
1,
2
],
"preferred_start_time": "2026-02-20T10:00:00Z",
"note": "Need a quick service appointment."
}'
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_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
const response = await fetch(`${BASE_URL}/api/ws/v2/bookings/status-transitions`, {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
body: JSON.stringify({
"workshop_id": 123,
"vehicle_id": 456,
"service_ids": [
1,
2
],
"preferred_start_time": "2026-02-20T10:00:00Z",
"note": "Need a quick service appointment."
}),
});
const data = await response.json();
console.log(data);
GET/api/ws/v2/booking-statusesNot specified in source.
Auth: BearerSource: API-DOC/workshop-rules/v2.md
Request Example
This endpoint does not use a JSON body. Send path/query parameters and required headers.
Response Example
{
"data": {
"id": 123
}
}
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_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
async function run() {
const response = await axios({
method: "get",
url: `${BASE_URL}/api/ws/v2/booking-statuses`,
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
timeout: 20000,
});
console.log(response.data);
}
run().catch((error) => {
console.error(error.response?.data ?? error.message);
});
cURL example
BASE_URL="${MINBIL_API_BASE_URL:-http://localhost:5000}"
API_KEY="${MINBIL_API_KEY:-YOUR_API_KEY}"
ACCESS_TOKEN="${MINBIL_WS_ACCESS_TOKEN:-YOUR_BEARER_TOKEN}"
curl -X GET "${BASE_URL}/api/ws/v2/booking-statuses" \\
-H "Content-Type: 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_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
const response = await fetch(`${BASE_URL}/api/ws/v2/booking-statuses`, {
method: "GET",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
});
const data = await response.json();
console.log(data);
GET/api/ws/v2/bookings/calendarNot specified in source.
Auth: BearerSource: API-DOC/workshop-rules/v2.md
Request Example
This endpoint does not use a JSON body. Send path/query parameters and required headers.
Response Example
{
"items": [
{
"id": 701,
"status": "PENDING",
"start_time": "2026-02-20T10:00:00Z"
}
],
"meta": {
"total": 1,
"page": 1,
"page_size": 20
}
}
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_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
async function run() {
const response = await axios({
method: "get",
url: `${BASE_URL}/api/ws/v2/bookings/calendar`,
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
params: {
"status": "PENDING",
"page": 1,
"page_size": 20
},
timeout: 20000,
});
console.log(response.data);
}
run().catch((error) => {
console.error(error.response?.data ?? error.message);
});
cURL example
BASE_URL="${MINBIL_API_BASE_URL:-http://localhost:5000}"
API_KEY="${MINBIL_API_KEY:-YOUR_API_KEY}"
ACCESS_TOKEN="${MINBIL_WS_ACCESS_TOKEN:-YOUR_BEARER_TOKEN}"
curl -X GET "${BASE_URL}/api/ws/v2/bookings/calendar" \\
-H "Content-Type: application/json" \\
-H "Authorization: Bearer ${ACCESS_TOKEN}"
# Suggested query params:
# {
# "status": "PENDING",
# "page": 1,
# "page_size": 20
# }
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_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
const response = await fetch(`${BASE_URL}/api/ws/v2/bookings/calendar`, {
method: "GET",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
});
const data = await response.json();
console.log(data);
// Suggested query params:
// {
// "status": "PENDING",
// "page": 1,
// "page_size": 20
// }
GET/api/ws/v2/calendar/eventsCalendar events (legacy alias)
Deprecated alias for GET /api/ws/v2/bookings/calendar.
Auth: BearerSource: API-DOC/workshop-rules/v2.md
Request Example
This endpoint does not use a JSON body. Send path/query parameters and required headers.
Response Example
{
"data": {
"id": 123
}
}
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_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
async function run() {
const response = await axios({
method: "get",
url: `${BASE_URL}/api/ws/v2/calendar/events`,
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
timeout: 20000,
});
console.log(response.data);
}
run().catch((error) => {
console.error(error.response?.data ?? error.message);
});
cURL example
BASE_URL="${MINBIL_API_BASE_URL:-http://localhost:5000}"
API_KEY="${MINBIL_API_KEY:-YOUR_API_KEY}"
ACCESS_TOKEN="${MINBIL_WS_ACCESS_TOKEN:-YOUR_BEARER_TOKEN}"
curl -X GET "${BASE_URL}/api/ws/v2/calendar/events" \\
-H "Content-Type: 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_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
const response = await fetch(`${BASE_URL}/api/ws/v2/calendar/events`, {
method: "GET",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
});
const data = await response.json();
console.log(data);
GET/api/ws/v2/services/catalogNot specified in source.
Auth: BearerSource: API-DOC/workshop-rules/v2.md
Request Example
This endpoint does not use a JSON body. Send path/query parameters and required headers.
Response Example
{
"data": {
"id": 123
}
}
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_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
async function run() {
const response = await axios({
method: "get",
url: `${BASE_URL}/api/ws/v2/services/catalog`,
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
timeout: 20000,
});
console.log(response.data);
}
run().catch((error) => {
console.error(error.response?.data ?? error.message);
});
cURL example
BASE_URL="${MINBIL_API_BASE_URL:-http://localhost:5000}"
API_KEY="${MINBIL_API_KEY:-YOUR_API_KEY}"
ACCESS_TOKEN="${MINBIL_WS_ACCESS_TOKEN:-YOUR_BEARER_TOKEN}"
curl -X GET "${BASE_URL}/api/ws/v2/services/catalog" \\
-H "Content-Type: 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_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
const response = await fetch(`${BASE_URL}/api/ws/v2/services/catalog`, {
method: "GET",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
});
const data = await response.json();
console.log(data);
GET/api/ws/v2/workshop/profileNot specified in source.
Auth: BearerSource: API-DOC/workshop-rules/v2.md
Request Example
This endpoint does not use a JSON body. Send path/query parameters and required headers.
Response Example
{
"data": {
"id": 123
}
}
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_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
async function run() {
const response = await axios({
method: "get",
url: `${BASE_URL}/api/ws/v2/workshop/profile`,
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
timeout: 20000,
});
console.log(response.data);
}
run().catch((error) => {
console.error(error.response?.data ?? error.message);
});
cURL example
BASE_URL="${MINBIL_API_BASE_URL:-http://localhost:5000}"
API_KEY="${MINBIL_API_KEY:-YOUR_API_KEY}"
ACCESS_TOKEN="${MINBIL_WS_ACCESS_TOKEN:-YOUR_BEARER_TOKEN}"
curl -X GET "${BASE_URL}/api/ws/v2/workshop/profile" \\
-H "Content-Type: 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_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
const response = await fetch(`${BASE_URL}/api/ws/v2/workshop/profile`, {
method: "GET",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
});
const data = await response.json();
console.log(data);
GET/api/ws/v2/documents/archiveNot specified in source.
Auth: BearerSource: API-DOC/workshop-rules/v2.md
Request Example
This endpoint does not use a JSON body. Send path/query parameters and required headers.
Response Example
{
"data": {
"id": 123
}
}
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_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
async function run() {
const response = await axios({
method: "get",
url: `${BASE_URL}/api/ws/v2/documents/archive`,
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
timeout: 20000,
});
console.log(response.data);
}
run().catch((error) => {
console.error(error.response?.data ?? error.message);
});
cURL example
BASE_URL="${MINBIL_API_BASE_URL:-http://localhost:5000}"
API_KEY="${MINBIL_API_KEY:-YOUR_API_KEY}"
ACCESS_TOKEN="${MINBIL_WS_ACCESS_TOKEN:-YOUR_BEARER_TOKEN}"
curl -X GET "${BASE_URL}/api/ws/v2/documents/archive" \\
-H "Content-Type: 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_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
const response = await fetch(`${BASE_URL}/api/ws/v2/documents/archive`, {
method: "GET",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
});
const data = await response.json();
console.log(data);
GET/api/ws/v2/archive/feedNot specified in source.
Auth: BearerSource: API-DOC/workshop-rules/v2.md
Request Example
This endpoint does not use a JSON body. Send path/query parameters and required headers.
Response Example
{
"data": {
"id": 123
}
}
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_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
async function run() {
const response = await axios({
method: "get",
url: `${BASE_URL}/api/ws/v2/archive/feed`,
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
timeout: 20000,
});
console.log(response.data);
}
run().catch((error) => {
console.error(error.response?.data ?? error.message);
});
cURL example
BASE_URL="${MINBIL_API_BASE_URL:-http://localhost:5000}"
API_KEY="${MINBIL_API_KEY:-YOUR_API_KEY}"
ACCESS_TOKEN="${MINBIL_WS_ACCESS_TOKEN:-YOUR_BEARER_TOKEN}"
curl -X GET "${BASE_URL}/api/ws/v2/archive/feed" \\
-H "Content-Type: 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_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
const response = await fetch(`${BASE_URL}/api/ws/v2/archive/feed`, {
method: "GET",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
});
const data = await response.json();
console.log(data);
GET/api/ws/v2/notifications/feedNot specified in source.
Auth: BearerSource: API-DOC/workshop-rules/v2.md
Request Example
This endpoint does not use a JSON body. Send path/query parameters and required headers.
Response Example
{
"data": {
"id": 123
}
}
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_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
async function run() {
const response = await axios({
method: "get",
url: `${BASE_URL}/api/ws/v2/notifications/feed`,
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
timeout: 20000,
});
console.log(response.data);
}
run().catch((error) => {
console.error(error.response?.data ?? error.message);
});
cURL example
BASE_URL="${MINBIL_API_BASE_URL:-http://localhost:5000}"
API_KEY="${MINBIL_API_KEY:-YOUR_API_KEY}"
ACCESS_TOKEN="${MINBIL_WS_ACCESS_TOKEN:-YOUR_BEARER_TOKEN}"
curl -X GET "${BASE_URL}/api/ws/v2/notifications/feed" \\
-H "Content-Type: 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_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
const response = await fetch(`${BASE_URL}/api/ws/v2/notifications/feed`, {
method: "GET",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
});
const data = await response.json();
console.log(data);
POST/api/ws/v2/notifications/mark-readNot specified in source.
Auth: BearerSource: API-DOC/workshop-rules/v2.md
Request Example
{
"body": {
"example_field": "example_value"
}
}
Response Example
{
"success": true,
"message": "Operation completed"
}
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_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
async function run() {
const response = await axios({
method: "post",
url: `${BASE_URL}/api/ws/v2/notifications/mark-read`,
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
data: {
"example_field": "example_value"
},
timeout: 20000,
});
console.log(response.data);
}
run().catch((error) => {
console.error(error.response?.data ?? error.message);
});
cURL example
BASE_URL="${MINBIL_API_BASE_URL:-http://localhost:5000}"
API_KEY="${MINBIL_API_KEY:-YOUR_API_KEY}"
ACCESS_TOKEN="${MINBIL_WS_ACCESS_TOKEN:-YOUR_BEARER_TOKEN}"
curl -X POST "${BASE_URL}/api/ws/v2/notifications/mark-read" \\
-H "Content-Type: application/json" \\
-H "Authorization: Bearer ${ACCESS_TOKEN}" \\
-d '{
"example_field": "example_value"
}'
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_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
const response = await fetch(`${BASE_URL}/api/ws/v2/notifications/mark-read`, {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
body: JSON.stringify({
"example_field": "example_value"
}),
});
const data = await response.json();
console.log(data);
POST/api/ws/v2/notifications/mark-unreadNot specified in source.
Auth: BearerSource: API-DOC/workshop-rules/v2.md
Request Example
{
"body": {
"example_field": "example_value"
}
}
Response Example
{
"success": true,
"message": "Operation completed"
}
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_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
async function run() {
const response = await axios({
method: "post",
url: `${BASE_URL}/api/ws/v2/notifications/mark-unread`,
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
data: {
"example_field": "example_value"
},
timeout: 20000,
});
console.log(response.data);
}
run().catch((error) => {
console.error(error.response?.data ?? error.message);
});
cURL example
BASE_URL="${MINBIL_API_BASE_URL:-http://localhost:5000}"
API_KEY="${MINBIL_API_KEY:-YOUR_API_KEY}"
ACCESS_TOKEN="${MINBIL_WS_ACCESS_TOKEN:-YOUR_BEARER_TOKEN}"
curl -X POST "${BASE_URL}/api/ws/v2/notifications/mark-unread" \\
-H "Content-Type: application/json" \\
-H "Authorization: Bearer ${ACCESS_TOKEN}" \\
-d '{
"example_field": "example_value"
}'
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_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
const response = await fetch(`${BASE_URL}/api/ws/v2/notifications/mark-unread`, {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
body: JSON.stringify({
"example_field": "example_value"
}),
});
const data = await response.json();
console.log(data);
DELETE/api/ws/v2/notifications/:notif_idNot specified in source.
Auth: BearerSource: API-DOC/workshop-rules/v2.md
Request Example
{
"path_params": {
"notif_id": 123
},
"body": {
"example_field": "example_value"
}
}
Response Example
{
"success": true,
"message": "Operation completed"
}
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_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
async function run() {
// Replace path params before calling endpoint: notif_id
const response = await axios({
method: "delete",
url: `${BASE_URL}/api/ws/v2/notifications/:notif_id`,
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
data: {
"example_field": "example_value"
},
timeout: 20000,
});
console.log(response.data);
}
run().catch((error) => {
console.error(error.response?.data ?? error.message);
});
cURL example
BASE_URL="${MINBIL_API_BASE_URL:-http://localhost:5000}"
API_KEY="${MINBIL_API_KEY:-YOUR_API_KEY}"
ACCESS_TOKEN="${MINBIL_WS_ACCESS_TOKEN:-YOUR_BEARER_TOKEN}"
curl -X DELETE "${BASE_URL}/api/ws/v2/notifications/:notif_id" \\
-H "Content-Type: application/json" \\
-H "Authorization: Bearer ${ACCESS_TOKEN}" \\
-d '{
"example_field": "example_value"
}'
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_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
const response = await fetch(`${BASE_URL}/api/ws/v2/notifications/:notif_id`, {
method: "DELETE",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
body: JSON.stringify({
"example_field": "example_value"
}),
});
const data = await response.json();
console.log(data);
POST/api/ws/v2/reports/exportsNot specified in source.
Auth: BearerSource: API-DOC/workshop-rules/v2.md
Request Example
{
"body": {
"example_field": "example_value"
}
}
Response Example
{
"success": true,
"message": "Operation completed"
}
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_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
async function run() {
const response = await axios({
method: "post",
url: `${BASE_URL}/api/ws/v2/reports/exports`,
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
data: {
"example_field": "example_value"
},
timeout: 20000,
});
console.log(response.data);
}
run().catch((error) => {
console.error(error.response?.data ?? error.message);
});
cURL example
BASE_URL="${MINBIL_API_BASE_URL:-http://localhost:5000}"
API_KEY="${MINBIL_API_KEY:-YOUR_API_KEY}"
ACCESS_TOKEN="${MINBIL_WS_ACCESS_TOKEN:-YOUR_BEARER_TOKEN}"
curl -X POST "${BASE_URL}/api/ws/v2/reports/exports" \\
-H "Content-Type: application/json" \\
-H "Authorization: Bearer ${ACCESS_TOKEN}" \\
-d '{
"example_field": "example_value"
}'
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_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
const response = await fetch(`${BASE_URL}/api/ws/v2/reports/exports`, {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
body: JSON.stringify({
"example_field": "example_value"
}),
});
const data = await response.json();
console.log(data);
GET/api/ws/v2/reports/exports/:job_idNot specified in source.
Auth: BearerSource: API-DOC/workshop-rules/v2.md
Request Example
This endpoint does not use a JSON body. Send path/query parameters and required headers.
Response Example
{
"data": {
"id": 123
}
}
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_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
async function run() {
// Replace path params before calling endpoint: job_id
const response = await axios({
method: "get",
url: `${BASE_URL}/api/ws/v2/reports/exports/:job_id`,
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
timeout: 20000,
});
console.log(response.data);
}
run().catch((error) => {
console.error(error.response?.data ?? error.message);
});
cURL example
BASE_URL="${MINBIL_API_BASE_URL:-http://localhost:5000}"
API_KEY="${MINBIL_API_KEY:-YOUR_API_KEY}"
ACCESS_TOKEN="${MINBIL_WS_ACCESS_TOKEN:-YOUR_BEARER_TOKEN}"
curl -X GET "${BASE_URL}/api/ws/v2/reports/exports/:job_id" \\
-H "Content-Type: 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_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
const response = await fetch(`${BASE_URL}/api/ws/v2/reports/exports/:job_id`, {
method: "GET",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
});
const data = await response.json();
console.log(data);
POST/api/ws/v2/reports/exports/:job_id/cancelNot specified in source.
Auth: BearerSource: API-DOC/workshop-rules/v2.md
Request Example
{
"path_params": {
"job_id": 123
},
"body": {
"example_field": "example_value"
}
}
Response Example
{
"success": true,
"message": "Operation completed"
}
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_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
async function run() {
// Replace path params before calling endpoint: job_id
const response = await axios({
method: "post",
url: `${BASE_URL}/api/ws/v2/reports/exports/:job_id/cancel`,
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
data: {
"example_field": "example_value"
},
timeout: 20000,
});
console.log(response.data);
}
run().catch((error) => {
console.error(error.response?.data ?? error.message);
});
cURL example
BASE_URL="${MINBIL_API_BASE_URL:-http://localhost:5000}"
API_KEY="${MINBIL_API_KEY:-YOUR_API_KEY}"
ACCESS_TOKEN="${MINBIL_WS_ACCESS_TOKEN:-YOUR_BEARER_TOKEN}"
curl -X POST "${BASE_URL}/api/ws/v2/reports/exports/:job_id/cancel" \\
-H "Content-Type: application/json" \\
-H "Authorization: Bearer ${ACCESS_TOKEN}" \\
-d '{
"example_field": "example_value"
}'
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_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
const response = await fetch(`${BASE_URL}/api/ws/v2/reports/exports/:job_id/cancel`, {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
body: JSON.stringify({
"example_field": "example_value"
}),
});
const data = await response.json();
console.log(data);
GET/api/ws/v2/reports/exports/:job_id/downloadNot specified in source.
Auth: BearerSource: API-DOC/workshop-rules/v2.md
Request Example
This endpoint does not use a JSON body. Send path/query parameters and required headers.
Response Example
{
"data": {
"id": 123
}
}
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_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
async function run() {
// Replace path params before calling endpoint: job_id
const response = await axios({
method: "get",
url: `${BASE_URL}/api/ws/v2/reports/exports/:job_id/download`,
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
timeout: 20000,
});
console.log(response.data);
}
run().catch((error) => {
console.error(error.response?.data ?? error.message);
});
cURL example
BASE_URL="${MINBIL_API_BASE_URL:-http://localhost:5000}"
API_KEY="${MINBIL_API_KEY:-YOUR_API_KEY}"
ACCESS_TOKEN="${MINBIL_WS_ACCESS_TOKEN:-YOUR_BEARER_TOKEN}"
curl -X GET "${BASE_URL}/api/ws/v2/reports/exports/:job_id/download" \\
-H "Content-Type: 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_WS_ACCESS_TOKEN ?? "YOUR_BEARER_TOKEN";
const response = await fetch(`${BASE_URL}/api/ws/v2/reports/exports/:job_id/download`, {
method: "GET",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${ACCESS_TOKEN}`,
},
});
const data = await response.json();
console.log(data);