{"openapi":"3.1.0","info":{"title":"Play Data Safety Mapper API","version":"0.1.0","description":"Pay-per-call API (x402, USDC) that turns an Android app's permissions, SDKs and declared data into a DRAFT Google Play Data safety form and privacy-policy clauses. Draft for a human to review. Not legal advice and not an official Google answer.","x-guidance":"Use POST /v1/map-data-safety with JSON bodies. Unpaid calls receive HTTP 402 with x402 payment terms. See /llms.txt.","termsOfService":"https://ordstirr.com/agents/terms","contact":{"url":"https://ordstirr.com"}},"servers":[{"url":"https://datasafety.ordstirr.com"}],"paths":{"/health":{"get":{"operationId":"health","summary":"Free health check","security":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/map-data-safety":{"post":{"operationId":"mapPlayDataSafety","summary":"Draft Google Play Data safety answers and privacy-policy clauses from an Android app's permissions, SDKs and declared data","description":"Send the Android permissions, SDK names and (optionally) what your app sends off the device. Returns a DRAFT Data safety mapping: which data types are collected or shared, purposes, security-practice answers, questions a human must settle, and draft privacy-policy sentences. Every answer is a draft for a human to review; it is not legal advice. Unpaid calls receive HTTP 402 with x402 payment terms. Invalid input is rejected with HTTP 400 and never charged.","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.05"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"app_name":{"type":"string","maxLength":100},"permissions":{"type":"array","maxItems":120,"items":{"type":"string","description":"Android permission, full (android.permission.CAMERA) or short (CAMERA)"}},"sdks":{"type":"array","maxItems":60,"items":{"type":"string","enum":["admob","firebase_analytics","firebase_crashlytics","firebase_auth","firebase_messaging","google_sign_in","play_billing","play_integrity","facebook_sdk","sentry","onesignal","appsflyer","adjust","google_maps","mapbox"]},"description":"Known SDK ids"},"off_device":{"description":"What leaves the device: \"none\" (everything stays on the phone), \"all\" (everything the permissions allow is sent), \"unknown\" (default; the answer is marked confirm), or an array of data type ids (or categories such as \"location\").","oneOf":[{"enum":["none","all","unknown"]},{"type":"array","items":{"type":"string","enum":["location.approx","location.precise","personal.name","personal.email","personal.user_ids","personal.address","personal.phone","personal.race","personal.political_religious","personal.sexual_orientation","personal.other","financial.payment_info","financial.purchase_history","financial.credit_info","financial.other","health.health_info","health.fitness_info","messages.emails","messages.sms_mms","messages.in_app","photos_videos.photos","photos_videos.videos","audio.voice_sound","audio.music","audio.other","files_docs.files","calendar.events","contacts.contacts","activity.app_interactions","activity.search_history","activity.installed_apps","activity.user_content","activity.other_actions","web.browsing_history","perf.crash_logs","perf.diagnostics","perf.other","device.ids"]}}]},"features":{"type":"object","properties":{"has_accounts":{"type":"boolean"},"ads":{"type":"boolean"},"analytics":{"type":"boolean"},"crash_reporting":{"type":"boolean"},"in_app_purchases":{"type":"boolean"},"user_generated_content":{"type":"boolean"},"encrypted_in_transit":{"type":"boolean"},"deletion_available":{"type":"boolean"},"targets_children":{"type":"boolean"}},"additionalProperties":false},"collected_data":{"type":"array","maxItems":40,"items":{"type":"object","properties":{"type":{"type":"string","enum":["location.approx","location.precise","personal.name","personal.email","personal.user_ids","personal.address","personal.phone","personal.race","personal.political_religious","personal.sexual_orientation","personal.other","financial.payment_info","financial.purchase_history","financial.credit_info","financial.other","health.health_info","health.fitness_info","messages.emails","messages.sms_mms","messages.in_app","photos_videos.photos","photos_videos.videos","audio.voice_sound","audio.music","audio.other","files_docs.files","calendar.events","contacts.contacts","activity.app_interactions","activity.search_history","activity.installed_apps","activity.user_content","activity.other_actions","web.browsing_history","perf.crash_logs","perf.diagnostics","perf.other","device.ids"]},"shared":{"type":"boolean"},"purposes":{"type":"array","items":{"type":"string","enum":["app_functionality","analytics","developer_communications","advertising","fraud_security","personalization","account_management"]}},"optional":{"type":"boolean"}},"required":["type"],"additionalProperties":false}}},"required":["permissions"],"additionalProperties":false},"example":{"app_name":"Example Timer","permissions":["android.permission.INTERNET","android.permission.VIBRATE","com.google.android.gms.permission.AD_ID"],"sdks":["admob"],"off_device":"none","features":{"encrypted_in_transit":true,"deletion_available":false}}}}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object"},"example":{"draft_only":true,"summary":{"collects_or_shares_user_data":true,"collected_types":["Device or other IDs"],"shared_types":["Device or other IDs"],"needs_confirmation":[]},"data_types":[{"id":"device.ids","category":"Device or other IDs","data_type":"Device or other IDs","collected":true,"shared":true,"purposes":["Advertising or marketing"]}],"terms_url":"https://ordstirr.com/agents/terms","notice":"Draft - review before submitting to Google Play. Not legal or compliance advice."}}}},"400":{"description":"Invalid input (never charged)"},"402":{"description":"Payment required (x402). See the PAYMENT-REQUIRED header."},"413":{"description":"Request body too large (never charged)"}}}}}}