{"openapi":"3.1.0","info":{"title":"API Documentation","version":"v1","description":"Integrate facilita.tools directly into your systems via our REST API."},"servers":[{"url":"https://facilita.tools/api/v1","description":"facilita.tools"}],"security":[{"ApiKeyAuth":[]}],"tags":[{"name":"CPF"},{"name":"CNPJ Lookup"},{"name":"Pix"},{"name":"NF-e"},{"name":"Utils"},{"name":"Calc"},{"name":"QR Code"},{"name":"Status"},{"name":"Chat"}],"paths":{"/cpf/validate":{"post":{"tags":["CPF"],"operationId":"validateCpf","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiEnvelope"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"summary":"Validate CPF","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CpfValidateRequest"}}}}}},"/cpf/generate":{"get":{"tags":["CPF"],"operationId":"generateCpf","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiEnvelope"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"summary":"CPF Generator","parameters":[{"name":"quantity","in":"query","required":false,"schema":{"type":"integer"}},{"name":"formatted","in":"query","required":false,"schema":{"type":"boolean"}}]}},"/cnpj/validate":{"post":{"tags":["CNPJ Lookup"],"operationId":"validateCnpj","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiEnvelope"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"summary":"Validate CNPJ","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CnpjValidateRequest"}}}}}},"/cnpj/generate":{"get":{"tags":["CNPJ Lookup"],"operationId":"generateCnpj","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiEnvelope"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"summary":"CNPJ Generator","parameters":[{"name":"quantity","in":"query","required":false,"schema":{"type":"integer"}},{"name":"formatted","in":"query","required":false,"schema":{"type":"boolean"}}]}},"/cnpj-alphanumeric/validate":{"post":{"tags":["CNPJ Lookup"],"operationId":"validateAlphanumericCnpj","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiEnvelope"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"summary":"Alphanumeric CNPJ Validator","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CnpjValidateRequest"}}}}}},"/cnpj-alphanumeric/generate":{"get":{"tags":["CNPJ Lookup"],"operationId":"generateAlphanumericCnpj","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiEnvelope"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"summary":"Alphanumeric CNPJ Generator","parameters":[{"name":"quantity","in":"query","required":false,"schema":{"type":"integer"}},{"name":"formatted","in":"query","required":false,"schema":{"type":"boolean"}}]}},"/pix/key/validate":{"post":{"tags":["Pix"],"operationId":"validatePixKey","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiEnvelope"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValueRequest"}}}}}},"/pix/key/identify":{"post":{"tags":["Pix"],"operationId":"identifyPixKey","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiEnvelope"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValueRequest"}}}}}},"/pix/evp/generate":{"get":{"tags":["Pix"],"operationId":"generatePixEvp","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiEnvelope"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"parameters":[{"name":"quantity","in":"query","required":false,"schema":{"type":"integer"}}]}},"/nfe/key/validate":{"post":{"tags":["NF-e"],"operationId":"validateNfeKey","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiEnvelope"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValueRequest"}}}}}},"/nfe/key/parse":{"post":{"tags":["NF-e"],"operationId":"parseNfeKey","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiEnvelope"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValueRequest"}}}}}},"/nfe/key/generate":{"get":{"tags":["NF-e"],"operationId":"generateNfeKey","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiEnvelope"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/nfe/uf-codes":{"get":{"tags":["NF-e"],"operationId":"listNfeUfCodes","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiEnvelope"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/utils/password/generate":{"get":{"tags":["Utils"],"operationId":"generatePassword","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiEnvelope"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"summary":"Password Generator","parameters":[{"name":"length","in":"query","required":false,"schema":{"type":"integer"}},{"name":"quantity","in":"query","required":false,"schema":{"type":"integer"}}]}},"/utils/text/count":{"post":{"tags":["Utils"],"operationId":"countText","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiEnvelope"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TextRequest"}}}}}},"/utils/text/convert":{"post":{"tags":["Utils"],"operationId":"convertText","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiEnvelope"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TextRequest"}}}}}},"/utils/number-base/convert":{"post":{"tags":["Utils"],"operationId":"convertNumberBase","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiEnvelope"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NumberBaseRequest"}}}}}},"/utils/roman":{"get":{"tags":["Utils"],"operationId":"convertRoman","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiEnvelope"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"parameters":[{"name":"number","in":"query","required":false,"schema":{"type":"integer"}},{"name":"roman","in":"query","required":false,"schema":{"type":"string"}}]}},"/utils/network/my-ip":{"get":{"tags":["Utils"],"operationId":"getMyIp","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiEnvelope"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/calc/bmi":{"post":{"tags":["Calc"],"operationId":"calculateBmi","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiEnvelope"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiEnvelope"}}}}}},"/calc/percentage":{"get":{"tags":["Calc"],"operationId":"calculatePercentage","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiEnvelope"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"parameters":[{"name":"value","in":"query","required":false,"schema":{"type":"number"}},{"name":"percentage","in":"query","required":false,"schema":{"type":"number"}}]}},"/calc/percentage/what-percent":{"get":{"tags":["Calc"],"operationId":"calculateWhatPercent","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiEnvelope"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/calc/percentage/change":{"get":{"tags":["Calc"],"operationId":"calculatePercentageChange","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiEnvelope"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/calc/hours":{"post":{"tags":["Calc"],"operationId":"calculateHours","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiEnvelope"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiEnvelope"}}}}}},"/calc/net-salary":{"post":{"tags":["Calc"],"operationId":"calculateNetSalary","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiEnvelope"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiEnvelope"}}}}}},"/calc/das-mei":{"post":{"tags":["Calc"],"operationId":"calculateDasMei","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiEnvelope"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiEnvelope"}}}}}},"/qrcode/generate":{"post":{"tags":["QR Code"],"operationId":"generateQrCode","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiEnvelope"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiEnvelope"}}}}}},"/ip":{"get":{"tags":["Status"],"operationId":"getRequesterIp","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiEnvelope"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/status":{"get":{"tags":["Status"],"operationId":"getApiStatus","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiEnvelope"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/chat/catalog":{"get":{"tags":["Chat"],"operationId":"getChatCatalog","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiEnvelope"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"parameters":[{"name":"culture","in":"query","required":false,"schema":{"type":"string"}}]}},"/chat/turn":{"post":{"tags":["Chat"],"operationId":"runChatTurn","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiEnvelope"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatTurnRequest"}}}}}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-Api-Key"}},"schemas":{"ApiEnvelope":{"type":"object","additionalProperties":true,"properties":{"success":{"type":"boolean"},"data":{"type":"object"}}},"ApiError":{"type":"object","additionalProperties":true,"properties":{"success":{"type":"boolean"},"error":{"type":"object"}}},"CpfValidateRequest":{"type":"object","additionalProperties":true,"properties":{"cpf":{"type":"string"}}},"CnpjValidateRequest":{"type":"object","additionalProperties":true,"properties":{"cnpj":{"type":"string"}}},"ValueRequest":{"type":"object","additionalProperties":true,"properties":{"value":{"type":"string"}}},"TextRequest":{"type":"object","additionalProperties":true,"properties":{"text":{"type":"string"}}},"NumberBaseRequest":{"type":"object","additionalProperties":true,"properties":{"value":{"type":"string"},"fromBase":{"type":"integer"}}},"ChatTurnRequest":{"type":"object","additionalProperties":true,"properties":{"message":{"type":"string"},"culture":{"type":"string"}}}}}}