{
    "variable": [
        {
            "id": "baseUrl",
            "key": "baseUrl",
            "type": "string",
            "name": "string",
            "value": "http:\/\/localhost"
        }
    ],
    "info": {
        "name": "ServicesHub.dev API Reference",
        "_postman_id": "54e96e07-105a-4384-b87d-25353789d310",
        "description": "",
        "schema": "https:\/\/schema.getpostman.com\/json\/collection\/v2.1.0\/collection.json"
    },
    "item": [
        {
            "name": "Endpoints",
            "description": "",
            "item": [
                {
                    "name": "GET api\/user",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/user",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/user"
                        },
                        "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": "Extract data from a document (OCR)",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/vision\/extract",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/vision\/extract"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "multipart\/form-data"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "formdata",
                            "formdata": [
                                {
                                    "key": "dpi",
                                    "value": "300",
                                    "type": "text",
                                    "description": "La resoluci\u00f3n para el procesamiento inicial. Min 72, Max 600. Default: 300."
                                },
                                {
                                    "key": "schema[amount]",
                                    "value": "Total amount paid",
                                    "type": "text",
                                    "description": ""
                                },
                                {
                                    "key": "schema_id",
                                    "value": "1",
                                    "type": "text",
                                    "description": "El ID de un esquema guardado en el sistema Vision."
                                },
                                {
                                    "key": "return_raw",
                                    "value": "",
                                    "type": "text",
                                    "description": "Si es verdadero, devuelve todo el texto encontrado en el documento sin procesar."
                                },
                                {
                                    "key": "file",
                                    "src": [],
                                    "type": "file"
                                }
                            ]
                        },
                        "description": "Process an image or PDF to extract structured information using AI providers."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n \"ok\": true,\n \"data\": {\n   \"amount\": \"1,500.00\",\n   \"currency\": \"MXN\",\n   \"date\": \"2026-03-26\"\n }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 401,
                            "body": "{\n \"ok\": false,\n \"error\": \"Missing X-Api-Key header\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n \"ok\": false,\n \"error\": \"Schema not found or unauthorized\"\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        }
    ],
    "auth": {
        "type": "apikey",
        "apikey": [
            {
                "key": "in",
                "value": "header",
                "type": "string"
            },
            {
                "key": "key",
                "value": "X-Api-Key",
                "type": "string"
            }
        ]
    }
}