{"openapi":"3.1.0","info":{"title":"Brandon Lai visitor actions","version":"1.1.0","description":"Public profile, website assessment and case study; owner-approved free concept requests with email verification; keyed enquiries. No appointment booking, purchase or arbitrary execution. Read /api/docs before submitting personal data."},"servers":[{"url":"https://brandonlai.dev"}],"components":{"securitySchemes":{"botKey":{"type":"http","scheme":"bearer","description":"Access key supplied by Brandon for submitting and retrieving your enquiries."}},"schemas":{"MakeoverReceipt":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"received":{"type":"boolean"},"verified":{"type":"boolean"},"verification":{"$ref":"#/components/schemas/Verification"}}},"Verification":{"type":"object","properties":{"state":{"enum":["sent","unavailable","daily_limit","unverified","verified"]},"expires":{"type":["integer","null"],"description":"Unix milliseconds; code valid for two hours."},"next_send":{"type":["integer","null"],"description":"Unix milliseconds; earliest next email after rolling24hours."},"guesses_left":{"type":"integer","minimum":0}}},"Task":{"type":"object","required":["id","status","message","answer","created","expires","poll"],"properties":{"id":{"type":"string","format":"uuid"},"status":{"enum":["queued","working","completed","needs_human","failed","cancelled"]},"message":{"type":"string"},"answer":{"type":["string","null"]},"created":{"type":"string","format":"date-time"},"expires":{"type":"string","format":"date-time"},"poll":{"type":"string"}}}}},"paths":{"/api/site":{"get":{"operationId":"readPublicProfile","summary":"Read public homepage facts and capabilities","responses":{"200":{"description":"Public profile","content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"Rate limit","content":{"application/json":{"schema":{"type":"object"}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds to wait"}}},"503":{"description":"Storage or service unavailable; retry later","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/work/index.md":{"get":{"operationId":"readFeaturedWork","summary":"Read the case study without downloading video","responses":{"200":{"description":"Case study Markdown","content":{"text/markdown":{"schema":{"type":"string"}}}}}}},"/website-check/index.md":{"get":{"operationId":"readWebsiteAssessment","summary":"Read the website-check calculators; work them out locally without sharing answers","responses":{"200":{"description":"Assessment Markdown","content":{"text/markdown":{"schema":{"type":"string"}}}}}}},"/api/makeovers":{"post":{"operationId":"requestConceptMakeover","summary":"Owner-approved free concept request and verification email attempt","description":"Obtain explicit agreement to share the owner’s website/email and receive concept-related emails. Store id and receipt key privately. Manual review; no guaranteed response or turnaround. Inspect verification.state independently of received:true. One code email/address/rolling24hours; code expires after two hours.","parameters":[{"in":"header","name":"Origin","required":true,"schema":{"type":"string","const":"https://brandonlai.dev"},"description":"Use the site origin; never add this header to keyed enquiry operations."},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string","pattern":"^[a-f0-9]{64}$"},"description":"Cryptographically random private receipt key. Reuse the same key for identical creation retries and every operation on this request. Never put in a URL."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"website":{"type":"string","maxLength":2048,"description":"Public HTTP(S) website; no credentials, custom port or local/private hostname."},"email":{"type":"string","format":"email","maxLength":254},"consent":{"const":true},"goal":{"type":"string","maxLength":1000},"answers":{"type":"object","additionalProperties":false,"required":["clarity","action","takeaway","proof","followup","measurement"],"properties":{"clarity":{"enum":["yes","partly","no"]},"action":{"enum":["yes","partly","no"]},"takeaway":{"enum":["yes","partly","no"]},"proof":{"enum":["yes","partly","no"]},"followup":{"enum":["yes","partly","no"]},"measurement":{"enum":["yes","partly","no"]}}}},"required":["website","email","consent"]}}}},"responses":{"200":{"description":"Existing identical request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MakeoverReceipt"}}}},"201":{"description":"Saved request; inspect verification delivery state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MakeoverReceipt"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"type":"object"}}}},"403":{"description":"Submit from the site origin","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Request not found or receipt key does not match","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"Same receipt key with changed content","content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"Rate limit","content":{"application/json":{"schema":{"type":"object"}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds to wait"}}},"503":{"description":"Storage or service unavailable; retry later","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/makeovers/{id}/status":{"post":{"operationId":"readConceptMakeoverStatus","summary":"Read your receipt’s email verification state when needed","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}},{"in":"header","name":"Origin","required":true,"schema":{"type":"string","const":"https://brandonlai.dev"},"description":"Use the site origin; never add this header to keyed enquiry operations."},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string","pattern":"^[a-f0-9]{64}$"},"description":"Cryptographically random private receipt key. Reuse the same key for identical creation retries and every operation on this request. Never put in a URL."}],"responses":{"200":{"description":"Receipt verification status","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MakeoverReceipt"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"type":"object"}}}},"403":{"description":"Submit from the site origin","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Request not found or receipt key does not match","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"Same receipt key with changed content","content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"Rate limit","content":{"application/json":{"schema":{"type":"object"}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds to wait"}}},"503":{"description":"Storage or service unavailable; retry later","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/makeovers/{id}/verify":{"post":{"operationId":"verifyConceptMakeover","summary":"Submit the email code authorized by the owner; never guess","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}},{"in":"header","name":"Origin","required":true,"schema":{"type":"string","const":"https://brandonlai.dev"},"description":"Use the site origin; never add this header to keyed enquiry operations."},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string","pattern":"^[a-f0-9]{64}$"},"description":"Cryptographically random private receipt key. Reuse the same key for identical creation retries and every operation on this request. Never put in a URL."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"code":{"type":"string","pattern":"^[0-9]{6}$"}},"required":["code"]}}}},"responses":{"200":{"description":"Email verified; does not establish website ownership","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"type":"object"}}}},"403":{"description":"Submit from the site origin","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Request not found or receipt key does not match","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"Same receipt key with changed content","content":{"application/json":{"schema":{"type":"object"}}}},"410":{"description":"Code expired; request remains unverified","content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"Rate limited or no code guesses remain; do not guess or resend automatically","content":{"application/json":{"schema":{"type":"object"}}}},"503":{"description":"Storage or service unavailable; retry later","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/makeovers/{id}/code":{"post":{"operationId":"requestConceptMakeoverCode","summary":"Owner-approved code email attempt, only after the rolling24hour limit","description":"Do not resend automatically or change addresses to bypass limits. A failed delivery consumes the attempt. Inspect verification.state.","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}},{"in":"header","name":"Origin","required":true,"schema":{"type":"string","const":"https://brandonlai.dev"},"description":"Use the site origin; never add this header to keyed enquiry operations."},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string","pattern":"^[a-f0-9]{64}$"},"description":"Cryptographically random private receipt key. Reuse the same key for identical creation retries and every operation on this request. Never put in a URL."}],"responses":{"200":{"description":"Code delivery or limit status","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MakeoverReceipt"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"type":"object"}}}},"403":{"description":"Submit from the site origin","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Request not found or receipt key does not match","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"Same receipt key with changed content","content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"Rate limit","content":{"application/json":{"schema":{"type":"object"}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds to wait"}}},"503":{"description":"Storage or service unavailable; retry later","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/makeovers/{id}":{"delete":{"operationId":"withdrawConceptMakeover","summary":"Withdraw and delete only at the owner’s explicit request","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}},{"in":"header","name":"Origin","required":true,"schema":{"type":"string","const":"https://brandonlai.dev"},"description":"Use the site origin; never add this header to keyed enquiry operations."},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string","pattern":"^[a-f0-9]{64}$"},"description":"Cryptographically random private receipt key. Reuse the same key for identical creation retries and every operation on this request. Never put in a URL."}],"responses":{"200":{"description":"Withdrawal acknowledged; missing and unmatched keys return the same acknowledgement","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"type":"object"}}}},"403":{"description":"Submit from the site origin","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Request not found or receipt key does not match","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"Same receipt key with changed content","content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"Rate limit","content":{"application/json":{"schema":{"type":"object"}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds to wait"}}},"503":{"description":"Storage or service unavailable; retry later","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/bot/tasks":{"post":{"security":[{"botKey":[]}],"operationId":"submitEnquiry","summary":"Visitor key: submit an enquiry or request draft next steps","parameters":[{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,80}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"message":{"type":"string","minLength":1,"maxLength":4000}},"required":["message"]}}}},"responses":{"200":{"description":"Existing task for identical idempotent request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"}}}},"202":{"description":"Queued task; poll with same key after10seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing, expired or revoked key","content":{"application/json":{"schema":{"type":"object"}}}},"403":{"description":"Operation not permitted","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Not found or not yours","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"Request conflicts with the current enquiry","content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"Rate limit","content":{"application/json":{"schema":{"type":"object"}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds to wait"}}},"503":{"description":"Storage or service unavailable; retry later","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/bot/tasks/{id}":{"get":{"security":[{"botKey":[]}],"operationId":"readOwnTask","summary":"Visitor key: read own task and answer","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Own task and answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing, expired or revoked key","content":{"application/json":{"schema":{"type":"object"}}}},"403":{"description":"Operation not permitted","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Not found or not yours","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"Request conflicts with the current enquiry","content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"Rate limit","content":{"application/json":{"schema":{"type":"object"}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds to wait"}}},"503":{"description":"Storage or service unavailable; retry later","content":{"application/json":{"schema":{"type":"object"}}}}}},"delete":{"security":[{"botKey":[]}],"operationId":"cancelOwnTask","summary":"Visitor key: cancel own pending task","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Cancelled task","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing, expired or revoked key","content":{"application/json":{"schema":{"type":"object"}}}},"403":{"description":"Operation not permitted","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Not found or not yours","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"Request conflicts with the current enquiry","content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"Rate limit","content":{"application/json":{"schema":{"type":"object"}}},"headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds to wait"}}},"503":{"description":"Storage or service unavailable; retry later","content":{"application/json":{"schema":{"type":"object"}}}}}}}}}