{
    "openapi": "3.1.2",
    "info": {
        "title": "Axiacore Contact API",
        "version": "1.0.0",
        "description": "Axiacore builds custom software and AI for established businesses that need to connect their systems, cut manual work, or improve how they serve customers. Start with a free 30-minute review of one workflow."
    },
    "servers": [{ "url": "/" }],
    "paths": {
        "/api/v1/contact/": {
            "post": {
                "operationId": "requestWorkflowReview",
                "summary": "Request a free workflow review",
                "description": "Send one business inquiry for the Axiacore team to review. When acting on someone's behalf, get their approval to send the request and share their contact details. Include only information they approve sharing for this inquiry.",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": { "$ref": "#/components/schemas/ContactRequest" },
                            "example": {
                                "full_name": "Jordan Rivera",
                                "email": "jordan@example.com",
                                "company_name": "Example Distribution",
                                "description": "Our dispatch team tracks about 200 delivery exceptions a week in spreadsheets. We want to pull exceptions from our ERP, assign follow-up, and cut resolution time. We'd like to pilot it next quarter.",
                                "consent_to_contact": true
                            }
                        }
                    }
                },
                "responses": {
                    "202": {
                        "description": "Request received for review. Repeating the same request returns the same receipt.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": ["status", "receipt"],
                                    "properties": {
                                        "status": { "const": "accepted" },
                                        "receipt": { "type": "string", "format": "uuid" }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid JSON, contact details, or consent. Field-level validation errors are included when available.",
                        "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ContactError" } } }
                    },
                    "405": {
                        "description": "Method not allowed. Submit the inquiry with POST.",
                        "headers": { "Allow": { "schema": { "const": "POST" } } },
                        "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ContactError" } } }
                    },
                    "413": {
                        "description": "The request body exceeds 8192 bytes.",
                        "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ContactError" } } }
                    },
                    "415": {
                        "description": "The request must use Content-Type application/json.",
                        "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ContactError" } } }
                    },
                    "422": {
                        "description": "The inquiry could not be accepted. Use the website contact form if you need help submitting.",
                        "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ContactError" } } }
                    },
                    "429": {
                        "description": "Request limit reached. Wait for the time in Retry-After before retrying.",
                        "headers": {
                            "Retry-After": { "schema": { "type": "integer", "minimum": 1 }, "description": "Seconds to wait." }
                        },
                        "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ContactError" } } }
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "ContactRequest": {
                "type": "object",
                "additionalProperties": false,
                "required": ["full_name", "email", "company_name", "description", "consent_to_contact"],
                "properties": {
                    "full_name": { "type": "string", "minLength": 1, "maxLength": 150 },
                    "email": {
                        "type": "string",
                        "format": "email",
                        "maxLength": 150,
                        "description": "The person's reply address with a public domain. Use a work email if available."
                    },
                    "company_name": { "type": "string", "minLength": 1, "maxLength": 150 },
                    "mobile_number": {
                        "type": "string",
                        "maxLength": 20,
                        "description": "Include a phone number only if the person wants a call."
                    },
                    "description": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 512,
                        "description": "Describe one workflow, what slows it down, the tools involved, and what you want to improve. Include volume, timeline, or budget if known."
                    },
                    "consent_to_contact": {
                        "type": "boolean",
                        "const": true,
                        "description": "The person has approved sending this inquiry and being contacted by Axiacore about it."
                    }
                }
            },
            "ContactError": {
                "type": "object",
                "required": ["error"],
                "properties": {
                    "error": { "type": "string" },
                    "fields": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "string" } } }
                }
            }
        }
    }
}
