{
    "variable": [
        {
            "id": "baseUrl",
            "key": "baseUrl",
            "type": "string",
            "name": "string",
            "value": "https:\/\/api.ciberticket.co"
        }
    ],
    "info": {
        "name": "CiberTicket API Documentation",
        "_postman_id": "ee6a16de-7bb9-4daf-b5b7-4949fe4d1b40",
        "description": "",
        "schema": "https:\/\/schema.getpostman.com\/json\/collection\/v2.1.0\/collection.json"
    },
    "item": [
        {
            "name": "Authentication",
            "description": "",
            "item": [
                {
                    "name": "Login",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/login",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/login"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "X-Tenant",
                                "value": "string optional Team\/Tenant deseado (si se env\u00eda, fuerza login en tenant)."
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"login\":\"edinson.vasquez@example.com\",\"password\":\"secret123\",\"remember\":true}"
                        },
                        "description": "Inicia sesi\u00f3n sin requerir `guard`. Detecta autom\u00e1ticamente si usar `platform` o `tenant`.\nDevuelve token con abilities (guard\/team), roles y permisos, y todas las membres\u00edas del usuario.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"message\": \"Login successful\",\n  \"user\": { \"id\": 7, \"name\": \"Edinson\", \"email\": \"edinson.vasquez@example.com\" },\n  \"token\": \"47|...\",\n  \"guard\": \"platform\",\n  \"team_id\": null,\n  \"roles\": { \"platform\": [\"owner\"], \"tenant\": [] },\n  \"permissions\": { \"platform\": [\"core.owner.index\"], \"tenant\": [] },\n  \"memberships\": [\n    { \"tenant_id\": \"web\", \"tenant_name\": \"CiberLoto Web\", \"roles\": [\"admin\"], \"permissions\": [\"tenant.event.create\"] },\n    { \"tenant_id\": \"store-1\", \"tenant_name\": \"CiberSnacks Tienda 1\", \"roles\": [\"viewer\"], \"permissions\": [\"tenant.event.view\"] }\n  ]\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Core",
            "description": "",
            "item": [
                {
                    "name": "Owner - List all owners.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/core\/owner",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/core\/owner"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "This endpoint retrieves all users who have the \"owner\" role assigned."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "[\n  {\n    \"id\": 1,\n    \"name\": \"John\",\n    \"surname\": \"Doe\",\n    \"email\": \"john.doe@example.com\",\n    \"phone\": \"+57 3001234567\",\n    \"avatar_url\": \"https:\/\/example.com\/avatar.jpg\",\n    \"locale\": \"es\",\n    \"timezone\": \"America\/Bogota\",\n    \"status\": \"active\"\n  },\n  {\n    \"id\": 2,\n    \"name\": \"Jane\",\n    \"surname\": \"Smith\",\n    \"email\": \"jane.smith@example.com\",\n    \"phone\": \"+57 3019876543\",\n    \"avatar_url\": null,\n    \"locale\": \"en\",\n    \"timezone\": \"UTC\",\n    \"status\": \"active\"\n  }\n]",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Owner - Create a new Owner user",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/core\/owner",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/core\/owner"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"name\":\"John\",\"surname\":\"Doe\",\"email\":\"john.doe@example.com\",\"phone_code\":\"+57\",\"phone\":\"31812345678\",\"password\":\"myStrongP@ssw0rd\",\"avatar_url\":\"https:\\\/\\\/example.com\\\/avatar.jpg\",\"locale\":\"en\",\"timezone\":\"America\\\/New_York\",\"password_confirmation\":\"myStrongP@ssw0rd\"}"
                        },
                        "description": "This endpoint allows you to create a new **Owner** user.\nThe user is not yet associated with any tenant.\nBy default, the role `owner` will be assigned in the `tenant` guard."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 201,
                            "body": "{\n  \"message\": \"Owner successfully created\",\n  \"user\": {\n    \"id\": 1,\n    \"name\": \"John\",\n    \"surname\": \"Doe\",\n    \"email\": \"john.doe@example.com\",\n    \"phone_code\": \"+57\",\n    \"phone\": \"3181234567\",\n  },\n  \"roles\": [\"owner\"]\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Owner - Update an existing user.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/core\/owner\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/core\/owner\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "architecto",
                                    "description": "The ID of the owner."
                                }
                            ]
                        },
                        "method": "PUT",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"name\":\"John\",\"surname\":\"Doe\",\"email\":\"john.doe@example.com\",\"phone\":\"3001234567\",\"avatar_url\":\"https:\\\/\\\/example.com\\\/avatar.jpg\",\"locale\":\"en\",\"timezone\":\"UTC\",\"password\":\"password123\",\"password_confirmation\":\"password123\"}"
                        },
                        "description": "This endpoint allows updating an existing user.\nYou can change personal information, email, phone, avatar, locale, timezone,\nand optionally update the password."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 201,
                            "body": "{\n  \"message\": \"Owner successfully updated\",\n  \"user\": {\n    \"id\": 5,\n    \"name\": \"John\",\n    \"surname\": \"Doe\",\n    \"email\": \"john.doe@example.com\",\n    \"phone_code\": \"+57\",\n    \"phone\": \"3001234567\"\n  },\n  \"roles\": [\n    \"owner\"\n  ]\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\n    \"email\": [\n      \"The email has already been taken.\"\n    ]\n  }\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Owner - Show user by ID.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/core\/owner\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/core\/owner\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "1",
                                    "description": "The ID of the user."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "This endpoint retrieves the details of a specific user by their ID."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"id\": 1,\n  \"name\": \"John\",\n  \"surname\": \"Doe\",\n  \"email\": \"john.doe@example.com\",\n  \"phone\": \"+57 3001234567\",\n  \"avatar_url\": \"https:\/\/example.com\/avatar.jpg\",\n  \"locale\": \"es\",\n  \"timezone\": \"America\/Bogota\",\n  \"status\": \"active\",\n  \"created_at\": \"2025-01-15T10:00:00.000000Z\",\n  \"updated_at\": \"2025-02-20T14:35:00.000000Z\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"message\": \"No query results for model [App\\\\Models\\\\User] 999\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Owner - Delete (soft) a user.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/core\/owner\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/core\/owner\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "10",
                                    "description": "The ID of the user to delete."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "This endpoint marks an existing user as deleted by updating their `status` field to `deleted`.\nThe user record is not physically removed from the database."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"message\": \"Owner successfully deleted\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"message\": \"Owner not found or unauthorized.\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Tenant - Crear tenant (ASYNC provisioning)",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/core\/tenant",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/core\/tenant"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"id\":\"web\",\"domain\":\"web.cibertickets.co\",\"brand_name\":\"CiberTickets\",\"currency\":\"COP\",\"timezone\":\"America\\\/Bogota\",\"contact_email\":\"soporte@cibertickets.co\",\"logo_url\":\"https:\\\/\\\/www.gulgowski.com\\\/nihil-accusantium-harum-mollitia-modi-deserunt\",\"logo_light_url\":\"http:\\\/\\\/www.dubuque.net\\\/quo-omnis-nostrum-aut-adipisci\",\"logo_dark_url\":\"https:\\\/\\\/cronin.com\\\/incidunt-iure-odit-et-et-modi-ipsum.html\",\"favicon_url\":\"http:\\\/\\\/www.predovic.biz\\\/consequatur-aut-dolores-enim-non-facere-tempora.html\",\"font_heading\":\"t\",\"font_body\":\"u\",\"rounded_ui\":false,\"border_radius\":3,\"brand_domain\":\"w\",\"brand_support_url\":\"https:\\\/\\\/labadie.com\\\/deleniti-distinctio-eum-doloremque-id-aut.html\",\"social_links\":{\"instagram\":\"q\",\"facebook\":\"b\",\"x\":\"e\",\"tiktok\":\"w\",\"youtube\":\"t\"}}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 202,
                            "body": "{\n  \"message\": \"Tenant provisioning queued\",\n  \"data\": {\n    \"id\": \"web\",\n    \"domain\": \"web.cibertickets.co\",\n    \"owner_id\": 7,\n    \"provisioning\": \"queued\"\n  }\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "User Tenant - List users across all tenants managed by the owner (including per-tenant roles)",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/core\/tenant\/users\/index",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/core\/tenant\/users\/index"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Returns all users linked to the tenants that the authenticated platform user manages,\nand for each user, the list of those tenants with the user's roles within each tenant."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"message\": \"Users and tenant roles retrieved\",\n  \"data\": [\n    {\n      \"id\": 15,\n      \"name\": \"John\",\n      \"surname\": \"Doe\",\n      \"email\": \"john.doe@example.com\",\n      \"status\": \"active\",\n      \"tenants\": [\n        { \"id\": \"academy-1\", \"name\": \"AleAcademy\", \"role_hint\": \"admin\", \"roles\": [\"Administrative\",\"Coach\"] },\n        { \"id\": \"club-22\",   \"name\": \"City Club\",  \"role_hint\": \"viewer\",\"roles\": [\"Player\"] }\n      ]\n    }\n  ]\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "User Tenant - Create a user and assign per-tenant roles",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/core\/tenant\/users\/store",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/core\/tenant\/users\/store"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"name\":\"John\",\"surname\":\"Doe\",\"email\":\"john.doe@example.com\",\"password\":\"MyStr0ngP@ss\",\"tenants\":[\"architecto\"]}"
                        },
                        "description": "Creates a global user and links it to one or more tenants, assigning roles within each tenant.\nRoles must exist with guard `tenant` (e.g., admin, organizer, finance, scanner)."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 201,
                            "body": "{\n  \"message\": \"User created and roles assigned\",\n  \"data\": {\n    \"user\": {\n      \"id\": 101,\n      \"name\": \"John\",\n      \"surname\": \"Doe\",\n      \"email\": \"john.doe@example.com\",\n      \"status\": \"active\"\n    },\n    \"tenants\": [\n      { \"id\": \"academy-1\", \"name\": \"AleAcademy\", \"role_hint\": \"admin\", \"roles\": [\"admin\",\"organizer\"] },\n      { \"id\": \"club-22\",   \"name\": \"City Club\",  \"role_hint\": \"organizer\", \"roles\": [\"organizer\"] }\n    ]\n  }\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "User Tenant - Update a user and (optionally) per-tenant roles\/membership",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/core\/tenant\/users\/:userId\/update",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/core\/tenant\/users\/:userId\/update",
                            "variable": [
                                {
                                    "id": "userId",
                                    "key": "userId",
                                    "value": "1",
                                    "description": ""
                                },
                                {
                                    "id": "user",
                                    "key": "user",
                                    "value": "101",
                                    "description": "The user ID."
                                }
                            ]
                        },
                        "method": "PUT",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"name\":\"John\",\"surname\":\"Doe\",\"email\":\"john.doe@example.com\",\"password\":\"MyStr0ngP@ss\",\"tenants\":[\"architecto\"],\"detach_tenants\":[\"architecto\"],\"detach_tenants[]\":\"club-22\"}"
                        },
                        "description": "Updates basic user fields. Optionally syncs roles for specific tenants and\/or detaches the user\nfrom other tenants. Roles must exist with guard `tenant` (e.g., admin, organizer, finance, scanner)."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"message\": \"User updated\",\n  \"data\": {\n    \"user\": { \"id\": 101, \"name\": \"John\", \"surname\": \"Doe\", \"email\": \"john.doe@example.com\", \"status\": \"active\" },\n    \"tenants\": [\n      { \"id\": \"academy-1\", \"name\": \"AleAcademy\", \"role_hint\": \"admin\", \"roles\": [\"admin\",\"organizer\"] },\n      { \"id\": \"club-22\",   \"name\": \"City Club\",  \"role_hint\": \"viewer\", \"roles\": [\"organizer\"] }\n    ]\n  }\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "User Tenant - Archive (soft-delete) a user by status",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/core\/tenant\/users\/:userId\/destroy",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/core\/tenant\/users\/:userId\/destroy",
                            "variable": [
                                {
                                    "id": "userId",
                                    "key": "userId",
                                    "value": "1",
                                    "description": ""
                                },
                                {
                                    "id": "user",
                                    "key": "user",
                                    "value": "101",
                                    "description": "The user ID."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Marks the user as deleted (`status = 'deleted'`). Due to the global scope\n(NonDeletedScope), archived users stop appearing in listings by default.\nNo tenant memberships or roles are removed."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"message\": \"User archived\",\n  \"data\": {\n    \"user\": { \"id\": 101, \"name\": \"John\", \"surname\": \"Doe\", \"email\": \"john.doe@example.com\", \"status\": \"deleted\" }\n  }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"message\": \"User not found in your tenants.\"\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Endpoints",
            "description": "",
            "item": [
                {
                    "name": "Handles the API request and renders the Swagger documentation view.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/documentation",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/documentation"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [
                                {
                                    "key": "cache-control",
                                    "value": "no-cache, private"
                                },
                                {
                                    "key": "content-type",
                                    "value": "application\/json"
                                },
                                {
                                    "key": "vary",
                                    "value": "Origin"
                                }
                            ],
                            "code": 500,
                            "body": "{\"status\":\"error\",\"message\":\"Route [l5-swagger.default.docs] not defined.\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Handles the OAuth2 callback and retrieves the required file for the redirect.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/oauth2-callback",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/oauth2-callback"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [
                                {
                                    "key": "content-type",
                                    "value": "text\/html; charset=UTF-8"
                                },
                                {
                                    "key": "cache-control",
                                    "value": "no-cache, private"
                                },
                                {
                                    "key": "vary",
                                    "value": "Origin"
                                }
                            ],
                            "code": 200,
                            "body": "<!doctype html>\n<html lang=\"en-US\">\n<head>\n    <title>Swagger UI: OAuth2 Redirect<\/title>\n<\/head>\n<body>\n<script>\n    'use strict';\n    function run () {\n        var oauth2 = window.opener.swaggerUIRedirectOauth2;\n        var sentState = oauth2.state;\n        var redirectUrl = oauth2.redirectUrl;\n        var isValid, qp, arr;\n\n        if (\/code|token|error\/.test(window.location.hash)) {\n            qp = window.location.hash.substring(1).replace('?', '&');\n        } else {\n            qp = location.search.substring(1);\n        }\n\n        arr = qp.split(\"&\");\n        arr.forEach(function (v,i,_arr) { _arr[i] = '\"' + v.replace('=', '\":\"') + '\"';});\n        qp = qp ? JSON.parse('{' + arr.join() + '}',\n                function (key, value) {\n                    return key === \"\" ? value : decodeURIComponent(value);\n                }\n        ) : {};\n\n        isValid = qp.state === sentState;\n\n        if ((\n          oauth2.auth.schema.get(\"flow\") === \"accessCode\" ||\n          oauth2.auth.schema.get(\"flow\") === \"authorizationCode\" ||\n          oauth2.auth.schema.get(\"flow\") === \"authorization_code\"\n        ) && !oauth2.auth.code) {\n            if (!isValid) {\n                oauth2.errCb({\n                    authId: oauth2.auth.name,\n                    source: \"auth\",\n                    level: \"warning\",\n                    message: \"Authorization may be unsafe, passed state was changed in server. The passed state wasn't returned from auth server.\"\n                });\n            }\n\n            if (qp.code) {\n                delete oauth2.state;\n                oauth2.auth.code = qp.code;\n                oauth2.callback({auth: oauth2.auth, redirectUrl: redirectUrl});\n            } else {\n                let oauthErrorMsg;\n                if (qp.error) {\n                    oauthErrorMsg = \"[\"+qp.error+\"]: \" +\n                        (qp.error_description ? qp.error_description+ \". \" : \"no accessCode received from the server. \") +\n                        (qp.error_uri ? \"More info: \"+qp.error_uri : \"\");\n                }\n\n                oauth2.errCb({\n                    authId: oauth2.auth.name,\n                    source: \"auth\",\n                    level: \"error\",\n                    message: oauthErrorMsg || \"[Authorization failed]: no accessCode received from the server.\"\n                });\n            }\n        } else {\n            oauth2.callback({auth: oauth2.auth, token: qp, isValid: isValid, redirectUrl: redirectUrl});\n        }\n        window.close();\n    }\n\n    if (document.readyState !== 'loading') {\n        run();\n    } else {\n        document.addEventListener('DOMContentLoaded', function () {\n            run();\n        });\n    }\n<\/script>\n<\/body>\n<\/html>\n",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "POST api\/logout",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/logout",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/logout"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": []
                },
                {
                    "name": "POST \/events\nPermiso requerido: tenant.event.create",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/event",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/event"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": []
                },
                {
                    "name": "GET \/events\/{id}\nPermiso requerido: tenant.event.show",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/event\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/event\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "architecto",
                                    "description": "The ID of the event."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [
                                {
                                    "key": "cache-control",
                                    "value": "no-cache, private"
                                },
                                {
                                    "key": "content-type",
                                    "value": "application\/json"
                                },
                                {
                                    "key": "vary",
                                    "value": "Origin"
                                }
                            ],
                            "code": 500,
                            "body": "{\"status\":\"error\",\"message\":\"Unauthenticated.\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "PUT\/PATCH \/events\/{id}\nPermiso requerido: tenant.event.update",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/event\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/event\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "architecto",
                                    "description": "The ID of the event."
                                }
                            ]
                        },
                        "method": "PUT",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": []
                },
                {
                    "name": "DELETE \/events\/{id}\nPermiso requerido: tenant.event.delete",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/event\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/event\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "architecto",
                                    "description": "The ID of the event."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "Tenant",
            "description": "",
            "item": [
                {
                    "name": "Settings - Visual Configuration",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/settings",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/settings"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "X-Tenant",
                                "value": "string required El ID del tenant a consultar. Example: web"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Devuelve la configuraci\u00f3n visual del tenant (colores, logos, fuentes, etc.).",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"brand_name\": \"CiberTickets\",\n  \"currency\": \"COP\",\n  \"timezone\": \"America\/Bogota\",\n  \"contact_email\": \"soporte@cibertickets.co\",\n  \"logo\": {\n    \"default\": null,\n    \"light\": null,\n    \"dark\": null,\n    \"favicon\": null\n  },\n  \"colors\": {\n    \"primary\": \"#00E5FF\",\n    \"secondary\": \"#7C3AED\",\n    \"accent\": \"#22C55E\"\n  },\n  \"fonts\": {\n    \"heading\": \"Poppins\",\n    \"body\": \"Inter\"\n  },\n  \"theme_mode\": \"system\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Event - index",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/event",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/event"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "X-Tenant",
                                "value": "{tenant_id}"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "List all events in the current tenant.\nRequires permission: tenant.event.view"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"allowed\": true,\n  \"permission\": \"tenant.event.view\",\n  \"note\": \"You can list events in this tenant.\"\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        }
    ],
    "auth": {
        "type": "bearer",
        "bearer": [
            {
                "key": "Authorization",
                "type": "string"
            }
        ]
    }
}