{"openapi":"3.1.0","info":{"title":"Plastic Millionaire cleanup quotes","version":"1.0.0","description":"Plastic Millionaire is a trash cleanup crew for hire in Bali and Lombok. We clear beaches, rivers, illegal dump sites, land and properties of plastic and other trash, for businesses and individuals. Request a free quote with photos or videos of the site. No authentication.","contact":{"email":"hi@plasticmillionaire.com","url":"https://plasticmillionaire.com"}},"servers":[{"url":"https://plasticmillionaire.com"}],"paths":{"/api/quotes":{"post":{"operationId":"requestQuote","summary":"Request a cleanup quote","description":"Send at least one photo or video: `media` files (multipart), inline `media` (JSON), or `media_urls`. Photos and videos: up to 10 files, under 95 MB together. Limited to 5 per minute.","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200,"description":"Name of the person asking"},"email":{"description":"Required when contact_method is email. If given, we also send a confirmation there.","type":"string","maxLength":320,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"whatsapp":{"description":"WhatsApp number with country code. Required when contact_method is whatsapp.","type":"string","pattern":"^\\+?[0-9 ()-]{7,20}$"},"contact_method":{"type":"string","enum":["whatsapp","email"],"description":"How the person wants our reply"},"area":{"type":"string","enum":["bali","lombok"],"description":"The island the site is on"},"location":{"type":"string","minLength":1,"maxLength":500,"description":"Where the site is, such as a village, beach name or address"},"maps_url":{"description":"A Google Maps link to the spot","type":"string","maxLength":2000,"format":"uri"},"site_type":{"type":"string","enum":["beach","river","dump","property","event","other"],"description":"What needs cleaning"},"timing":{"description":"When they'd like it done","type":"string","maxLength":500},"details":{"description":"Anything else, such as how much trash, access, or deadlines","type":"string","maxLength":5000},"media":{"description":"Photos and videos of the site: up to 10 files, under 95 MB together, JPEG, PNG, WebP, HEIC, HEIF, MP4, MOV, WebM. Files in multipart/form-data; in JSON, inline base64 objects of under 10 MB each, and a JSON request under 25 MB in all.","type":"array","items":{"anyOf":[{"type":"string","format":"binary","description":"A file (multipart/form-data only)"},{"type":"object","properties":{"filename":{"type":"string","maxLength":200},"content_type":{"type":"string","enum":["image/jpeg","image/png","image/webp","image/heic","image/heif","video/mp4","video/quicktime","video/webm"]},"data_base64":{"type":"string","maxLength":13981014}},"required":["filename","content_type","data_base64"]}]}},"media_urls":{"description":"Links to photos and videos that are online; each must report its size (Content-Length)","maxItems":10,"type":"array","items":{"type":"string","format":"uri"}}},"required":["name","contact_method","area","location","site_type"]},"encoding":{"media":{"contentType":"image/jpeg, image/png, image/webp, image/heic, image/heif, video/mp4, video/quicktime, video/webm"}}},"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200,"description":"Name of the person asking"},"email":{"description":"Required when contact_method is email. If given, we also send a confirmation there.","type":"string","maxLength":320,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"whatsapp":{"description":"WhatsApp number with country code. Required when contact_method is whatsapp.","type":"string","pattern":"^\\+?[0-9 ()-]{7,20}$"},"contact_method":{"type":"string","enum":["whatsapp","email"],"description":"How the person wants our reply"},"area":{"type":"string","enum":["bali","lombok"],"description":"The island the site is on"},"location":{"type":"string","minLength":1,"maxLength":500,"description":"Where the site is, such as a village, beach name or address"},"maps_url":{"description":"A Google Maps link to the spot","type":"string","maxLength":2000,"format":"uri"},"site_type":{"type":"string","enum":["beach","river","dump","property","event","other"],"description":"What needs cleaning"},"timing":{"description":"When they'd like it done","type":"string","maxLength":500},"details":{"description":"Anything else, such as how much trash, access, or deadlines","type":"string","maxLength":5000},"media":{"description":"Photos and videos of the site: up to 10 files, under 95 MB together, JPEG, PNG, WebP, HEIC, HEIF, MP4, MOV, WebM. Files in multipart/form-data; in JSON, inline base64 objects of under 10 MB each, and a JSON request under 25 MB in all.","type":"array","items":{"anyOf":[{"type":"string","format":"binary","description":"A file (multipart/form-data only)"},{"type":"object","properties":{"filename":{"type":"string","maxLength":200},"content_type":{"type":"string","enum":["image/jpeg","image/png","image/webp","image/heic","image/heif","video/mp4","video/quicktime","video/webm"]},"data_base64":{"type":"string","maxLength":13981014}},"required":["filename","content_type","data_base64"]}]}},"media_urls":{"description":"Links to photos and videos that are online; each must report its size (Content-Length)","maxItems":10,"type":"array","items":{"type":"string","format":"uri"}}},"required":["name","contact_method","area","location","site_type"]}}}},"responses":{"201":{"description":"Received","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Reference for the request, like PM-7F3K9Q"},"media_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"message":{"type":"string"}},"required":["id","media_count","message"],"additionalProperties":false}}}},"400":{"description":"Missing or invalid details","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"fields":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"},"description":"Problem with each field, by name"}},"required":["error","fields"],"additionalProperties":false}}}},"413":{"description":"JSON request too large","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"fields":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"},"description":"Problem with each field, by name"}},"required":["error","fields"],"additionalProperties":false}}}},"415":{"description":"Not multipart or JSON","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"fields":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"},"description":"Problem with each field, by name"}},"required":["error","fields"],"additionalProperties":false}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"fields":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"},"description":"Problem with each field, by name"}},"required":["error","fields"],"additionalProperties":false}}}}}}}}}