{"openapi":"3.1.0","info":{"title":"AU business listing API for AI agents","version":"1.0.0","description":"AU (auau.live) is a free catalog of places and businesses for Russian-speaking people abroad (Serbia, Vietnam, Thailand, Portugal and other countries). An AI assistant can add a business or take over its existing card on behalf of the owner without any account, password or payment. Nothing is published until the owner confirms a 6-digit code sent by e-mail (by pressing the button in the letter or by giving the code to the assistant). New cards are then checked by a moderator. Listing and the business cabinet are free. Human-readable guide: https://auau.live/business/agents/"},"servers":[{"url":"https://auau.live"}],"paths":{"/api/agent/business/options/":{"get":{"operationId":"listOptions","summary":"Cities and categories a card can take","responses":{"200":{"description":"Lists of `city` values (country/city) and `category` slugs"}}}},"/api/agent/business/search/":{"get":{"operationId":"searchBusiness","summary":"Find a listed business before adding it","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":2},"description":"Name, address, site or phone"},{"name":"city","in":"query","required":false,"schema":{"type":"string"},"description":"e.g. rs/belgrade, vn/ho-chi-minh, pt/lisbon"}],"responses":{"200":{"description":"Matching cards with has_owner and how to claim each"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/agent/business/":{"post":{"operationId":"addBusiness","summary":"Add a new business; the code goes to owner_email","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewBusiness"}}}},"responses":{"201":{"description":"The code was e-mailed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodeSent"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"A card with this name exists in the city: claim it, or resend with force=true if it is a different business"},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/agent/business/claim/":{"post":{"operationId":"claimBusiness","summary":"Take over a listed card without an owner; the code goes only to the card's own e-mail or an address on its site domain","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["place_id"],"properties":{"place_id":{"type":"string"},"email":{"type":"string","description":"\"card\" (default): the e-mail on the card; or an address on the card's site domain"}}}}}},"responses":{"201":{"description":"The code was e-mailed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodeSent"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The card has no e-mail way: the owner signs in on the site and uses «Это мой бизнес» (a moderator checks)"}}}},"/api/agent/business/confirm/":{"post":{"operationId":"confirmCode","summary":"Confirm with the 6-digit code the owner received","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["draft_id","code"],"properties":{"draft_id":{"type":"string"},"code":{"type":"string","pattern":"^\\d{6}$"}}}}}},"responses":{"200":{"description":"Done: the card is submitted for review (new) or handed to the owner (claim)"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"NewBusiness":{"type":"object","required":["name","city","category","owner_email"],"properties":{"name":{"type":"string","maxLength":120},"city":{"type":"string","description":"country/city from listOptions, e.g. pt/lisbon"},"category":{"type":"string","description":"category slug from listOptions, e.g. auto-service, shops"},"owner_email":{"type":"string","format":"email","description":"The owner's e-mail: the confirmation code goes here; it is not shown on the card"},"address":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string","format":"email","description":"Public e-mail shown on the card"},"website":{"type":"string","format":"uri"},"telegram":{"type":"string"},"instagram":{"type":"string"},"facebook":{"type":"string"},"whatsapp":{"type":"string"},"description":{"type":"string","maxLength":3000,"description":"What the business does; opening hours can go here too"},"languages":{"type":"array","items":{"type":"string","pattern":"^[a-z]{2}$"},"description":"Languages spoken with customers (ISO 639-1). Russian is not required."},"force":{"type":"boolean","description":"Add even if a card with the same name exists in the city"}}},"CodeSent":{"type":"object","properties":{"ok":{"type":"boolean"},"status":{"const":"code_sent"},"draft_id":{"type":"string"},"code_sent_to":{"type":"string"},"expires_in_hours":{"type":"integer"},"confirm_url":{"type":"string"},"next":{"type":"string"}}},"Error":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}