{
    "success": true,
    "service": "MozeSMS API",
    "version": "2.0",
    "status": "operational",
    "documentation": {
        "authentication": {
            "header": "Authorization: Bearer {token}",
            "method": "Bearer Token",
            "obtain_token": "POST /auth/login"
        },
        "base_url": "https://apiv4.mozesms.com",
        "content_type": "application/json",
        "encoding": "UTF-8"
    },
    "endpoints": {
        "sms": [
            {
                "method": "POST",
                "path": "/sms/send",
                "description": "Envio de SMS individual",
                "authentication": "required",
                "parameters": [
                    "phone",
                    "message",
                    "sender_id"
                ]
            },
            {
                "method": "POST",
                "path": "/sms/bulk",
                "description": "Envio de SMS em massa",
                "authentication": "required",
                "parameters": [
                    "phones[]",
                    "message",
                    "sender_id"
                ]
            },
            {
                "method": "POST",
                "path": "/sms/schedule",
                "description": "Agendamento de SMS",
                "authentication": "required",
                "parameters": [
                    "phone",
                    "message",
                    "sender_id",
                    "scheduled_at"
                ]
            },
            {
                "method": "GET",
                "path": "/sms/status/:id",
                "description": "Consulta de status de envio",
                "authentication": "required"
            },
            {
                "method": "GET",
                "path": "/sms/history",
                "description": "Histórico de mensagens",
                "authentication": "required",
                "filters": [
                    "limit",
                    "offset",
                    "status",
                    "start_date",
                    "end_date"
                ]
            }
        ],
        "otp": [
            {
                "method": "POST",
                "path": "/otp/send",
                "description": "Envio de código OTP",
                "authentication": "required",
                "parameters": [
                    "phone",
                    "template",
                    "expires_in"
                ]
            },
            {
                "method": "POST",
                "path": "/otp/verify",
                "description": "Verificação de código OTP",
                "authentication": "required",
                "parameters": [
                    "session_id",
                    "code"
                ]
            },
            {
                "method": "GET",
                "path": "/otp/status/:id",
                "description": "Status de sessão OTP",
                "authentication": "required"
            },
            {
                "method": "POST",
                "path": "/otp/cancel/:id",
                "description": "Cancelar sessão OTP",
                "authentication": "required"
            },
            {
                "method": "GET",
                "path": "/otp/sessions",
                "description": "Listar sessões OTP",
                "authentication": "required",
                "filters": [
                    "limit",
                    "offset",
                    "status"
                ]
            },
            {
                "method": "GET",
                "path": "/otp/stats",
                "description": "Estatísticas de OTP",
                "authentication": "required"
            }
        ],
        "whatsapp": [
            {
                "method": "POST",
                "path": "/whatsapp/send",
                "description": "Envio de mensagem WhatsApp",
                "authentication": "required",
                "status": "coming_soon"
            }
        ],
        "logs": [
            {
                "method": "GET",
                "path": "/reports/sms",
                "description": "Relatório de SMS enviados",
                "authentication": "required",
                "filters": [
                    "start_date",
                    "end_date",
                    "status"
                ]
            },
            {
                "method": "GET",
                "path": "/reports/delivery",
                "description": "Relatório de entregas",
                "authentication": "required",
                "filters": [
                    "start_date",
                    "end_date"
                ]
            },
            {
                "method": "GET",
                "path": "/reports/summary",
                "description": "Resumo geral de envios",
                "authentication": "required"
            },
            {
                "method": "GET",
                "path": "/reports/by-status",
                "description": "Relatório agrupado por status",
                "authentication": "required"
            },
            {
                "method": "GET",
                "path": "/reports/costs",
                "description": "Relatório de custos",
                "authentication": "required",
                "filters": [
                    "start_date",
                    "end_date"
                ]
            }
        ]
    },
    "support": {
        "contact": "suporte@mozesms.com",
        "documentation": "https://docs.mozesms.com"
    }
}