{"openapi":"3.1.0","info":{"title":"Grownly agent API","version":"1.0.0","description":"Buy a growing-up film for a user. Grownly makes one film from 3 to 73 photos of one person at different ages. AI animates the years between the photos, so the face grows up on screen. The film has an opening title, age captions and music, and is a full HD MP4, made in 15 to 40 minutes. Price: 14.90 USD for up to 7 photos, 24.90 USD for up to 13 photos, 44.90 USD for up to 25 photos, 72.90 USD for up to 49 photos, 94.90 USD for up to 73 photos. One payment per film, no subscription. Dodo Payments is the merchant of record. Money back within 14 days. The user uploads the photos on the website (https://getgrownly.com), not in the chat.\n\nPurchase: create_checkout with a product_id and the user's email returns pay_url. Ask the user before you open it. The user approves and pays in the Dodo Payments checkout. Then get_order returns the film code (also sent by email). To make the film, the user opens redeem_url, signs in, uploads the photos with an age for each, and types the code. For a gift, set recipient_email: the recipient also gets the code by email.\n\nPartner (affiliate) program: apply_partner with kind=ai_agent and accept_terms=true, then verify_partner_email with the 6-digit code from the email, gives a partner code. With partner_code in create_checkout, the user gets 10% off and the partner gets 15% of the price paid. Rules: https://getgrownly.com/partners.html. Help: https://getgrownly.com/agents.html"},"servers":[{"url":"https://getgrownly.com"}],"paths":{"/api/agent/products":{"get":{"operationId":"listProducts","summary":"List film packages","responses":{"200":{"description":"Products"}}}},"/api/agent/orders":{"post":{"operationId":"createOrder","summary":"Make an order and get its pay_url","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["product_id"],"properties":{"product_id":{"type":"string","example":"film-20"},"buyer_email":{"type":"string","format":"email"},"recipient_email":{"type":"string","format":"email"},"gift_message":{"type":"string","maxLength":500},"partner_code":{"type":"string","description":"Optional affiliate code"}}}}}},"responses":{"201":{"description":"Order","content":{"application/json":{"schema":{"type":"object","properties":{"order":{"$ref":"#/components/schemas/Order"}}}}}}}}},"/api/partners/apply":{"post":{"operationId":"applyPartner","summary":"Apply to the partner (affiliate) program","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","email"],"properties":{"name":{"type":"string"},"email":{"type":"string","format":"email"},"kind":{"type":"string","enum":["planner","dj","photographer","venue","creator","ai_agent","other"]},"agent_operator":{"type":"string"},"website":{"type":"string"},"payout_method":{"type":"string","enum":["paypal","bank","bit","other"]},"payout_details":{"type":"string"},"message":{"type":"string"},"accept_terms":{"type":"boolean","description":"AI agents: true for the instant code (email code, then /api/partners/verify)"}}}}}},"responses":{"201":{"description":"The application and its private token"}}}},"/api/partners/verify":{"post":{"operationId":"verifyPartnerEmail","summary":"AI agents: send the 6-digit email code; get the partner code and link at once","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["token","code"],"properties":{"token":{"type":"string"},"code":{"type":"string"}}}}}},"responses":{"200":{"description":"Partner (with code and link when approved)"},"400":{"description":"Wrong code"},"410":{"description":"Code expired or no tries left"}}}},"/api/partners/status":{"get":{"operationId":"getPartnerStatus","summary":"Partner status; the code and link after approval","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Partner"}}}},"/api/agent/orders/{order_id}":{"get":{"operationId":"getOrder","summary":"Order status; the film code after the payment","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"token","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Order","content":{"application/json":{"schema":{"type":"object","properties":{"order":{"$ref":"#/components/schemas/Order"}}}}}}}}}},"components":{"schemas":{"Order":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["open","paid","canceled"]},"product_id":{"type":"string"},"token":{"type":"string"},"pay_url":{"type":"string"},"film_code":{"type":"string"},"redeem_url":{"type":"string"},"next_step":{"type":"string"}}}}}}