{
    "openapi": "3.1.0",
    "info": {
        "title": "GetApi",
        "version": "0.0.1",
        "description": "## Authentication\n\nAll API endpoints require authentication. Include your API key in every request using **one** of the following methods:\n\n**Option 1 \u2014 X-Api-Key header (recommended)**\n```\nX-Api-Key: ga_live_xxxxxxxxxxxxxxxxxxxx\n```\n\n**Option 2 \u2014 Bearer token**\n```\nAuthorization: Bearer ga_live_xxxxxxxxxxxxxxxxxxxx\n```\n\nYou can generate and manage API keys in your [dashboard](https://getapi.nl/dashboard)."
    },
    "servers": [
        {
            "url": "https://api.getapi.nl/api/",
            "description": "GetAPI"
        }
    ],
    "security": [
        {
            "ApiKeyAuth": []
        },
        {
            "BearerAuth": []
        },
        {
            "ApiKeyAuth": []
        },
        {
            "BearerAuth": []
        }
    ],
    "paths": {
        "/v1/cbs/sbi/lookup": {
            "get": {
                "operationId": "cbs.sbi",
                "description": "Returns the title, description, level and full classification path for a single SBI code.\nAccepts both the dotted CBS format (`64.92.3`) and the numeric format (`64923`).\n\nSource: [CBS Standaard Bedrijfsindeling 2025](https://www.cbs.nl/sbi)\nData update: run `php artisan sbi:import` to refresh the local dataset.",
                "summary": "SBI code lookup",
                "tags": [
                    "CBS - SBI Codes",
                    "Sbi"
                ],
                "parameters": [
                    {
                        "name": "code",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^[A-Za-z0-9][A-Za-z0-9.]*$",
                            "minLength": 1,
                            "maxLength": 12
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "SBI code found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "integer",
                                    "const": 200,
                                    "examples": [
                                        {
                                            "found": true,
                                            "code": "64.92.3",
                                            "code_numeric": "64923",
                                            "title": "Hypotheekverstrekkers",
                                            "description": null,
                                            "level": 5,
                                            "path": [
                                                {
                                                    "code": "64",
                                                    "code_numeric": "64",
                                                    "title": "Financi\u00eble dienstverlening (geen verzekeringen en pensioenfondsen)"
                                                },
                                                {
                                                    "code": "64.9",
                                                    "code_numeric": "649",
                                                    "title": "Financi\u00eble dienstverlening (geen verzekeringen en pensioenfondsen), overig"
                                                },
                                                {
                                                    "code": "64.92",
                                                    "code_numeric": "6492",
                                                    "title": "Overige kredietverstrekking"
                                                },
                                                {
                                                    "code": "64.92.3",
                                                    "code_numeric": "64923",
                                                    "title": "Hypotheekverstrekkers"
                                                }
                                            ]
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    },
                    "404": {
                        "description": "SBI code not found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "string",
                                    "examples": [
                                        {
                                            "found": false,
                                            "code": "99.99.9",
                                            "code_numeric": "99999",
                                            "title": null,
                                            "description": null,
                                            "level": null,
                                            "path": []
                                        }
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "components": {
        "securitySchemes": {
            "ApiKeyAuth": {
                "type": "apiKey",
                "in": "header",
                "name": "X-Api-Key"
            },
            "BearerAuth": {
                "type": "http",
                "scheme": "bearer"
            }
        },
        "responses": {
            "ValidationException": {
                "description": "Validation error",
                "content": {
                    "application/json": {
                        "schema": {
                            "type": "object",
                            "properties": {
                                "message": {
                                    "type": "string",
                                    "description": "Errors overview."
                                },
                                "errors": {
                                    "type": "object",
                                    "description": "A detailed description of each field that failed validation.",
                                    "additionalProperties": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    }
                                }
                            },
                            "required": [
                                "message",
                                "errors"
                            ]
                        }
                    }
                }
            }
        }
    }
}