{"openapi":"3.1.0","info":{"title":"FastAPI","version":"0.1.0"},"paths":{"/unsubscribe":{"post":{"summary":"Unsubscribe","description":"Unsubscribe from promotional email. Signed, so no login required.\n\nAccepts BOTH forms:\n- query params (?uid=&sig=) with any/no body — this is what mailbox\n  providers hit for RFC 8058 one-click (they POST a form body, not JSON)\n- a JSON body {user_id, sig} — used by web/app/unsubscribe/page.tsx","operationId":"unsubscribe_unsubscribe_post","parameters":[{"name":"uid","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uid"}},{"name":"sig","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sig"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/generate_search_docs":{"post":{"summary":"Generate Search Docs","description":"Hourly (`40 * * * *`, limit=25, 120 s pg_net timeout). Budget: the\nin-flight cap; at most three photos held at a time, a 40 s run budget.","operationId":"generate_search_docs_admin_generate_search_docs_post","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/score_listing_images":{"post":{"summary":"Score Listing Images","description":"Hourly (`25 * * * *`, limit=25, 180 s pg_net timeout). Budget: the\njobs' in-flight cap (worker/cap.py); one run holds one photo at a time.","operationId":"score_listing_images_admin_score_listing_images_post","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/refresh_meta_ad_performance":{"post":{"summary":"Refresh Meta Ad Performance","description":"Nightly (`20 3 * * *`, 60 s pg_net timeout). Budget: the in-flight cap;\nat most 20 Meta pages per run.","operationId":"refresh_meta_ad_performance_admin_refresh_meta_ad_performance_post","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/sync_meta_ad_spend":{"post":{"summary":"Sync Meta Ad Spend","description":"Nightly (`35 3 * * *`, 120 s pg_net timeout). Budget: the in-flight cap;\n`days` clamped to 90, at most 20 Meta pages.","operationId":"sync_meta_ad_spend_admin_sync_meta_ad_spend_post","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":14,"title":"Days"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/sync_store_daily":{"post":{"summary":"Sync Store Daily","description":"Nightly (`40 3 * * *`, 180 s pg_net timeout). Budget: the in-flight cap;\n`days` clamped to Apple's 365-day retention, Play to two monthly files.","operationId":"sync_store_daily_admin_sync_store_daily_post","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":7,"title":"Days"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/run_monitors":{"post":{"summary":"Run Monitors","description":"Every 15 minutes (`*/15 * * * *`, 90 s pg_net timeout). Budget: the\nin-flight cap; `hours` clamped to 1-24, at most five admin pushes a run.\nRuns without WORKER_DATABASE_URL too (worker/monitors_job.py says how).","operationId":"run_monitors_admin_run_monitors_post","parameters":[{"name":"hours","in":"query","required":false,"schema":{"type":"integer","default":3,"title":"Hours"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/sync_store_feeds":{"post":{"summary":"Sync Store Feeds","description":"Hourly (`15 * * * *`, 180 s pg_net timeout). Budget: the jobs' in-flight\ncap; at most 20 stores and 500 products per store a run, one feed (20 MB)\nand one photo (10 MB) held at a time, a 120 s run budget. Each store is\nclaimed first (store_feed_claim), so a store another run holds (the\nowner's \"Sækja núna\", a deploy's old instance) is skipped as `running`.","operationId":"sync_store_feeds_admin_sync_store_feeds_post","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/check_listing_monitors":{"post":{"summary":"Check Listing Monitors","description":"Every 5 min (pg_net timeout 90 s). One run at a time across processes.","operationId":"check_listing_monitors_check_listing_monitors_post","parameters":[{"name":"dry_run","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Dry Run"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/run_proposal_sms_nudges":{"post":{"summary":"Run Proposal Sms Nudges","description":"At :05 and :35 (pg_net timeout 30 s). Claims, then texts after the response.","operationId":"run_proposal_sms_nudges_run_proposal_sms_nudges_post","parameters":[{"name":"dry_run","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Dry Run"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/send_review_reminders":{"post":{"summary":"Send Review Reminders","description":"Every 15 min (pg_net default 5 s). Pushes inline, holding the run lock.","operationId":"send_review_reminders_send_review_reminders_post","parameters":[{"name":"dry_run","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Dry Run"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/send_reminder_day_before":{"post":{"summary":"Send Reminder Day Before","description":"Hourly at :00 (pg_net default 5 s). Texts inline, holding the run lock.","operationId":"send_reminder_day_before_send_reminder_day_before_post","parameters":[{"name":"dry_run","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Dry Run"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/run_expiry_nudge_notifications":{"post":{"summary":"Run Expiry Nudge Notifications","description":"Daily at 20:00 (pg_net timeout 30 s). Claims, then pushes after the response.","operationId":"run_expiry_nudge_notifications_run_expiry_nudge_notifications_post","parameters":[{"name":"dry_run","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Dry Run"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/run_quiet_listing_nudges":{"post":{"summary":"Run Quiet Listing Nudges","description":"Daily at 18:30 (pg_net timeout 30 s). Records the day-3 and day-7 rows, claims, then pushes after the response.","operationId":"run_quiet_listing_nudges_run_quiet_listing_nudges_post","parameters":[{"name":"dry_run","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Dry Run"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notify_saved_price_drops":{"post":{"summary":"Notify Saved Price Drops","description":"Hourly at :23 (pg_net timeout 30 s). Claims and writes the notices in one\nstatement, then pushes after the response. A failed run answers 5xx.","operationId":"notify_saved_price_drops_notify_saved_price_drops_post","parameters":[{"name":"dry_run","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Dry Run"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/run_reengagement_notifications":{"post":{"summary":"Run Reengagement Notifications","description":"Daily at 21:00 (pg_net timeout 30 s). Claims, then pushes after the response.","operationId":"run_reengagement_notifications_run_reengagement_notifications_post","parameters":[{"name":"dry_run","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Dry Run"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/nudge_sellers_enable_notifications":{"post":{"summary":"Nudge Sellers Enable Notifications","description":"Weekly, Tuesday 12:00 (pg_net timeout 30 s). Claims, then emails after the response.","operationId":"nudge_sellers_enable_notifications_nudge_sellers_enable_notifications_post","parameters":[{"name":"dry_run","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Dry Run"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stores/{business_id}/sync_feed":{"post":{"summary":"Sync Store Feed Now","description":"An owner reads the store's feed now. 200 with the run's summary (its\nstatus may be `failed`, with the feed's error, or `too_slow` when the shop\ncould not be read within the budget); 401 without a valid\ntoken; 403 for anyone but an owner; 404 `no_feed`; 409 `stopped`,\n`store_inactive` or `running` (with retry_after); 429 `rate_limited` with\nRetry-After; 503 when busy or the worker database is not configured.\nBudget: the global cap, MAX_MANUAL_SYNCS, a 60 s run (module docstring).","operationId":"sync_store_feed_now_stores__business_id__sync_feed_post","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"integer","title":"Business Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"summary":"Root","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/user_info/{user_id}":{"get":{"summary":"Get User Info","operationId":"get_user_info_user_info__user_id__get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/my_email":{"get":{"summary":"Get My Email","operationId":"get_my_email_my_email_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/listings/{listing_id}":{"get":{"summary":"Get Listing","description":"Retrieve a given listing.","operationId":"get_listing_listings__listing_id__get","parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"integer","title":"Listing Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/handle_listing_claim_v2":{"post":{"summary":"Handle Listing Claim V2","operationId":"handle_listing_claim_v2_handle_listing_claim_v2_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListingClaimInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/listing_claim_info_v2/{listing_claim_id}":{"get":{"summary":"Get Listing Claim Info V2","operationId":"get_listing_claim_info_v2_listing_claim_info_v2__listing_claim_id__get","parameters":[{"name":"listing_claim_id","in":"path","required":true,"schema":{"type":"integer","title":"Listing Claim Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/handle_listing_slot_proposal":{"post":{"summary":"Handle Listing Slot Proposal","operationId":"handle_listing_slot_proposal_handle_listing_slot_proposal_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListingSlotProposalInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/handle_listing_offer":{"post":{"summary":"Handle Listing Offer","description":"The seller's push and email for a new top offer in the queue (TIK-17).\n\ntr_listing_offer_received writes the `offer_received` row when a queued\noffer is the new top (and not a raise by the buyer already on top); this\nsends the channel pair for that row, once, and is called by the app right\nafter queue_offer comes back `queued`. Service role, so it authorizes\nitself: the offer must belong to the caller. No amount in the push: the\nseller's dock on the listing shows it, and the row is written without\none.","operationId":"handle_listing_offer_handle_listing_offer_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListingOfferInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/forskot/notify":{"post":{"summary":"Forskot Notify","description":"The giver's push when a friend earned them a forskot: by signing up,\nor (a friend who already had an account) by a first listing.\n\nThe database owns the rules and the rows (migration 20261202110500,\ndocs/forskot.md). A new signup's claim pays the giver inside\n`claim_forskot_gift`; the sweep notes first listings, pays what is due by\nthose, ends runs that are over. Either way there is one `forskot_earned`\nnotification per reward. `forskot_take_pushes` runs that sweep and hands\neach unsent notice to exactly one caller; this sends them, with the title\nthe row carries, whichever way it was earned.\n\nCallers: the app of a friend whose claim just went through, and any app\nthat `get_running_forskot` told a push is waiting, so\nthere is no bearer token and nothing here trusts the caller. The rows\ndecide who is told and what, each is sent once, and the answer is the same\nwhether or not anything was sent. A cron job may call it too, with the\nservice-role key as the bearer: only that forces the sweep; everyone else\ngets the lazy one, at most one sweep per forskot_config.sweep_every_seconds.\n\nBudget: one in flight (`single_flight`); a second caller is answered at\nonce (`skipped`, which says only that another call is running) and nothing\nqueues. Inside the global in-flight cap like any request.\n\nNo email: a small good thing happened, there is nothing to act on by mail.\nA push that fails is not retried; the in-app row is there either way.","operationId":"forskot_notify_forskot_notify_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/handle_share_open":{"post":{"summary":"Handle Share Open","description":"The seller's push when an open of their shared link reached a step.\n\n`_record_share_open` (migration 20261128120000) writes one\n`share_bump_awarded` row per step a listing reaches; this sends the push\nfor the rows not sent yet and marks them `channels_sent`. The caller is\nwhoever just opened the link: the public listing page, or the app's link\nbridge, right after `record_share_open` answered true. So there is no\nbearer token, and nothing here trusts the caller: the rows decide who is\ntold and what, each is sent once, and the answer is the same whether or\nnot anything was sent, so the caller learns nothing about the listing.\n\nOnly rows carrying a `step` are sent. Rows from the five-arrival rule this\nreplaced have none and were never pushed; without the filter the first\ncall for an old listing would push a notice months late. Several unsent\nsteps on one listing become one push, the newest. No email: this is a\nsmall good thing happening, not something to act on.","operationId":"handle_share_open_handle_share_open_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShareOpenInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/handle_listing_price_lowered":{"post":{"summary":"Handle Listing Price Lowered","description":"Push and email for the `offer_price_lowered` rows on one listing (TIK-17).\n\ntr_listing_price_change_moves_offers decides whether a save was a cut of\nthe price buyers see and writes one row per buyer still under it; this\nsends the channel pair for the rows not sent yet, once each. The wizard\ncalls it after every save of an existing listing. Owner only.","operationId":"handle_listing_price_lowered_handle_listing_price_lowered_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListingPriceLoweredInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/handle_listing_proposal_decision":{"post":{"summary":"Handle Listing Proposal Decision","operationId":"handle_listing_proposal_decision_handle_listing_proposal_decision_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListingProposalDecisionInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/listing_accepted_proposal_info/{proposal_id}":{"get":{"summary":"Get Listing Accepted Proposal Info","operationId":"get_listing_accepted_proposal_info_listing_accepted_proposal_info__proposal_id__get","parameters":[{"name":"proposal_id","in":"path","required":true,"schema":{"type":"integer","title":"Proposal Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/send_chat_notification":{"post":{"summary":"Send Chat Notification","description":"Send a push notification to the other user in a conversation.","operationId":"send_chat_notification_send_chat_notification_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatNotificationInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notify_admins_listing_needs_approval":{"post":{"summary":"Notify Admins Listing Needs Approval","description":"Notify admins (Expo push) when a non-admin seller publishes a listing that still needs approval.\n\nIdempotent via `listings.admin_pending_push_sent`. Skips if the seller is an admin (feed does not\nfilter their own listings by approval).\nOptional: set env `PENDING_LISTING_PUSH_ONLY_USER_ID` to a profile UUID to notify only that admin\n(e.g. founder phone) instead of every `profiles.is_admin` row with a push token.","operationId":"notify_admins_listing_needs_approval_notify_admins_listing_needs_approval_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingListingNotifyInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/reject_listing":{"post":{"summary":"Reject Listing","description":"Admin-only: reject a listing with a reason and notify the seller via push.","operationId":"reject_listing_reject_listing_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RejectListingInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/unreject_listing":{"post":{"summary":"Unreject Listing","description":"Admin-only: clear a rejection so the listing is visible again.","operationId":"unreject_listing_unreject_listing_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnrejectListingInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notify_wish_answers":{"post":{"summary":"Notify Wish Answers","description":"Push the requesters a seller just answered with answer_wishes().\n\nThe RPC owns the decision and writes the in-app rows; this only pushes,\nthe same split listing Q&A uses (trigger for the row, endpoint for the\npush). It pushes rows whose pushed_at is still null and stamps them\nbefore sending, so a phone retrying the call never pushes twice.","operationId":"notify_wish_answers_notify_wish_answers_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WishAnswerPushInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/run_request_expiry_notifications":{"post":{"summary":"Run Request Expiry Notifications","description":"Called daily by pg_cron. One push per person whose public requests lapse\nwithin 48 hours, nudging them to extend (renew_request RPC).\n\nA request has less reason to be checked than a listing: the whole point is\nthat the requester does NOT come back to look, so an expiry that arrives\nunannounced reads as the feature quietly forgetting them.\n\nSame claim-before-send contract as the listing expiry nudge (worker/expiry_nudge.py): the\nexpiry_push_sent flags are set in one UPDATE before the response returns, so\na concurrent re-trigger selects nobody and nothing is double-pushed, and the\nExpo sends run in a background task to stay under pg_net's 5s cron timeout.\nRenewing resets the flag, so a renewed request is nudged again before its\nnext expiry.\n\nThe candidate set comes from requests_needing_expiry_nudge rather than a\nfilter chain here: that predicate (\"public, active, unfulfilled, unnudged,\nlapsing within the window\") is stated in five other places already, and a\nsixth copy is a sixth chance to drift.","operationId":"run_request_expiry_notifications_run_request_expiry_notifications_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/send_broadcast":{"post":{"summary":"Admin Send Broadcast","description":"Admin-only manual push broadcast, driven from the in-app admin dashboard.\n\nGuardrails: admin-gated by the caller's JWT, and a global 1-per-day safety\nvalve enforced by a unique index on admin_broadcasts (so a stolen admin phone\nor a tampered client can't exceed it). Tokens are pulled service-side; the\nphone never holds them. Sends run in a background task (batched), so the\nresponse returns fast.","operationId":"admin_send_broadcast_admin_send_broadcast_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminBroadcastInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sentry-debug":{"get":{"summary":"Trigger Error","operationId":"trigger_error_sentry_debug_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/maps/api/{path}":{"get":{"summary":"Proxy Handler","operationId":"proxy_handler_maps_api__path__get","parameters":[{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Proxy Handler","operationId":"proxy_handler_maps_api__path__get","parameters":[{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/min_generation":{"get":{"summary":"Get Min Generation","operationId":"get_min_generation_min_generation_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/send_reminder_soon_before":{"post":{"summary":"Send Reminder Soon Before","operationId":"send_reminder_soon_before_send_reminder_soon_before_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/get_id_from_email_or_phone":{"get":{"summary":"Get Id From Email Or Phone","operationId":"get_id_from_email_or_phone_get_id_from_email_or_phone_get","parameters":[{"name":"email","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},{"name":"phone","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ads/feed":{"get":{"summary":"Get Ads Feed","description":"Product feed for Meta and Google ad platforms.\n\nWhen `country` is provided (IS, DK, IE), only listings from sellers\nin that country are returned, with prices formatted in the local currency.","operationId":"get_ads_feed_ads_feed_get","parameters":[{"name":"format","in":"query","required":false,"schema":{"type":"string","default":"meta","title":"Format"}},{"name":"min_quality","in":"query","required":false,"schema":{"type":"number","default":0.2,"title":"Min Quality"}},{"name":"country","in":"query","required":false,"schema":{"type":"string","default":"","title":"Country"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ads/image/{listing_id}":{"get":{"summary":"Get Ads Image","description":"Generate a branded product image for DPA placements.\n\nCurrently supports ratio=9_16 (1080x1920 Story/Reels format).","operationId":"get_ads_image_ads_image__listing_id__get","parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"string","title":"Listing Id"}},{"name":"ratio","in":"query","required":false,"schema":{"type":"string","default":"9_16","title":"Ratio"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sitemap.xml":{"get":{"summary":"Get Sitemap","description":"Dynamic sitemap of all active listings for search engine indexing.","operationId":"get_sitemap_sitemap_xml_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/robots.txt":{"get":{"summary":"Get Robots","description":"Robots.txt for search engine crawlers.","operationId":"get_robots_robots_txt_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/analytics/dashboard":{"get":{"summary":"Get Analytics Dashboard","description":"Marketplace analytics dashboard. Requires admin access.","operationId":"get_analytics_dashboard_analytics_dashboard_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ads/performance":{"get":{"summary":"Get Ads Performance","description":"Ad performance analytics. Requires admin access.","operationId":"get_ads_performance_ads_performance_get","parameters":[{"name":"view","in":"query","required":false,"schema":{"type":"string","default":"summary","title":"View"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/events/track":{"post":{"summary":"Track Event","description":"Receive client-side events and forward to Meta CAPI for server-side deduplication.","operationId":"track_event_events_track_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CAPIEvent"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/handle_exchange_not_confirmed":{"post":{"summary":"Handle Exchange Not Confirmed","description":"The handover didn't happen. Re-lists the item (clears is_taken + removes the\nclaim/proposal decision) and tells the other party.\n\nEither party can call it. The buyer reports it from the confirm block\n(exchange_confirmations.exchanged = false); the seller reports a no-show, which\nis the only way out when the buyer simply never turns up and stops replying.\nOld app versions that never call this endpoint degrade gracefully.\n\nEverything below runs as service role, so this endpoint does its own\nauthorization. The seller branch is verified against the listing; the buyer branch\nonly proves the caller is who they claim to be, so every write on that path is\nfiltered by the caller's own id and does nothing for a non-party. Keep it that way:\na write scoped to the seller instead would be reachable by any authenticated user\non any listing. It also resolves the payment state before any write, because\nre-listing an item whose money has already moved hands the same item to a second\nbuyer.","operationId":"handle_exchange_not_confirmed_handle_exchange_not_confirmed_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExchangeNotConfirmedRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/seller_mark_paid":{"post":{"summary":"Seller Mark Paid","description":"The seller says the buyer paid outside the app (cash or a bank transfer).\n\nUntil this existed only the buyer could close a deal, so a seller paid in cash\nwaited on a buyer with no reason to open the app again, and the deal sat on\n\"Beðið eftir greiðslu\" until the 48 h auto-confirm, which writes nothing.\n\nIt writes the BUYER's confirmation row, the same row the buyer's own \"greitt\nmeð peningum\" writes, with reason `seller_marked_paid` so it can be told\napart. Not a seller row: RLS lets a buyer read only their own confirmations,\nso a seller row would leave the buyer's \"Greiða\" button up and a Blikk\npayment would move the money a second time.\n\nService role, so it authorizes itself: the caller must own the listing, and\nthe buyer comes from the live deal, never from the request. It refuses while\na Blikk payment is in flight and once anything is already recorded.","operationId":"seller_mark_paid_seller_mark_paid_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SellerMarkPaidRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/handle_schedule_proposal":{"post":{"summary":"Handle Schedule Proposal","description":"Someone proposed a handover time. Tell the other party.\n\nFire-and-forget from the client's point of view: the proposal is already\nrecorded by the RPC before this is called, so a failure here costs a\nnotification, never the proposal.","operationId":"handle_schedule_proposal_handle_schedule_proposal_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleProposalNotify"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/handle_schedule_decision":{"post":{"summary":"Handle Schedule Decision","description":"A proposed time was accepted or declined. Tell whoever proposed it.\n\nThe outcome comes from the proposal ROW, never from the request body. The\nRPC that decided it already wrote `status`; trusting `body.accepted` let a\ncaller announce \"Afhendingartíminn ákveðinn\" for a time that was in fact\ndeclined. `body.accepted` is kept on the model for client compatibility\nand ignored.","operationId":"handle_schedule_decision_handle_schedule_decision_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleDecisionNotify"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/warn_inactive_sellers":{"post":{"summary":"Warn Inactive Sellers","description":"Send a one-time push to sellers in the warning window (currently 45..59\ndays of inactivity) telling them their listings will be hidden soon if they\ndon't sign back in. Called daily by pg_cron. Sets\nprofiles.inactivity_warning_sent so we only fire once per inactivity cycle;\nthe flag is reset by restore_active_seller_listings() when they sign in\nagain.","operationId":"warn_inactive_sellers_warn_inactive_sellers_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ai/analyze-listing":{"post":{"summary":"Analyze Listing","description":"Analyze listing images with Gemini and return prefilled fields.\n\n`async def`, and every call in it is awaited: Supabase through asyncdb, the\nphotos through the shared external client (bounded by `_image_fetch_slots`),\nGemini through `gemini_client.aio`. That last part is the whole point. On\n2026-08-23 this route was `async def` with blocking calls inside, so it held\nthe event loop for the ten to thirty seconds an analysis takes; an\ninfluencer video pushed AI volume 17x within one hour and three quarters of\nlisting attempts were abandoned half-created, because the Continue button\nqueued behind someone else's photos. Never add a blocking call here\n(test_event_loop_hygiene.py and test_blocking_routes.py fail if you do).\n\nAt most 16 analyses run at once (`_ai_analysis_slots`), and the 17th gets\n503 after half a second rather than a place in a queue: each analysis holds\nits photos and a model call for 10-30 s, and a queue of them is memory held\nfor sellers who have already given up. The app treats 503 as \"fill the\ncards in yourself\".","operationId":"analyze_listing_ai_analyze_listing_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyzeListingInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ai/check-photo":{"post":{"summary":"Check Listing Photo","description":"Named, fixable problems with one listing photo (photo_check.py).\n\nCalled once per photo the seller uploads, from the photo step. Advice only:\nthe app never waits on it and never blocks on its answer.\n\nBudget: 8 at once (`_photo_check_slots`), 503 after half a second over\nthat, and 10 s for the fetch and the model call together. The photo must\nbe the caller's own (`<user id>/...` in the listing photo bucket). It is\nfetched from our own storage by bucket and name, never from a URL the\nclient supplies, as a 512 px rendition, bounded in bytes and pixels before\nit is decoded off the loop, and judged by one short model call through\n`gemini_client.aio`.","operationId":"check_listing_photo_ai_check_photo_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckPhotoInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckPhotoOutput"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ai/parse-alert":{"post":{"summary":"Parse Alert","description":"Turn a sentence about a wanted item into a structured alert.\n\nAwaits its model call through `gemini_client.aio`, like\n/ai/analyze-listing, so nothing here holds the event loop. Its own\nsemaphore (8), not the wizard's: each parse may hold a slot for two model\nattempts, and a burst of one-word alerts must not turn into \"AI analysis is\nbusy\" for a seller mid-listing. Over budget is 503, never a queue.","operationId":"parse_alert_ai_parse_alert_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParseAlertInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/delete_account":{"post":{"summary":"Delete Account","operationId":"delete_account_delete_account_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/handle_listing_question":{"post":{"summary":"Handle Listing Question","description":"Send a push notification to the seller when a buyer asks a question.","operationId":"handle_listing_question_handle_listing_question_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListingQuestionInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/handle_listing_qa_reply":{"post":{"summary":"Handle Listing Qa Reply","description":"Push a Q&A reply to whichever side of the thread did not write it.\n\nA thread has exactly two participants: the person who opened it and the\nseller. So the recipient falls out of the author, and the same endpoint\nserves the seller answering and the buyer following up.","operationId":"handle_listing_qa_reply_handle_listing_qa_reply_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListingQaReplyInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/blikk/create-buyer-payment":{"post":{"summary":"Blikk Create Buyer Payment","description":"Buyer initiates a P2P Blikk payment to the seller.\nBoth parties identified by phone — no IBAN needed.\nReturns scaRedirectUrl for buyer to complete bank SCA.","operationId":"blikk_create_buyer_payment_blikk_create_buyer_payment_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBuyerPaymentInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/blikk/payment/{payment_id}/status":{"get":{"summary":"Blikk Get Payment Status Endpoint","description":"Poll payment status. Advances platform_fees state on SUCCESS.\nUses P2P client for buyer payments, Ecom client for fee payments.","operationId":"blikk_get_payment_status_endpoint_blikk_payment__payment_id__status_get","parameters":[{"name":"payment_id","in":"path","required":true,"schema":{"type":"string","title":"Payment Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/blikk/last-payment-failure/{listing_id}":{"get":{"summary":"Blikk Last Payment Failure","description":"The most recent failed buyer payment on a listing, for its buyer or seller.\n\nThe payment sheet only shows a failure while it is open, and the platform_fees row\nit used to be read from is deleted as soon as the failure is recorded, so the\nlisting does not stay locked to a buyer who never paid. Without this, a buyer who\nclosed the app mid-payment comes back to a screen that says nothing at all about the\nattempt that just died, and taps \"Greiða\" with no idea what happened last time.\n\npayment_events is service-role only (RLS on, no policies), so this cannot be a\nclient-side query.","operationId":"blikk_last_payment_failure_blikk_last_payment_failure__listing_id__get","parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"integer","title":"Listing Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/blikk/create-fee-payment":{"post":{"summary":"Blikk Create Fee Payment","description":"Seller initiates platform fee payment to Tikk via Blikk Ecom.\nNo creditor override — Tikk's account is the channel default.","operationId":"blikk_create_fee_payment_blikk_create_fee_payment_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateFeePaymentInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/blikk/pending-fees":{"get":{"summary":"Blikk Pending Fees","description":"Return awaiting_fee rows for the calling seller. Mobile gates new listing creation.","operationId":"blikk_pending_fees_blikk_pending_fees_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/blikk/transactions":{"get":{"summary":"Blikk Transactions","description":"Return the caller's payment history (buyer or seller) for the Blikk hub overview.","operationId":"blikk_transactions_blikk_transactions_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/blikk/setup-status":{"get":{"summary":"Blikk Setup Status","description":"Returns {\"blikk_registered\": bool} = the user is P2P-ready (registered AND has a\nlinked bank account). We use the P2P check, not the Ecom \"user exists\" check —\na user can exist in Blikk without a linked account, in which case payments fail.","operationId":"blikk_setup_status_blikk_setup_status_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/blikk/seller-ready":{"get":{"summary":"Blikk Seller Ready","description":"Whether the seller of `listing_id` can receive Blikk P2P payments (cached, TTL).\nLets the buyer's payment-method picker enable/disable the Blikk option without a\nlive Blikk call on every view. Defaults to not-ready on any error — cash is always\navailable, and the authoritative check runs at payment time.","operationId":"blikk_seller_ready_blikk_seller_ready_get","parameters":[{"name":"listing_id","in":"query","required":true,"schema":{"type":"integer","title":"Listing Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/blikk/verify":{"get":{"summary":"Blikk Verify","description":"Admin-only. Returns our stored payment record for a listing next to a **fresh\nlive re-verify** from Blikk, so support can confirm a transfer on demand and\nread off the end-to-end id (bank-statement reference) + both parties' IBANs.\nLive objects are redacted (no bank-credential token / geolocation / IP).","operationId":"blikk_verify_blikk_verify_get","parameters":[{"name":"listing_id","in":"query","required":true,"schema":{"type":"integer","title":"Listing Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/blikk/fee-config":{"get":{"summary":"Blikk Fee Config","description":"The platform's *current* fee rate (bps) + cap — the rate that will be stamped\nonto a listing created right now. For the create-listing fee disclosure. 0 = no\nfee. The authoritative charge is still computed server-side from the listing's\nown stamped rate at payment time.","operationId":"blikk_fee_config_blikk_fee_config_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/blikk/start-registration":{"post":{"summary":"Blikk Start Registration","description":"Where to send a user who does not have a Blikk account yet.\n\nThis used to mint a 1 ISK Ecom payment purely to harvest an onboarding\nscaRedirectUrl off it, then cancel the payment. The cancel could never have\nworked: light onboarding proceeds straight to bank authentication (Blikk's Ecom\ndocs, step 2.1) and /v3/payments/cancel only applies while a payment is DRAFT. So\nevery registration actually charged the user 1 ISK into Tikk's account, and left no\ntrace on our side, since these payments get no platform_fees row and the\nunrecorded-payment alert is gated on amount > 1 — which silenced exactly them.\n\nThe response shape is deliberately unchanged. An app that is already installed\nkeeps working and stops charging people the moment this deploys, rather than\nwaiting for everyone to pick up an OTA. That holds for the query params added in\n_onboarding_urls too: an old install sends the user to the same field it always\ndid, and now gets them back afterwards.","operationId":"blikk_start_registration_blikk_start_registration_post","parameters":[{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/blikk/cancel-registration":{"post":{"summary":"Blikk Cancel Registration","description":"Legacy no-op, kept for installs that still send a registration payment id.\n\nRegistration creates no payment any more, so there is nothing to cancel. A real id\nis still attempted, but that was always futile: cancel only works while a payment\nis DRAFT, and onboarding moves it past that.","operationId":"blikk_cancel_registration_blikk_cancel_registration_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelRegistrationInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/blikk/webhook":{"post":{"summary":"Blikk Webhook","description":"Blikk webhook for payment callbacks. Two layers of defense:\n  1. Shared-secret header check (if BLIKK_WEBHOOK_SECRET configured).\n  2. Re-verify status via authenticated GET before advancing platform_fees.","operationId":"blikk_webhook_blikk_webhook_post","parameters":[{"name":"x-blikk-signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Blikk-Signature"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlikkWebhookPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/blikk/reconcile":{"post":{"summary":"Blikk Reconcile","description":"Reconcile stuck payments: poll Blikk for non-terminal platform_fees rows and\nadvance any that have actually completed. Called by a scheduled pg_cron job\n(authenticated with the service-role key) to catch webhooks that were never delivered.","operationId":"blikk_reconcile_blikk_reconcile_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/blikk/mock-advance-payment":{"post":{"summary":"Blikk Mock Advance Payment","description":"Dev-only: directly advance a mock payment's platform_fees status.","operationId":"blikk_mock_advance_payment_blikk_mock_advance_payment_post","parameters":[{"name":"payment_id","in":"query","required":true,"schema":{"type":"string","title":"Payment Id"}},{"name":"new_status","in":"query","required":false,"schema":{"type":"string","default":"SUCCESS","title":"New Status"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ads/events":{"post":{"summary":"Post Ad Events","description":"Record feed ad impressions and clicks. Open to guests by design.","operationId":"post_ad_events_ads_events_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdEventBatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ads/serve":{"get":{"summary":"Get Ads Serve","description":"Creatives servable to this device. Open to guests, like the feed itself.","operationId":"get_ads_serve_ads_serve_get","parameters":[{"name":"device_id","in":"query","required":true,"schema":{"type":"string","title":"Device Id"}},{"name":"surface","in":"query","required":false,"schema":{"type":"string","default":"app_feed","title":"Surface"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/backfill_target_gender":{"post":{"summary":"Backfill Target Gender","description":"Infer target_gender for live garment listings that have none.\n\nEvery model and database call in here is awaited, as in analyze_listing.","operationId":"backfill_target_gender_admin_backfill_target_gender_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackfillTargetGenderBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/search/concept":{"post":{"summary":"Search Concept","description":"Return an embedding for a typed query, cached by its folded form.\n\nNo auth: the feed is public and guests search. The protections are the cache,\nthe length bounds and the fact that the client only calls this when a lexical\nsearch already came back empty.","operationId":"search_concept_search_concept_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConceptQueryInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/search/rerank":{"post":{"summary":"Search Rerank","description":"Reorder lexical search results by intent. Falls back to the input order.\n\nEvery failure path returns status 200 with `order: null`. The caller already\nhas results on screen in a usable order, so an error here must cost nothing\nbut the reordering.","operationId":"search_rerank_search_rerank_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RerankInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/memory_debug":{"get":{"summary":"Memory Debug","description":"What this process is holding, and whether Python or the allocator holds it.\n\nAlways cheap: RSS, gc counts and glibc's arena figures cost nothing to read,\nso this is safe to poll on the single 0.5 CPU instance. `trim` reports the\nbackground malloc_trim thread, so the effect of a release is visible here\nwithout reading Render's graph.\n\n`smaps=1` adds a /proc/self/smaps breakdown by mapping kind, for the part\nof RSS that mallinfo cannot see. The kernel walks every page table entry\nto produce it, so it is opt-in rather than part of every poll.\n\nThe tracemalloc section is only populated once someone has called\n/admin/memory_trace with `action=start`. Tracking every allocation costs\nreal CPU and memory, so it stays off until a person turns it on and can be\nturned back off without a deploy.","operationId":"memory_debug_admin_memory_debug_get","parameters":[{"name":"top","in":"query","required":false,"schema":{"type":"integer","default":25,"title":"Top"}},{"name":"smaps","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Smaps"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/memory_trace":{"post":{"summary":"Memory Trace","description":"Turn allocation tracking on, mark a baseline, or turn it off.\n\n`start` begins tracing and records a baseline snapshot, so a later\n/admin/memory_debug reports growth since that moment rather than a\ntop-allocators list dominated by whatever the process loaded at import.\n`baseline` re-marks it without restarting. `stop` ends tracing.\n\nDeliberately not automatic. A leak that takes two days to show needs\ntracing left on for hours, and that is a decision with a CPU bill attached\non an instance with half a core.","operationId":"memory_trace_admin_memory_trace_post","parameters":[{"name":"action","in":"query","required":true,"schema":{"type":"string","title":"Action"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/memory_trim":{"post":{"summary":"Memory Trim","description":"Hand glibc's freed pages back to the OS right now, and say how many.\n\nThe background thread does this every couple of minutes on its own; this\nexists so the effect can be read on prod the moment a deploy lands, with\nRSS from /proc before and after, rather than waiting for the next tick\nand a five-minute Render sample to line up.","operationId":"memory_trim_admin_memory_trim_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/kenni/nonce":{"post":{"summary":"Kenni Nonce","description":"Mint a single-use nonce for a sign-in attempt about to begin.\n\nPOST, not GET, because it writes. Proxies, link prefetchers and retry\nmiddleware all treat GET as safe to repeat, and this is also a fresh\ncredential in a response body: RFC 6749 asks for no-store on exactly this\nfor exactly that reason, because an intermediary caching a 200 would hand\ntwo callers the same nonce.","operationId":"kenni_nonce_auth_kenni_nonce_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/KenniNonceInput"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/kenni/attach":{"post":{"summary":"Kenni Attach","description":"Finish a sign-in that took the SMS detour, without a second prompt.\n\nThis is the whole point of the pending-link table. The user proved who they\nare with their electronic ID, then proved which account is theirs with an\nSMS code. Both proofs are in hand, so there is nothing left to ask them.\n\nNo Kenni round trip happens here. The claims were verified against Kenni's\nJWKS when the row was written, and the row has been unreachable by anyone\nsince.","operationId":"kenni_attach_auth_kenni_attach_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KenniAttachInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/kenni/session":{"post":{"summary":"Kenni Session","description":"Exchange a Kenni authorization code for a Supabase session.\n\nThe response carries the token_hash in the JSON BODY and nowhere else. It\nmust never travel as a URL or a route param: lib/navigate.ts logs route\nparams on a duplicate navigation and Sentry attaches raw console arguments\nas breadcrumbs, which would put a live session credential in a third-party\nerror tracker on a double-tap.","operationId":"kenni_session_auth_kenni_session_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KenniSessionInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/email":{"post":{"summary":"Set Account Email","description":"Store the caller's email address, then try to confirm it.\n\nThe order is the entire point. The address is written first and the send is\nallowed to fail; nothing about the account depends on a third party\ndelivering mail.","operationId":"set_account_email_account_email_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetEmailInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/email/confirm":{"get":{"summary":"Confirm Account Email","description":"The link in the confirmation mail. Flips email_confirmed_at.","operationId":"confirm_account_email_account_email_confirm_get","parameters":[{"name":"uid","in":"query","required":false,"schema":{"type":"string","default":"","title":"Uid"}},{"name":"email","in":"query","required":false,"schema":{"type":"string","default":"","title":"Email"}},{"name":"exp","in":"query","required":false,"schema":{"type":"string","default":"","title":"Exp"}},{"name":"sig","in":"query","required":false,"schema":{"type":"string","default":"","title":"Sig"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AdEventBatch":{"properties":{"events":{"items":{"$ref":"#/components/schemas/AdEventIn"},"type":"array","maxItems":100,"minItems":1,"title":"Events"}},"type":"object","required":["events"],"title":"AdEventBatch"},"AdEventIn":{"properties":{"event_type":{"type":"string","title":"Event Type"},"device_id":{"type":"string","maxLength":64,"minLength":1,"title":"Device Id"},"session_id":{"type":"string","title":"Session Id"},"slot":{"type":"integer","minimum":0.0,"title":"Slot"},"surface":{"type":"string","title":"Surface"},"creative_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Creative Id"},"flight_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Flight Id"},"house_ad_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"House Ad Id"},"client_occurred_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Occurred At"}},"type":"object","required":["event_type","device_id","session_id","slot","surface"],"title":"AdEventIn"},"AdminBroadcastInput":{"properties":{"title":{"type":"string","title":"Title"},"body":{"type":"string","title":"Body"},"route":{"type":"string","title":"Route","default":"/"},"audience":{"type":"string","title":"Audience","default":"all"}},"type":"object","required":["title","body"],"title":"AdminBroadcastInput"},"AnalyzeListingInput":{"properties":{"image_urls":{"items":{"type":"string"},"type":"array","title":"Image Urls"},"locale":{"type":"string","title":"Locale","default":"is"},"currency":{"type":"string","title":"Currency","default":"ISK"},"country":{"type":"string","title":"Country","default":"Iceland"},"categories":{"items":{"$ref":"#/components/schemas/CategoryInput"},"type":"array","title":"Categories"}},"type":"object","required":["image_urls","categories"],"title":"AnalyzeListingInput"},"BackfillTargetGenderBody":{"properties":{"limit":{"type":"integer","title":"Limit","default":50},"dry_run":{"type":"boolean","title":"Dry Run","default":true},"min_confidence":{"type":"string","title":"Min Confidence","default":"high"},"retry_errors":{"type":"boolean","title":"Retry Errors","default":false}},"type":"object","title":"BackfillTargetGenderBody"},"BlikkWebhookPayload":{"properties":{"id":{"type":"string","title":"Id"},"status":{"type":"string","title":"Status"},"amount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Amount"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"createdAt":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Createdat"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"sourceReferenceId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sourcereferenceid"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["id","status"],"title":"BlikkWebhookPayload"},"CAPIEvent":{"properties":{"event_name":{"type":"string","title":"Event Name"},"event_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Id"},"event_time":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Event Time"},"user_agent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Agent"},"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Url"},"content_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Content Ids"},"content_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Type"},"content_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Name"},"content_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Category"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"},"currency":{"type":"string","title":"Currency","default":"ISK"},"num_items":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Items"},"search_string":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search String"},"order_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order Id"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"external_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Id"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"zip_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zip Code"},"fbp":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fbp"},"fbc":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fbc"}},"type":"object","required":["event_name"],"title":"CAPIEvent"},"CancelRegistrationInput":{"properties":{"payment_id":{"type":"string","title":"Payment Id"}},"type":"object","required":["payment_id"],"title":"CancelRegistrationInput"},"CategoryInput":{"properties":{"id":{"type":"integer","title":"Id"},"name_is":{"type":"string","title":"Name Is"},"name_en":{"type":"string","title":"Name En"},"parent_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parent Id"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"}},"type":"object","required":["id","name_is","name_en"],"title":"CategoryInput"},"ChatNotificationInput":{"properties":{"conversation_id":{"type":"integer","title":"Conversation Id"},"message_preview":{"type":"string","title":"Message Preview","default":""}},"type":"object","required":["conversation_id"],"title":"ChatNotificationInput"},"CheckPhotoInput":{"properties":{"bucket_id":{"type":"string","title":"Bucket Id"},"image_name":{"type":"string","title":"Image Name"}},"type":"object","required":["bucket_id","image_name"],"title":"CheckPhotoInput"},"CheckPhotoOutput":{"properties":{"issues":{"items":{"type":"string"},"type":"array","title":"Issues"}},"type":"object","required":["issues"],"title":"CheckPhotoOutput"},"ConceptQueryInput":{"properties":{"query":{"type":"string","title":"Query"}},"type":"object","required":["query"],"title":"ConceptQueryInput"},"CreateBuyerPaymentInput":{"properties":{"listing_id":{"type":"integer","title":"Listing Id"},"claim_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Claim Id"},"proposal_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Proposal Id"}},"type":"object","required":["listing_id"],"title":"CreateBuyerPaymentInput"},"CreateFeePaymentInput":{"properties":{"listing_id":{"type":"integer","title":"Listing Id"}},"type":"object","required":["listing_id"],"title":"CreateFeePaymentInput"},"ExchangeNotConfirmedRequest":{"properties":{"listing_id":{"type":"integer","title":"Listing Id"},"buyer_id":{"type":"string","title":"Buyer Id","default":""},"reason":{"type":"string","title":"Reason","default":""}},"type":"object","required":["listing_id"],"title":"ExchangeNotConfirmedRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"KenniAttachInput":{"properties":{"claim_token":{"type":"string","maxLength":512,"minLength":16,"title":"Claim Token"}},"type":"object","required":["claim_token"],"title":"KenniAttachInput"},"KenniNonceInput":{"properties":{"redirect_uri":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Redirect Uri"},"return_url":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Return Url"},"dev":{"type":"boolean","title":"Dev","default":false}},"type":"object","title":"KenniNonceInput"},"KenniSessionInput":{"properties":{"code":{"type":"string","maxLength":512,"title":"Code"},"nonce":{"type":"string","maxLength":512,"minLength":16,"title":"Nonce"},"redirect_uri":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Redirect Uri"},"create_account":{"type":"boolean","title":"Create Account","default":false}},"type":"object","required":["code","nonce"],"title":"KenniSessionInput"},"ListingClaim":{"properties":{"id":{"type":"integer","title":"Id"}},"type":"object","required":["id"],"title":"ListingClaim","description":"Model for a listing claim."},"ListingClaimInput":{"properties":{"record":{"$ref":"#/components/schemas/ListingClaim"}},"type":"object","required":["record"],"title":"ListingClaimInput","description":"Model for a listing claim input (from supabase triggers)."},"ListingOfferInput":{"properties":{"offer_id":{"type":"integer","title":"Offer Id"}},"type":"object","required":["offer_id"],"title":"ListingOfferInput"},"ListingPriceLoweredInput":{"properties":{"listing_id":{"type":"integer","title":"Listing Id"}},"type":"object","required":["listing_id"],"title":"ListingPriceLoweredInput"},"ListingProposalDecision":{"properties":{"id":{"type":"integer","title":"Id"},"accepted":{"type":"boolean","title":"Accepted"},"slot_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slot Date"},"slot_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slot Time"},"is_counter":{"type":"boolean","title":"Is Counter","default":false},"auto_rejected":{"type":"boolean","title":"Auto Rejected","default":false},"cancelled_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cancelled At"}},"type":"object","required":["id","accepted"],"title":"ListingProposalDecision","description":"Model for a listing_proposal_decision row."},"ListingProposalDecisionInput":{"properties":{"record":{"$ref":"#/components/schemas/ListingProposalDecision"}},"type":"object","required":["record"],"title":"ListingProposalDecisionInput","description":"Supabase trigger input."},"ListingQaReplyInput":{"properties":{"message_id":{"type":"integer","title":"Message Id"}},"type":"object","required":["message_id"],"title":"ListingQaReplyInput"},"ListingQuestionInput":{"properties":{"listing_id":{"type":"integer","title":"Listing Id"},"question":{"type":"string","title":"Question","default":""}},"type":"object","required":["listing_id"],"title":"ListingQuestionInput"},"ListingSlotProposal":{"properties":{"id":{"type":"integer","title":"Id"},"listing_id":{"type":"integer","title":"Listing Id"},"proposing_user_id":{"type":"string","title":"Proposing User Id"},"slots":{"items":{"$ref":"#/components/schemas/Slot"},"type":"array","title":"Slots"},"offer_price":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Offer Price"},"parent_proposal_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parent Proposal Id"},"buyer_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Buyer User Id"}},"type":"object","required":["id","listing_id","proposing_user_id","slots"],"title":"ListingSlotProposal","description":"Model for a listing_slot_proposal row."},"ListingSlotProposalInput":{"properties":{"record":{"$ref":"#/components/schemas/ListingSlotProposal"}},"type":"object","required":["record"],"title":"ListingSlotProposalInput","description":"Supabase trigger input."},"ParseAlertInput":{"properties":{"text":{"type":"string","maxLength":200,"minLength":2,"title":"Text"},"locale":{"type":"string","title":"Locale","default":"is"},"currency":{"type":"string","title":"Currency","default":"ISK"},"country":{"type":"string","title":"Country","default":"Iceland"},"categories":{"items":{"$ref":"#/components/schemas/CategoryInput"},"type":"array","maxItems":400,"title":"Categories"},"regions":{"items":{"$ref":"#/components/schemas/RegionInput"},"type":"array","maxItems":40,"title":"Regions"},"towns":{"items":{"$ref":"#/components/schemas/TownInput"},"type":"array","maxItems":180,"title":"Towns"}},"type":"object","required":["text","categories"],"title":"ParseAlertInput"},"PendingListingNotifyInput":{"properties":{"listing_id":{"type":"integer","title":"Listing Id","description":"Listing the seller just published (not a draft)."}},"type":"object","required":["listing_id"],"title":"PendingListingNotifyInput"},"RegionInput":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"RegionInput"},"RejectListingInput":{"properties":{"listing_id":{"type":"integer","title":"Listing Id","description":"ID of the listing to reject."},"reason":{"type":"string","maxLength":500,"minLength":1,"title":"Reason","description":"Reason for rejection shown to the seller."}},"type":"object","required":["listing_id","reason"],"title":"RejectListingInput"},"RerankCandidate":{"properties":{"id":{"type":"integer","title":"Id"},"title":{"type":"string","maxLength":400,"title":"Title","default":""}},"type":"object","required":["id"],"title":"RerankCandidate"},"RerankInput":{"properties":{"query":{"type":"string","maxLength":320,"title":"Query"},"candidates":{"items":{"$ref":"#/components/schemas/RerankCandidate"},"type":"array","maxItems":200,"title":"Candidates"}},"type":"object","required":["query","candidates"],"title":"RerankInput"},"ScheduleDecisionNotify":{"properties":{"proposal_id":{"type":"integer","title":"Proposal Id"},"accepted":{"type":"boolean","title":"Accepted"}},"type":"object","required":["proposal_id","accepted"],"title":"ScheduleDecisionNotify"},"ScheduleProposalNotify":{"properties":{"proposal_id":{"type":"integer","title":"Proposal Id"}},"type":"object","required":["proposal_id"],"title":"ScheduleProposalNotify"},"SellerMarkPaidRequest":{"properties":{"listing_id":{"type":"integer","title":"Listing Id"},"buyer_id":{"type":"string","title":"Buyer Id","default":""}},"type":"object","required":["listing_id"],"title":"SellerMarkPaidRequest"},"SetEmailInput":{"properties":{"email":{"type":"string","maxLength":254,"title":"Email"}},"type":"object","required":["email"],"title":"SetEmailInput"},"ShareOpenInput":{"properties":{"listing_id":{"type":"integer","title":"Listing Id"}},"type":"object","required":["listing_id"],"title":"ShareOpenInput"},"Slot":{"properties":{"date":{"type":"string","title":"Date"},"time":{"type":"string","title":"Time"}},"type":"object","required":["date","time"],"title":"Slot"},"TownInput":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"region_id":{"type":"string","title":"Region Id"}},"type":"object","required":["id","name","region_id"],"title":"TownInput"},"UnrejectListingInput":{"properties":{"listing_id":{"type":"integer","title":"Listing Id","description":"ID of the listing to un-reject."}},"type":"object","required":["listing_id"],"title":"UnrejectListingInput"},"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"},"WishAnswerPushInput":{"properties":{"listing_id":{"type":"integer","title":"Listing Id"}},"type":"object","required":["listing_id"],"title":"WishAnswerPushInput"}}}}