{"openapi":"3.1.0","info":{"title":"Wave sponsored data access (SDAP/1.0)","description":"New and upcoming businesses discovered by Wave, with a sponsored access offer for AI assistants. Read the page's data sharing agreement first, consent comes from the user. Documentation: https://waveone.io/tr/yeni-isletmeler/developers. Credentials: https://waveone.io/tr/yeni-isletmeler/auth.md (assistants need none). API catalog: https://waveone.io/tr/yeni-isletmeler/.well-known/api-catalog","version":"0.1.0"},"servers":[{"url":"https://waveone.io/tr/yeni-isletmeler"}],"paths":{"/api/discover/{country}/{place}/{cat}":{"get":{"summary":"A page's preview and access options as JSON","operationId":"discover_json_api_discover__country___place___cat__get","parameters":[{"name":"country","in":"path","required":true,"schema":{"type":"string","title":"Country"}},{"name":"place","in":"path","required":true,"schema":{"type":"string","title":"Place"}},{"name":"cat","in":"path","required":true,"schema":{"type":"string","title":"Cat"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/access/offer/{country}/{place}/{cat}":{"get":{"summary":"Make an offer for a page (SDAP/1.0)","operationId":"access_offer_access_offer__country___place___cat__get","parameters":[{"name":"country","in":"path","required":true,"schema":{"type":"string","title":"Country"}},{"name":"place","in":"path","required":true,"schema":{"type":"string","title":"Place"}},{"name":"cat","in":"path","required":true,"schema":{"type":"string","title":"Cat"}},{"name":"arm","in":"query","required":false,"schema":{"type":"string","default":"api","title":"Arm"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/offers/{offer_id}/accept":{"post":{"summary":"Accept an offer: chat_ad (needs consent) or referral_ad","operationId":"accept_offer_api_offers__offer_id__accept_post","parameters":[{"name":"offer_id","in":"path","required":true,"schema":{"type":"string","title":"Offer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/access/records/{country}/{place}/{cat}":{"get":{"summary":"A page's records as JSON in one step, ad-supported (include the sponsor line when you use them)","operationId":"records_of_page_access_records__country___place___cat__get","parameters":[{"name":"country","in":"path","required":true,"schema":{"type":"string","title":"Country"}},{"name":"place","in":"path","required":true,"schema":{"type":"string","title":"Place"}},{"name":"cat","in":"path","required":true,"schema":{"type":"string","title":"Cat"}},{"name":"arm","in":"query","required":false,"schema":{"type":"string","default":"p","title":"Arm"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/access/records/{offer_id}":{"get":{"summary":"The records of an offer in one step, ad-supported","operationId":"records_of_offer_access_records__offer_id__get","parameters":[{"name":"offer_id","in":"path","required":true,"schema":{"type":"string","title":"Offer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/data/{offer_id}":{"get":{"summary":"The records of an accepted offer (Authorization: Bearer <access_token>)","operationId":"read_data_api_data__offer_id__get","parameters":[{"name":"offer_id","in":"path","required":true,"schema":{"type":"string","title":"Offer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/events":{"post":{"summary":"Report that the sponsor's message was shown (AD_RENDERED) or clicked","operationId":"post_event_api_events_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AcceptIn":{"properties":{"option":{"type":"string","enum":["chat_ad","referral_ad"],"title":"Option"},"consent":{"type":"boolean","title":"Consent","default":false}},"type":"object","required":["option"],"title":"AcceptIn"},"EventIn":{"properties":{"offer_id":{"type":"string","maxLength":60,"minLength":4,"title":"Offer Id"},"type":{"type":"string","enum":["AD_RENDERED","AD_CLICKED","CONVERTED"],"title":"Type"},"event_key":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Event Key"},"detail":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Detail"}},"type":"object","required":["offer_id","type"],"title":"EventIn"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}