{"openapi":"3.1.0","info":{"title":"Holiday gift from Aaron Frank","version":"1.0.0","description":"Collects one shipping address so a holiday gift can be sent to an invited recipient. Write-only. An address should be submitted only at the recipient's request, after they confirm the exact address."},"servers":[{"url":"https://have-your-agent-call-my-agent.com"}],"paths":{"/api/details":{"get":{"operationId":"getGiftDetails","summary":"What is collected, the dates, and the privacy terms","responses":{"200":{"description":"Details","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/submit":{"post":{"operationId":"submitShippingAddress","summary":"Submit one shipping address","parameters":[{"name":"code","in":"query","required":false,"schema":{"type":"string"},"description":"Invite code, as an alternative to the invite_code body field."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"full_name":{"type":"string","minLength":2,"maxLength":100,"description":"Recipient's full name as it should appear on the shipping label."},"email":{"type":"string","maxLength":254,"description":"Recipient's email address. Used for shipping updates and to match the invitation."},"company":{"description":"Company name, only if the parcel is going to a workplace.","type":"string","maxLength":100},"address_line1":{"type":"string","minLength":3,"maxLength":120,"description":"Street address, including house or building number."},"address_line2":{"description":"Apartment, suite, unit, floor, or similar.","type":"string","maxLength":120},"city":{"type":"string","minLength":1,"maxLength":80,"description":"City or town."},"region":{"description":"State, province, or region. Required for US addresses (two-letter state code).","type":"string","maxLength":80},"postal_code":{"description":"ZIP or postal code. Required for US addresses; send it wherever the country uses one.","type":"string","maxLength":16},"country":{"type":"string","minLength":2,"maxLength":2,"description":"Country as an ISO 3166-1 alpha-2 code, for example US, GB, FR, IL, IN, SG."},"phone":{"description":"Phone number for the carrier, with country code, for example +1 212 555 0100.","type":"string","maxLength":24},"delivery_notes":{"description":"Short delivery instructions, for example a gate code or 'leave with front desk'.","type":"string","maxLength":300},"confirmed_by_recipient":{"type":"boolean","description":"Set to true only after the recipient has seen this exact address and confirmed it should be sent. Submissions with false are refused."},"agent":{"description":"Optional. The name of the agent or assistant making this submission, for example Claude, ChatGPT, or Grok. Used only for an anonymous public tally of which agents called.","type":"string","maxLength":60},"invite_code":{"description":"Invite code from the recipient's invitation. Not needed when the server URL already carries ?code=.","type":"string","maxLength":64}},"required":["full_name","email","address_line1","city","country","confirmed_by_recipient"],"additionalProperties":false}}}},"responses":{"200":{"description":"Stored, or already on file. Returns a confirmation ID and a card for the recipient.","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Not stored. `error` names the reason; `problems` lists fields to fix.","content":{"application/json":{"schema":{"type":"object"}}}},"403":{"description":"Not stored. `error` names the reason; `problems` lists fields to fix.","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"Not stored. `error` names the reason; `problems` lists fields to fix.","content":{"application/json":{"schema":{"type":"object"}}}},"410":{"description":"Not stored. `error` names the reason; `problems` lists fields to fix.","content":{"application/json":{"schema":{"type":"object"}}}},"422":{"description":"Not stored. `error` names the reason; `problems` lists fields to fix.","content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"Not stored. `error` names the reason; `problems` lists fields to fix.","content":{"application/json":{"schema":{"type":"object"}}}}}}}}}