{
    "variable": [
        {
            "id": "baseUrl",
            "key": "baseUrl",
            "type": "string",
            "name": "string",
            "value": "https:\/\/boxflow.be"
        }
    ],
    "info": {
        "name": "Boxflow External API Documentation",
        "_postman_id": "2e3762e1-033a-4438-bb0c-afe828002c96",
        "description": "External API for integrating with Boxflow. Access tenant data, messages, and attachments programmatically.",
        "schema": "https:\/\/schema.getpostman.com\/json\/collection\/v2.1.0\/collection.json"
    },
    "item": [
        {
            "name": "Endpoints",
            "description": "",
            "item": [
                {
                    "name": "GET api\/external\/tenants",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/external\/tenants",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/external\/tenants"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"tenant_ids\":[16],\"page\":22,\"per_page\":7,\"includeUsage\":true,\"includeCompanies\":true}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [
                                {
                                    "key": "cache-control",
                                    "value": "no-cache, private"
                                },
                                {
                                    "key": "content-type",
                                    "value": "application\/json"
                                },
                                {
                                    "key": "access-control-allow-origin",
                                    "value": "*"
                                }
                            ],
                            "code": 401,
                            "body": "{\"message\":\"Unauthenticated.\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "GET api\/external\/subscriptions",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/external\/subscriptions",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/external\/subscriptions"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"tenant_ids\":[16],\"plan_ids\":[22],\"status\":\"inactive\",\"page\":67,\"per_page\":16}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [
                                {
                                    "key": "cache-control",
                                    "value": "no-cache, private"
                                },
                                {
                                    "key": "content-type",
                                    "value": "application\/json"
                                },
                                {
                                    "key": "access-control-allow-origin",
                                    "value": "*"
                                }
                            ],
                            "code": 401,
                            "body": "{\"message\":\"Unauthenticated.\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "POST api\/external\/transactions",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/external\/transactions",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/external\/transactions"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"subscription_id\":16,\"amount\":22,\"total_tax\":84,\"total_discount\":12,\"total_fees\":77,\"description\":\"Et fugiat sunt nihil accusantium.\",\"transaction_date\":\"2026-09-11T13:51:20\"}"
                        },
                        "description": ""
                    },
                    "response": []
                },
                {
                    "name": "PATCH api\/external\/subscriptions\/{subscriptionId}\/mrr-override",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/external\/subscriptions\/:subscriptionId\/mrr-override",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/external\/subscriptions\/:subscriptionId\/mrr-override",
                            "variable": [
                                {
                                    "id": "subscriptionId",
                                    "key": "subscriptionId",
                                    "value": "architecto",
                                    "description": ""
                                }
                            ]
                        },
                        "method": "PATCH",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"mrr_override\":27}"
                        },
                        "description": ""
                    },
                    "response": []
                },
                {
                    "name": "PATCH api\/external\/subscriptions\/{subscriptionId}\/enterprise-billing",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/external\/subscriptions\/:subscriptionId\/enterprise-billing",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/external\/subscriptions\/:subscriptionId\/enterprise-billing",
                            "variable": [
                                {
                                    "id": "subscriptionId",
                                    "key": "subscriptionId",
                                    "value": "architecto",
                                    "description": ""
                                }
                            ]
                        },
                        "method": "PATCH",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"enterprise_amount_per_company\":27,\"enterprise_minimum_companies\":39}"
                        },
                        "description": ""
                    },
                    "response": []
                },
                {
                    "name": "List users for a specific tenant",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/external\/tenants\/:tenant\/users",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/external\/tenants\/:tenant\/users",
                            "variable": [
                                {
                                    "id": "tenant",
                                    "key": "tenant",
                                    "value": "architecto",
                                    "description": "The tenant."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"page\":16,\"per_page\":22,\"search\":\"g\"}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [
                                {
                                    "key": "cache-control",
                                    "value": "no-cache, private"
                                },
                                {
                                    "key": "content-type",
                                    "value": "application\/json"
                                },
                                {
                                    "key": "access-control-allow-origin",
                                    "value": "*"
                                }
                            ],
                            "code": 401,
                            "body": "{\"message\":\"Unauthenticated.\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "List messages for a specific tenant",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/external\/tenants\/:tenant\/messages",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/external\/tenants\/:tenant\/messages",
                            "variable": [
                                {
                                    "id": "tenant",
                                    "key": "tenant",
                                    "value": "architecto",
                                    "description": "The tenant."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"status_id\":16,\"service_id\":22,\"company_id\":67,\"sender_id\":66,\"from_date\":\"2026-09-11T13:51:20\",\"to_date\":\"2026-09-11T13:51:20\",\"search\":\"m\",\"page\":35,\"per_page\":8}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [
                                {
                                    "key": "cache-control",
                                    "value": "no-cache, private"
                                },
                                {
                                    "key": "content-type",
                                    "value": "application\/json"
                                },
                                {
                                    "key": "access-control-allow-origin",
                                    "value": "*"
                                }
                            ],
                            "code": 401,
                            "body": "{\"message\":\"Unauthenticated.\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get a specific message with all details",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/external\/tenants\/:tenant\/messages\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/external\/tenants\/:tenant\/messages\/:id",
                            "variable": [
                                {
                                    "id": "tenant",
                                    "key": "tenant",
                                    "value": "architecto",
                                    "description": "The tenant."
                                },
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": 1,
                                    "description": "The ID of the message."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [
                                {
                                    "key": "cache-control",
                                    "value": "no-cache, private"
                                },
                                {
                                    "key": "content-type",
                                    "value": "application\/json"
                                },
                                {
                                    "key": "access-control-allow-origin",
                                    "value": "*"
                                }
                            ],
                            "code": 401,
                            "body": "{\"message\":\"Unauthenticated.\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "List attachments for a specific message",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/external\/tenants\/:tenant\/messages\/:message_id\/attachments",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/external\/tenants\/:tenant\/messages\/:message_id\/attachments",
                            "variable": [
                                {
                                    "id": "tenant",
                                    "key": "tenant",
                                    "value": "architecto",
                                    "description": "The tenant."
                                },
                                {
                                    "id": "message_id",
                                    "key": "message_id",
                                    "value": 1,
                                    "description": "The ID of the message."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [
                                {
                                    "key": "cache-control",
                                    "value": "no-cache, private"
                                },
                                {
                                    "key": "content-type",
                                    "value": "application\/json"
                                },
                                {
                                    "key": "access-control-allow-origin",
                                    "value": "*"
                                }
                            ],
                            "code": 401,
                            "body": "{\"message\":\"Unauthenticated.\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Download a specific attachment (decrypted from local storage or live service)",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/external\/tenants\/:tenant\/messages\/:message\/attachments\/:attachment",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/external\/tenants\/:tenant\/messages\/:message\/attachments\/:attachment",
                            "variable": [
                                {
                                    "id": "tenant",
                                    "key": "tenant",
                                    "value": "architecto",
                                    "description": "The tenant."
                                },
                                {
                                    "id": "message",
                                    "key": "message",
                                    "value": 1,
                                    "description": "The message."
                                },
                                {
                                    "id": "attachment",
                                    "key": "attachment",
                                    "value": "architecto",
                                    "description": "The attachment."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [
                                {
                                    "key": "cache-control",
                                    "value": "no-cache, private"
                                },
                                {
                                    "key": "content-type",
                                    "value": "application\/json"
                                },
                                {
                                    "key": "access-control-allow-origin",
                                    "value": "*"
                                }
                            ],
                            "code": 401,
                            "body": "{\"message\":\"Unauthenticated.\"}",
                            "name": ""
                        }
                    ]
                }
            ]
        }
    ],
    "auth": {
        "type": "bearer",
        "bearer": [
            {
                "key": "Authorization",
                "type": "string"
            }
        ]
    }
}