{"openapi":"3.1.0","info":{"title":"SubHero public API","version":"1.0.0","description":"Project-scoped subscription APIs. Monetary values use decimal strings. Store callbacks require verified signatures. Console and internal operations are not public APIs."},"servers":[{"url":"/"}],"components":{"securitySchemes":{"serverKey":{"type":"http","scheme":"bearer","description":"Secret per-project server key. Never ship in a mobile app."},"sdkSession":{"type":"http","scheme":"bearer","description":"Short-lived session issued to a device key; identifies exactly one subscriber."},"publishableKey":{"type":"http","scheme":"bearer","description":"pk_live_ or pk_test_ key, used only to establish a signed SDK session."},"googleOidc":{"type":"http","scheme":"bearer","description":"Google-signed Pub/Sub OIDC token with the configured audience and service account."},"mcpOAuth":{"type":"http","scheme":"bearer","description":"Read-only OAuth access token obtained with PKCE S256 and user consent."},"consoleSession":{"type":"apiKey","in":"cookie","name":"sh_session","description":"Signed-in console consent session; not a mobile authentication method."}}},"paths":{"/.well-known/oauth-authorization-server":{"get":{"summary":"Discover OAuth metadata","security":[],"parameters":[],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"default":{"description":"Request rejected or temporarily unavailable; error and detail are returned when available","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}}},"/.well-known/oauth-protected-resource":{"get":{"summary":"Discover OAuth metadata","security":[],"parameters":[],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"default":{"description":"Request rejected or temporarily unavailable; error and detail are returned when available","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}}},"/.well-known/oauth-protected-resource/mcp":{"get":{"summary":"Discover OAuth metadata","security":[],"parameters":[],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"default":{"description":"Request rejected or temporarily unavailable; error and detail are returned when available","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}}},"/health":{"get":{"summary":"Service health","security":[],"parameters":[],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"default":{"description":"Request rejected or temporarily unavailable; error and detail are returned when available","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}}},"/mcp":{"post":{"summary":"MCP Streamable HTTP transport","description":"POST JSON-RPC 2.0 initialize, tools/list and tools/call. Accept application/json and text/event-stream. Stateless transport; authenticated GET and DELETE return 405. Tool inputs are discoverable through tools/list.","security":[{"mcpOAuth":[]}],"parameters":[],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"202":{"description":"JSON-RPC notification accepted."},"default":{"description":"Request rejected or temporarily unavailable; error and detail are returned when available","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}},"get":{"summary":"MCP Streamable HTTP transport","description":"POST JSON-RPC 2.0 initialize, tools/list and tools/call. Accept application/json and text/event-stream. Stateless transport; authenticated GET and DELETE return 405. Tool inputs are discoverable through tools/list.","security":[{"mcpOAuth":[]}],"parameters":[],"responses":{"405":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"detail":{"type":"string"}},"required":["error"]}}}},"default":{"description":"Request rejected or temporarily unavailable; error and detail are returned when available","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}},"delete":{"summary":"MCP Streamable HTTP transport","description":"POST JSON-RPC 2.0 initialize, tools/list and tools/call. Accept application/json and text/event-stream. Stateless transport; authenticated GET and DELETE return 405. Tool inputs are discoverable through tools/list.","security":[{"mcpOAuth":[]}],"parameters":[],"responses":{"405":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"detail":{"type":"string"}},"required":["error"]}}}},"default":{"description":"Request rejected or temporarily unavailable; error and detail are returned when available","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}}},"/oauth/authorize":{"get":{"summary":"Start PKCE authorization and consent","description":"Initial query uses the OAuth authorization parameters. Redirects to a cookie-bound request parameter and then console sign-in and project consent. The consent page returns text/html.","security":[],"parameters":[{"name":"client_id","in":"query","required":true,"schema":{"type":"string","maxLength":128},"style":"form","explode":true},{"name":"redirect_uri","in":"query","required":true,"schema":{"type":"string","maxLength":2048},"style":"form","explode":true},{"name":"response_type","in":"query","required":true,"schema":{"type":"string","const":"code"},"style":"form","explode":true},{"name":"resource","in":"query","required":true,"schema":{"type":"string","maxLength":2048},"style":"form","explode":true},{"name":"scope","in":"query","required":false,"schema":{"default":"mcp:read","type":"string","const":"mcp:read"},"style":"form","explode":true},{"name":"state","in":"query","required":false,"schema":{"type":"string","maxLength":2048},"style":"form","explode":true},{"name":"code_challenge","in":"query","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{43}$"},"style":"form","explode":true},{"name":"code_challenge_method","in":"query","required":true,"schema":{"type":"string","const":"S256"},"style":"form","explode":true}],"responses":{"200":{"description":"Successful response","content":{"text/html":{"schema":{"type":"string"}}}},"302":{"description":"Continue authorization at the Location URL.","headers":{"Location":{"description":"Consent, sign-in or registered callback URL","schema":{"type":"string"}}}},"default":{"description":"Request rejected or temporarily unavailable; error and detail are returned when available","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}},"post":{"summary":"Approve selected projects or deny OAuth access","security":[{"consoleSession":[]}],"parameters":[],"responses":{"302":{"description":"Continue at the registered callback or consent URL.","headers":{"Location":{"description":"Authorization redirect","schema":{"type":"string"}}}},"default":{"description":"Request rejected or temporarily unavailable; error and detail are returned when available","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}},"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"request":{"type":"string","maxLength":128},"company_id":{"type":"string","pattern":"^[1-9]\\d{0,17}$"},"project_ids":{"default":[],"anyOf":[{"type":"string","pattern":"^[1-9]\\d{0,17}$"},{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[1-9]\\d{0,17}$"}}]},"decision":{"type":"string","enum":["approve","deny"]}},"required":["request","company_id","decision"],"additionalProperties":false}}}}}},"/oauth/register":{"post":{"summary":"Register a public MCP OAuth client","security":[],"parameters":[],"responses":{"201":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"default":{"description":"Request rejected or temporarily unavailable; error and detail are returned when available","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"client_name":{"default":"MCP client","type":"string","minLength":1,"maxLength":100},"redirect_uris":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","maxLength":2048}},"token_endpoint_auth_method":{"default":"none","type":"string","const":"none"},"grant_types":{"default":["authorization_code","refresh_token"],"type":"array","items":{"type":"string","enum":["authorization_code","refresh_token"]}},"response_types":{"default":["code"],"type":"array","items":{"type":"string","const":"code"}}},"required":["redirect_uris"]}}}}}},"/oauth/revoke":{"post":{"summary":"Revoke an OAuth grant","security":[],"parameters":[],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"default":{"description":"Request rejected or temporarily unavailable; error and detail are returned when available","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}},"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"client_id":{"type":"string","maxLength":128},"token":{"type":"string","maxLength":128},"token_type_hint":{"type":"string"}},"required":["client_id","token"]}}}}}},"/oauth/token":{"post":{"summary":"Exchange a PKCE code or rotate a refresh token","security":[],"parameters":[],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"default":{"description":"Request rejected or temporarily unavailable; error and detail are returned when available","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}},"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"oneOf":[{"type":"object","properties":{"grant_type":{"type":"string","const":"authorization_code"},"client_id":{"type":"string","maxLength":128},"resource":{"type":"string","maxLength":2048},"code":{"type":"string","maxLength":128},"code_verifier":{"type":"string","maxLength":128},"redirect_uri":{"type":"string","maxLength":2048}},"required":["grant_type","client_id","resource","code","code_verifier","redirect_uri"],"additionalProperties":false},{"type":"object","properties":{"grant_type":{"type":"string","const":"refresh_token"},"client_id":{"type":"string","maxLength":128},"resource":{"type":"string","maxLength":2048},"refresh_token":{"type":"string","maxLength":128},"scope":{"type":"string","const":"mcp:read"}},"required":["grant_type","client_id","resource","refresh_token"],"additionalProperties":false}]}}}}}},"/v1/attribution":{"post":{"summary":"Register consented MMP join identifiers","security":[{"sdkSession":[]}],"parameters":[],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"registered":{"type":"boolean","const":true}},"required":["registered"]}}}},"default":{"description":"Request rejected or temporarily unavailable; error and detail are returned when available","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"source":{"type":"string","enum":["appsflyer","adjust","branch","singular"]},"device_ids":{"type":"object","propertyNames":{"type":"string","enum":["idfa","idfv","gps_adid","adid","appsflyer_id","singular_id","branch_id"]},"additionalProperties":{"type":"string","minLength":1,"maxLength":256}},"consent":{"type":"boolean","const":true}},"required":["source","device_ids","consent"],"additionalProperties":false}}}}}},"/v1/binding-tokens":{"post":{"summary":"Create a purchase binding token","security":[{"serverKey":[]}],"parameters":[],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"binding_token":{"type":"string"}},"required":["binding_token"]}}}},"default":{"description":"Request rejected or temporarily unavailable; error and detail are returned when available","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"user_id":{"type":"string","minLength":1,"maxLength":128}},"required":["user_id"]}}}}}},"/v1/events":{"post":{"summary":"Record product activity","description":"Up to 100 events per 64 KiB JSON batch; session subject and issued metadata override body identity. 120 requests and 2 MiB/session/min; project daily byte ceiling applies to every caller. 429 includes Retry-After; 413 exceeds body limit. Valid JSON receives per-item acceptance/rejection; malformed IDs have null event_id and input index. Event IDs are deduplicated per project within retention plus30days; older events are rejected, other timestamps clamp to30days past/5minutes future. Custom names must be enabled by a project administrator.","security":[{"serverKey":[]},{"sdkSession":[]}],"parameters":[],"responses":{"202":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"event_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"index":{"type":"integer","minimum":0,"maximum":9007199254740991},"status":{"type":"string","enum":["accepted","duplicate","rejected"]},"occurred_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"clamped":{"type":"boolean"},"error":{"type":"string"}},"required":["event_id","status"]}}},"required":["results"]}}}},"429":{"description":"Event admission limit exceeded","headers":{"Retry-After":{"description":"Seconds until retry","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"detail":{"type":"string"}},"required":["error"]}}}},"default":{"description":"Request rejected or temporarily unavailable; error and detail are returned when available","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"events":{"minItems":1,"maxItems":100,"type":"array","items":{"oneOf":[{"type":"object","properties":{"event_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"occurred_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"name":{"type":"string","const":"app_opened"},"properties":{"type":"object","properties":{"session_id":{"type":"string","minLength":1,"maxLength":128},"locale":{"type":"string","minLength":1,"maxLength":35}},"required":["session_id","locale"]}},"required":["event_id","occurred_at","name","properties"]},{"type":"object","properties":{"event_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"occurred_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"name":{"type":"string","const":"paywall_shown"},"properties":{"type":"object","properties":{"paywall_id":{"type":"string","minLength":1,"maxLength":128},"placement_id":{"type":"string","minLength":1,"maxLength":128},"products":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":300}},"experiment_id":{"type":"string","minLength":1,"maxLength":128},"variant_id":{"type":"string","minLength":1,"maxLength":128},"served_context":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["paywall_id","placement_id","products"]}},"required":["event_id","occurred_at","name","properties"]},{"type":"object","properties":{"event_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"occurred_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"name":{"type":"string","const":"paywall_closed"},"properties":{"type":"object","properties":{"paywall_id":{"type":"string","minLength":1,"maxLength":128},"reason":{"type":"string","enum":["dismissed","purchased","error"]}},"required":["paywall_id","reason"]}},"required":["event_id","occurred_at","name","properties"]},{"type":"object","properties":{"event_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"occurred_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"name":{"type":"string","const":"checkout_started"},"properties":{"type":"object","properties":{"paywall_id":{"type":"string","minLength":1,"maxLength":128},"product_id":{"type":"string","minLength":1,"maxLength":300},"served_context":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["paywall_id","product_id"]}},"required":["event_id","occurred_at","name","properties"]},{"type":"object","properties":{"event_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"occurred_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"name":{"type":"string","const":"checkout_failed"},"properties":{"type":"object","properties":{"paywall_id":{"type":"string","minLength":1,"maxLength":128},"product_id":{"type":"string","minLength":1,"maxLength":300},"error_code":{"type":"string","minLength":1,"maxLength":128}},"required":["paywall_id","product_id","error_code"]}},"required":["event_id","occurred_at","name","properties"]},{"type":"object","properties":{"event_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"occurred_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"name":{"type":"string","const":"restore_requested"},"properties":{"default":{},"type":"object","properties":{}}},"required":["event_id","occurred_at","name"]},{"type":"object","properties":{"event_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"occurred_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"name":{"type":"string","const":"custom"},"properties":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z][A-Za-z0-9_.-]*$"},"properties":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":128},"additionalProperties":{"$ref":"#/$defs/__schema0"}}},"required":["name","properties"]}},"required":["event_id","occurred_at","name","properties"]}]}},"user_id":{},"anonymous_id":{},"environment":{}},"required":["events"],"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}}}}},"/v1/experiments/{id}/results":{"get":{"summary":"Read experiment results","security":[{"serverKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"refresh":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["queued","running","completed","failed"]},"error":{"type":["string","null"]},"requested_at":{"type":"string"}},"required":["status","error","requested_at"]},{"type":"null"}]},"experiment":{"type":"object","properties":{"name":{"type":"string"},"status":{"type":"string","enum":["draft","running","stopped","rolled_out"]},"environment":{"type":"string"}},"required":["name","status","environment"]},"result":{"anyOf":[{"type":"object","properties":{"experiment_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"status":{"type":"string","enum":["draft","running","stopped","rolled_out"]},"environment":{"type":"string"},"currency":{"type":"string"},"computed_at":{"type":"string"},"winner_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"metric_primary":{"type":"string"},"minimum_payers":{"type":"number"},"expected_loss_cap_bp":{"type":"number"},"audience":{"type":"object","properties":{"users":{"type":"number"},"payers":{"type":"number"},"proceeds":{"type":["string","null"]},"arpu":{"type":["string","null"]},"arppu":{"type":["string","null"]},"unvalued":{"type":"number"}},"required":["users","payers","proceeds","arpu","arppu","unvalued"]},"variants":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"key":{"type":"string"},"users":{"type":"number"},"served_users":{"type":"number"},"paywall_shown":{"type":"number"},"shown_users":{"type":"number"},"trials":{"type":"number"},"intro":{"type":"number"},"payers":{"type":"number"},"purchases":{"type":"number"},"off_variant_purchases":{"type":"number"},"refunds":{"type":"number"},"refund_rate":{"type":["number","null"]},"conversion_rate":{"type":["number","null"]},"gross":{"type":["string","null"]},"sales":{"type":["string","null"]},"proceeds":{"type":["string","null"]},"arpu":{"type":["string","null"]},"arppu":{"type":["string","null"]},"unvalued":{"type":"number"},"conversion_statistics":{"type":"object","properties":{"probabilityBest":{"type":"number"},"expectedLoss":{"type":"number"},"mean":{"type":"number"},"interval":{"type":"array","items":{"type":"number"}}},"required":["probabilityBest","expectedLoss","mean","interval"]},"revenue_statistics":{"anyOf":[{"type":"object","properties":{"probabilityBest":{"type":"number"},"mean":{"type":"string"},"expectedLoss":{"type":"string"},"interval":{"type":"array","items":{"type":"string"}}},"required":["probabilityBest","mean","expectedLoss","interval"]},{"type":"null"}]},"prediction":{"anyOf":[{"type":"object","properties":{"currency":{"type":"string"},"proceeds_per_1000_at_12_months":{"type":"string"},"segments":{"type":"array","items":{"type":"object","properties":{"period":{"type":"string"},"fallback":{"type":"string"},"ltv":{"type":"string"},"curve":{"type":"array","items":{"type":"number"}}},"required":["period","fallback","ltv","curve"]}}},"required":["currency","proceeds_per_1000_at_12_months","segments"]},{"type":"null"}]},"rollout_reasons":{"type":"array","items":{"type":"string"}}},"required":["id","key","users","served_users","paywall_shown","shown_users","trials","intro","payers","purchases","off_variant_purchases","refunds","refund_rate","conversion_rate","gross","sales","proceeds","arpu","arppu","unvalued","conversion_statistics","revenue_statistics","prediction","rollout_reasons"]}},"notes":{"type":"array","items":{"type":"string"}}},"required":["experiment_id","name","status","environment","currency","computed_at","metric_primary","minimum_payers","expected_loss_cap_bp","audience","variants","notes"]},{"type":"null"}]}},"required":["refresh","experiment","result"]}}}},"400":{"description":"Invalid experiment identifier","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"detail":{"type":"string"}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"detail":{"type":"string"}},"required":["error"]}}}},"403":{"description":"Server key required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"detail":{"type":"string"}},"required":["error"]}}}},"404":{"description":"Experiment not found in this project","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"detail":{"type":"string"}},"required":["error"]}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"detail":{"type":"string"}},"required":["error"]}}}},"default":{"description":"Request rejected or temporarily unavailable; error and detail are returned when available","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}}},"/v1/ingest":{"post":{"summary":"Verify and bind a store purchase","description":"SDK subjects come from the session; body user_id is ignored. Server callers must provide user_id. Apple requires jws_transaction; Google requires purchase_token and product_id. 409 means ownership is unresolved; never finish or acknowledge on an ambiguous response.","security":[{"serverKey":[]},{"sdkSession":[]}],"parameters":[],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"bound":{"type":"boolean","const":true},"entitlements":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"active":{"type":"boolean"},"active_until":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"will_renew":{"type":"boolean"},"state":{"type":"string"},"is_family_shared":{"type":"boolean"},"product_id":{"type":"string"},"store":{"type":"string","enum":["app_store","play_store"]}},"required":["key","active","active_until","will_renew","state","is_family_shared","product_id","store"]}}},"required":["bound","entitlements"]},{"type":"object","properties":{"bound":{"type":"boolean","const":false},"owner":{"type":"string","const":"other"}},"required":["bound","owner"]},{"type":"object","properties":{"bound":{"type":"boolean","const":false},"reason":{"type":"string"}},"required":["bound","reason"]}]}}}},"409":{"description":"Purchase binding conflicts with an established owner. Do not finish or acknowledge.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"detail":{"type":"string"}},"required":["error"]}}}},"422":{"description":"Invalid or unverifiable purchase, including environment mismatch.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"detail":{"type":"string"}},"required":["error"]}}}},"default":{"description":"Request rejected or temporarily unavailable; error and detail are returned when available","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"store":{"type":"string","enum":["app_store","play_store"]},"served_context":{"type":"string","maxLength":128},"user_id":{"type":"string","minLength":1,"maxLength":128},"jws_transaction":{"type":"string","minLength":1,"maxLength":100000},"purchase_token":{"type":"string","minLength":1,"maxLength":10000},"product_id":{"type":"string","minLength":1,"maxLength":300},"app_instance_id":{"type":"string","maxLength":300},"device_ids":{"type":"object","properties":{"idfa":{"type":"string","minLength":1,"maxLength":128},"gps_adid":{"type":"string","minLength":1,"maxLength":128},"adid":{"type":"string","minLength":1,"maxLength":128},"idfv":{"type":"string","minLength":1,"maxLength":128},"appsflyer_id":{"type":"string","minLength":1,"maxLength":128},"singular_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"tenjin_id":{"type":"string","minLength":1,"maxLength":128}},"additionalProperties":false},"analytics_context":{"type":"object","properties":{"device_make":{"type":"string","minLength":1,"maxLength":64},"device_model":{"type":"string","minLength":1,"maxLength":64},"locale":{"type":"string","pattern":"^[a-z]{2}_[A-Z]{2}$"},"build_id":{"type":"string","minLength":1,"maxLength":64},"os_version":{"type":"string","minLength":1,"maxLength":64},"app_version":{"type":"string","minLength":1,"maxLength":64},"att_status":{"type":"integer","minimum":0,"maximum":3},"limit_data_sharing":{"type":"boolean"}},"additionalProperties":false}},"required":["store"]}}}}}},"/v1/metrics/acquisition":{"get":{"summary":"Read acquisition cohorts and exact CPA/ROAS/ROMI","security":[{"serverKey":[]}],"parameters":[{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string"}}]},"style":"form","explode":true},{"name":"store_country","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string"}}]},"style":"form","explode":true},{"name":"platform","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["ios","android","web","unknown"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["ios","android","web","unknown"]}}]},"style":"form","explode":true},{"name":"store","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["app_store","play_store"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["app_store","play_store"]}}]},"style":"form","explode":true},{"name":"product_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","maxLength":256}}]},"style":"form","explode":true},{"name":"duration","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(?:P[1-9][0-9]*(?:D|W|M|Y)|lifetime|unknown)$"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","pattern":"^(?:P[1-9][0-9]*(?:D|W|M|Y)|lifetime|unknown)$"}}]},"style":"form","explode":true},{"name":"with_trial","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["yes","no","unknown"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["yes","no","unknown"]}}]},"style":"form","explode":true},{"name":"with_intro","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["yes","no","unknown"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["yes","no","unknown"]}}]},"style":"form","explode":true},{"name":"app_version","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"style":"form","explode":true},{"name":"channel","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"style":"form","explode":true},{"name":"campaign","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"style":"form","explode":true},{"name":"adset","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"style":"form","explode":true},{"name":"experiment","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}]},"style":"form","explode":true},{"name":"variant","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}]},"style":"form","explode":true},{"name":"first_seen_from","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"style":"form","explode":true},{"name":"first_seen_to","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"style":"form","explode":true},{"name":"new_existing","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["new","existing"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["new","existing"]}}]},"style":"form","explode":true},{"name":"segment_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"style":"form","explode":true},{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"style":"form","explode":true},{"name":"to","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"style":"form","explode":true},{"name":"group_by","in":"query","required":false,"schema":{"default":"campaign","type":"string","enum":["channel","campaign","adset"]},"style":"form","explode":true}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"channel":{"type":"string"},"campaign":{"type":"string"},"adset":{"type":"string"},"spend":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},{"type":"null"}]},"installs":{"type":"string","pattern":"^\\d+$"},"new_subscribers":{"type":"string","pattern":"^\\d+$"},"trials":{"type":"string","pattern":"^\\d+$"},"payers":{"type":"string","pattern":"^\\d+$"},"proceeds":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},{"type":"null"}]},"predicted_180":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},{"type":"null"}]},"predicted_365":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},{"type":"null"}]},"cpa":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},{"type":"null"}]},"roas":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},{"type":"null"}]},"romi":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},{"type":"null"}]},"predicted_roas_180":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},{"type":"null"}]},"predicted_roas_365":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},{"type":"null"}]},"unmatched_spend":{"type":"boolean"}},"required":["channel","campaign","adset","spend","installs","new_subscribers","trials","payers","proceeds","predicted_180","predicted_365","cpa","roas","romi","predicted_roas_180","predicted_roas_365","unmatched_spend"],"additionalProperties":false}},"meta":{"type":"object","properties":{"filters":{"type":"object","properties":{"country":{"anyOf":[{"type":"string"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string"}}]},"store_country":{"anyOf":[{"type":"string"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string"}}]},"platform":{"anyOf":[{"type":"string","enum":["ios","android","web","unknown"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["ios","android","web","unknown"]}}]},"store":{"anyOf":[{"type":"string","enum":["app_store","play_store"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["app_store","play_store"]}}]},"product_id":{"anyOf":[{"type":"string","maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","maxLength":256}}]},"duration":{"anyOf":[{"type":"string","pattern":"^(?:P[1-9][0-9]*(?:D|W|M|Y)|lifetime|unknown)$"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","pattern":"^(?:P[1-9][0-9]*(?:D|W|M|Y)|lifetime|unknown)$"}}]},"with_trial":{"anyOf":[{"type":"string","enum":["yes","no","unknown"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["yes","no","unknown"]}}]},"with_intro":{"anyOf":[{"type":"string","enum":["yes","no","unknown"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["yes","no","unknown"]}}]},"app_version":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"channel":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"campaign":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"adset":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"experiment":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}]},"variant":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}]},"first_seen_from":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"first_seen_to":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"new_existing":{"anyOf":[{"type":"string","enum":["new","existing"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["new","existing"]}}]},"segment_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"additionalProperties":false},"from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"to":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"group_by":{"type":"string","enum":["channel","campaign","adset"]},"currency":{"type":"string"},"computed_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"cohort_basis":{"type":"string","const":"primary_install_or_first_seen"},"revenue_through":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"spend_basis":{"type":"string","const":"network_account_reporting_day"},"quality":{"type":"object","properties":{"fx_missing":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"spend_unallocated":{"type":"boolean"},"predictions_stale":{"type":"boolean"},"unmatched_installs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["fx_missing","spend_unallocated","predictions_stale","unmatched_installs"]}},"required":["filters","from","to","group_by","currency","computed_at","cohort_basis","revenue_through","spend_basis","quality"],"additionalProperties":false}},"required":["data","meta"],"additionalProperties":false}}}},"default":{"description":"Request rejected or temporarily unavailable; error and detail are returned when available","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}}},"/v1/metrics/cashflow":{"get":{"summary":"Forecast cashflow from existing subscribers","description":"Conditional survival, 500 seeded simulations, decimal money and explicit unknown coverage. Twelve calendar months from as_of; partial first and last calendar buckets are retained.","security":[{"serverKey":[]}],"parameters":[{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string"}}]},"style":"form","explode":true},{"name":"store_country","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string"}}]},"style":"form","explode":true},{"name":"platform","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["ios","android","web","unknown"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["ios","android","web","unknown"]}}]},"style":"form","explode":true},{"name":"store","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["app_store","play_store"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["app_store","play_store"]}}]},"style":"form","explode":true},{"name":"product_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","maxLength":256}}]},"style":"form","explode":true},{"name":"duration","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(?:P[1-9][0-9]*(?:D|W|M|Y)|lifetime|unknown)$"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","pattern":"^(?:P[1-9][0-9]*(?:D|W|M|Y)|lifetime|unknown)$"}}]},"style":"form","explode":true},{"name":"with_trial","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["yes","no","unknown"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["yes","no","unknown"]}}]},"style":"form","explode":true},{"name":"with_intro","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["yes","no","unknown"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["yes","no","unknown"]}}]},"style":"form","explode":true},{"name":"app_version","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"style":"form","explode":true},{"name":"channel","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"style":"form","explode":true},{"name":"campaign","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"style":"form","explode":true},{"name":"adset","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"style":"form","explode":true},{"name":"experiment","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}]},"style":"form","explode":true},{"name":"variant","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}]},"style":"form","explode":true},{"name":"first_seen_from","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"style":"form","explode":true},{"name":"first_seen_to","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"style":"form","explode":true},{"name":"new_existing","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["new","existing"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["new","existing"]}}]},"style":"form","explode":true},{"name":"segment_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"style":"form","explode":true},{"name":"as_of","in":"query","required":false,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"style":"form","explode":true}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"months":{"type":"array","items":{"type":"object","properties":{"month":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"expected":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},{"type":"null"}]},"valued_expected":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},{"type":"null"}]},"p10":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},{"type":"null"}]},"p90":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},{"type":"null"}]},"recovery_expected":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},{"type":"null"}]},"valued_recovery_expected":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},{"type":"null"}]},"recovery_p10":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},{"type":"null"}]},"recovery_p90":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},{"type":"null"}]}},"required":["month","expected","p10","p90","recovery_expected","recovery_p10","recovery_p90"]}},"observed":{"type":"array","items":{"type":"object","properties":{"month":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"proceeds":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},{"type":"null"}]}},"required":["month","proceeds"]}},"total_expected":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},{"type":"null"}]},"total_valued_expected":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},{"type":"null"}]},"total_valued_recovery":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},{"type":"null"}]},"total_recovery":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},{"type":"null"}]},"first_month_expected":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},{"type":"null"}]}},"required":["months","observed","total_expected","total_recovery","first_month_expected"]},"meta":{"type":"object","properties":{"as_of":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"horizon_start":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"horizon_end":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"currency":{"type":"string","minLength":3,"maxLength":3},"computed_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"status":{"default":"ready","type":"string","enum":["ready","not_recorded"]},"estimate":{"type":"boolean","const":true},"simulations":{"type":"number","const":500},"filters":{"type":"object","properties":{"country":{"anyOf":[{"type":"string"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string"}}]},"store_country":{"anyOf":[{"type":"string"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string"}}]},"platform":{"anyOf":[{"type":"string","enum":["ios","android","web","unknown"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["ios","android","web","unknown"]}}]},"store":{"anyOf":[{"type":"string","enum":["app_store","play_store"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["app_store","play_store"]}}]},"product_id":{"anyOf":[{"type":"string","maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","maxLength":256}}]},"duration":{"anyOf":[{"type":"string","pattern":"^(?:P[1-9][0-9]*(?:D|W|M|Y)|lifetime|unknown)$"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","pattern":"^(?:P[1-9][0-9]*(?:D|W|M|Y)|lifetime|unknown)$"}}]},"with_trial":{"anyOf":[{"type":"string","enum":["yes","no","unknown"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["yes","no","unknown"]}}]},"with_intro":{"anyOf":[{"type":"string","enum":["yes","no","unknown"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["yes","no","unknown"]}}]},"app_version":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"channel":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"campaign":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"adset":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"experiment":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}]},"variant":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}]},"first_seen_from":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"first_seen_to":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"new_existing":{"anyOf":[{"type":"string","enum":["new","existing"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["new","existing"]}}]}},"additionalProperties":false},"quality":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"}},"warnings":{"type":"array","items":{"type":"string"}},"source_version":{"type":"string"}},"required":["as_of","horizon_start","horizon_end","currency","computed_at","estimate","simulations","filters","quality","warnings","source_version"]}},"required":["data","meta"]}}}},"default":{"description":"Request rejected or temporarily unavailable; error and detail are returned when available","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}}},"/v1/metrics/cashflow/refresh":{"post":{"summary":"Request a current-day forecast worker snapshot","security":[{"serverKey":[]}],"parameters":[],"responses":{"200":{"description":"Already recorded"},"202":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"queued"}},"required":["status"]}}}},"503":{"description":"Worker unavailable"},"default":{"description":"Request rejected or temporarily unavailable; error and detail are returned when available","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"country":{"anyOf":[{"type":"string"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string"}}]},"store_country":{"anyOf":[{"type":"string"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string"}}]},"platform":{"anyOf":[{"type":"string","enum":["ios","android","web","unknown"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["ios","android","web","unknown"]}}]},"store":{"anyOf":[{"type":"string","enum":["app_store","play_store"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["app_store","play_store"]}}]},"product_id":{"anyOf":[{"type":"string","maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","maxLength":256}}]},"duration":{"anyOf":[{"type":"string","pattern":"^(?:P[1-9][0-9]*(?:D|W|M|Y)|lifetime|unknown)$"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","pattern":"^(?:P[1-9][0-9]*(?:D|W|M|Y)|lifetime|unknown)$"}}]},"with_trial":{"anyOf":[{"type":"string","enum":["yes","no","unknown"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["yes","no","unknown"]}}]},"with_intro":{"anyOf":[{"type":"string","enum":["yes","no","unknown"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["yes","no","unknown"]}}]},"app_version":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"channel":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"campaign":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"adset":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"experiment":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}]},"variant":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}]},"first_seen_from":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"first_seen_to":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"new_existing":{"anyOf":[{"type":"string","enum":["new","existing"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["new","existing"]}}]},"segment_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"as_of":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"additionalProperties":false}}}}}},"/v1/metrics/dashboard":{"get":{"summary":"Read strategic metric tiles and chart series","description":"Production-only, tenant-scoped dimensions and saved segments. Monetary values are exact decimal strings; displays and percentages are calculated server-side. Cached privately for 60 seconds; supports If-None-Match.","security":[{"serverKey":[]}],"parameters":[{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string"}}]},"style":"form","explode":true},{"name":"store_country","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string"}}]},"style":"form","explode":true},{"name":"platform","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["ios","android","web","unknown"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["ios","android","web","unknown"]}}]},"style":"form","explode":true},{"name":"store","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["app_store","play_store"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["app_store","play_store"]}}]},"style":"form","explode":true},{"name":"product_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","maxLength":256}}]},"style":"form","explode":true},{"name":"duration","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(?:P[1-9][0-9]*(?:D|W|M|Y)|lifetime|unknown)$"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","pattern":"^(?:P[1-9][0-9]*(?:D|W|M|Y)|lifetime|unknown)$"}}]},"style":"form","explode":true},{"name":"with_trial","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["yes","no","unknown"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["yes","no","unknown"]}}]},"style":"form","explode":true},{"name":"with_intro","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["yes","no","unknown"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["yes","no","unknown"]}}]},"style":"form","explode":true},{"name":"app_version","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"style":"form","explode":true},{"name":"channel","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"style":"form","explode":true},{"name":"campaign","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"style":"form","explode":true},{"name":"adset","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"style":"form","explode":true},{"name":"experiment","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}]},"style":"form","explode":true},{"name":"variant","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}]},"style":"form","explode":true},{"name":"first_seen_from","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"style":"form","explode":true},{"name":"first_seen_to","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"style":"form","explode":true},{"name":"new_existing","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["new","existing"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["new","existing"]}}]},"style":"form","explode":true},{"name":"segment_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"style":"form","explode":true},{"name":"from","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"style":"form","explode":true},{"name":"to","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"style":"form","explode":true}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"tiles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"group":{"type":"string","enum":["now","range"]},"formatter":{"type":"string","enum":["money","count","percent"]},"value":{"anyOf":[{"type":"string","pattern":"^-?\\d+(?:\\.\\d{1,6})?$"},{"type":"null"}]},"previous":{"anyOf":[{"type":"string","pattern":"^-?\\d+(?:\\.\\d{1,6})?$"},{"type":"null"}]},"delta":{"anyOf":[{"type":"string","pattern":"^-?\\d+(?:\\.\\d{1,6})?$"},{"type":"null"}]},"display":{"type":"string"},"deltaDisplay":{"type":"string"},"href":{"type":"string"},"sparkline":{"type":"string"},"series":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"value":{"anyOf":[{"type":"string","pattern":"^-?\\d+(?:\\.\\d{1,6})?$"},{"type":"null"}]},"display":{"type":"string"}},"required":["date","value","display"]}}},"required":["id","label","group","formatter","value","previous","delta","display","deltaDisplay","href","sparkline","series"]}},"meta":{"type":"object","properties":{"currency":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"},"filters":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}},"previous_from":{"type":"string"},"previous_to":{"type":"string"},"now":{"type":"string"},"estimate":{"type":"boolean"},"quality":{"default":[],"type":"array","items":{"type":"string"}}},"required":["currency","from","to","filters","previous_from","previous_to","now","estimate"]}},"required":["tiles","meta"]}}}},"304":{"description":"Unchanged private representation; use the response cached for this caller and query."},"422":{"description":"Selected financial facts exceed the bounded dashboard budget.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Conversion refresh queue is unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"default":{"description":"Request rejected or temporarily unavailable; error and detail are returned when available","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}}},"/v1/metrics/dimensions/{dimension}/values":{"get":{"summary":"List observed dimension values and counts","security":[{"serverKey":[]}],"parameters":[{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string"}}]},"style":"form","explode":true},{"name":"store_country","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string"}}]},"style":"form","explode":true},{"name":"platform","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["ios","android","web","unknown"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["ios","android","web","unknown"]}}]},"style":"form","explode":true},{"name":"store","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["app_store","play_store"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["app_store","play_store"]}}]},"style":"form","explode":true},{"name":"product_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","maxLength":256}}]},"style":"form","explode":true},{"name":"duration","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(?:P[1-9][0-9]*(?:D|W|M|Y)|lifetime|unknown)$"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","pattern":"^(?:P[1-9][0-9]*(?:D|W|M|Y)|lifetime|unknown)$"}}]},"style":"form","explode":true},{"name":"with_trial","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["yes","no","unknown"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["yes","no","unknown"]}}]},"style":"form","explode":true},{"name":"with_intro","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["yes","no","unknown"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["yes","no","unknown"]}}]},"style":"form","explode":true},{"name":"app_version","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"style":"form","explode":true},{"name":"channel","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"style":"form","explode":true},{"name":"campaign","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"style":"form","explode":true},{"name":"adset","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"style":"form","explode":true},{"name":"experiment","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}]},"style":"form","explode":true},{"name":"variant","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}]},"style":"form","explode":true},{"name":"first_seen_from","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"style":"form","explode":true},{"name":"first_seen_to","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"style":"form","explode":true},{"name":"new_existing","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["new","existing"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["new","existing"]}}]},"style":"form","explode":true},{"name":"segment_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"style":"form","explode":true},{"name":"search","in":"query","required":false,"schema":{"default":"","type":"string","maxLength":100},"style":"form","explode":true},{"name":"dimension","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"values":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["value","count"]}}},"required":["values"]}}}},"default":{"description":"Request rejected or temporarily unavailable; error and detail are returned when available","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}}},"/v1/metrics/funnels":{"get":{"summary":"Read creation-cohort conversion funnels","description":"Production-only, tenant-scoped dimensions and saved segments. Monetary values are exact decimal strings; displays and percentages are calculated server-side. Cached privately for 60 seconds; supports If-None-Match.","security":[{"serverKey":[]}],"parameters":[{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string"}}]},"style":"form","explode":true},{"name":"store_country","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string"}}]},"style":"form","explode":true},{"name":"platform","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["ios","android","web","unknown"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["ios","android","web","unknown"]}}]},"style":"form","explode":true},{"name":"store","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["app_store","play_store"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["app_store","play_store"]}}]},"style":"form","explode":true},{"name":"product_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","maxLength":256}}]},"style":"form","explode":true},{"name":"duration","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(?:P[1-9][0-9]*(?:D|W|M|Y)|lifetime|unknown)$"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","pattern":"^(?:P[1-9][0-9]*(?:D|W|M|Y)|lifetime|unknown)$"}}]},"style":"form","explode":true},{"name":"with_trial","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["yes","no","unknown"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["yes","no","unknown"]}}]},"style":"form","explode":true},{"name":"with_intro","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["yes","no","unknown"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["yes","no","unknown"]}}]},"style":"form","explode":true},{"name":"app_version","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"style":"form","explode":true},{"name":"channel","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"style":"form","explode":true},{"name":"campaign","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"style":"form","explode":true},{"name":"adset","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"style":"form","explode":true},{"name":"experiment","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}]},"style":"form","explode":true},{"name":"variant","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}]},"style":"form","explode":true},{"name":"first_seen_from","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"style":"form","explode":true},{"name":"first_seen_to","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"style":"form","explode":true},{"name":"new_existing","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["new","existing"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["new","existing"]}}]},"style":"form","explode":true},{"name":"segment_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"style":"form","explode":true},{"name":"from","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"style":"form","explode":true},{"name":"to","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"style":"form","explode":true}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["trial","regular","intro"]},"average_renewals":{"anyOf":[{"type":"string","pattern":"^-?\\d+(?:\\.\\d{1,6})?$"},{"type":"null"}]},"steps":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"users":{"type":"integer","minimum":0,"maximum":9007199254740991},"of_new_users":{"anyOf":[{"type":"string","pattern":"^-?\\d+(?:\\.\\d{1,6})?$"},{"type":"null"}]},"of_previous":{"anyOf":[{"type":"string","pattern":"^-?\\d+(?:\\.\\d{1,6})?$"},{"type":"null"}]},"display_users":{"type":"string"},"display_new":{"type":"string"},"display_previous":{"type":"string"}},"required":["label","users","of_new_users","of_previous","display_users","display_new","display_previous"]}},"display_average":{"type":"string"}},"required":["kind","average_renewals","steps","display_average"]}},"meta":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"},"computed_at":{"type":["string","null"]},"refresh_pending":{"type":"boolean"},"refresh_error":{"type":["string","null"]},"filters":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}}},"required":["from","to","computed_at","filters"]}},"required":["data","meta"]}}}},"304":{"description":"Unchanged private representation; use the response cached for this caller and query."},"422":{"description":"Selected financial facts exceed the bounded dashboard budget.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Conversion refresh queue is unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"default":{"description":"Request rejected or temporarily unavailable; error and detail are returned when available","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}}},"/v1/metrics/ltv":{"get":{"summary":"Read ltv analytics","description":"Decimal monetary strings; computed_at and quality describe freshness and coverage. MRR is in report currency. If-None-Match supports 304. Country and product_id accept repeated query parameters.","security":[{"serverKey":[]}],"parameters":[{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string"}}]},"style":"form","explode":true},{"name":"store_country","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string"}}]},"style":"form","explode":true},{"name":"platform","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["ios","android","web","unknown"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["ios","android","web","unknown"]}}]},"style":"form","explode":true},{"name":"store","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["app_store","play_store"]},{"minItems":1,"maxItems":2,"type":"array","items":{"type":"string","enum":["app_store","play_store"]}}]},"style":"form","explode":true},{"name":"product_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","maxLength":256}}]},"style":"form","explode":true},{"name":"duration","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(?:P[1-9][0-9]*(?:D|W|M|Y)|lifetime|unknown)$"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","pattern":"^(?:P[1-9][0-9]*(?:D|W|M|Y)|lifetime|unknown)$"}}]},"style":"form","explode":true},{"name":"with_trial","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["yes","no","unknown"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["yes","no","unknown"]}}]},"style":"form","explode":true},{"name":"with_intro","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["yes","no","unknown"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["yes","no","unknown"]}}]},"style":"form","explode":true},{"name":"app_version","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"style":"form","explode":true},{"name":"channel","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"style":"form","explode":true},{"name":"campaign","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"style":"form","explode":true},{"name":"adset","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"style":"form","explode":true},{"name":"experiment","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}]},"style":"form","explode":true},{"name":"variant","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}]},"style":"form","explode":true},{"name":"first_seen_from","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"style":"form","explode":true},{"name":"first_seen_to","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"style":"form","explode":true},{"name":"new_existing","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["new","existing"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["new","existing"]}}]},"style":"form","explode":true},{"name":"segment_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"style":"form","explode":true},{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"style":"form","explode":true},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"style":"form","explode":true},{"name":"trial_status","in":"query","required":false,"schema":{"type":"string","enum":["via_trial","direct"]},"style":"form","explode":true},{"name":"period_family","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":100},"style":"form","explode":true}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"product_id":{"type":"string"},"store":{"type":"string","enum":["app_store","play_store"]},"country_tier":{"type":"string","enum":["T1","T2","T3","unknown"]},"trial_status":{"type":"string","enum":["via_trial","direct"]},"period_family":{"type":"string"},"period_days":{"anyOf":[{"type":"number","exclusiveMinimum":0},{"type":"null"}]},"alpha":{"anyOf":[{"type":"number","exclusiveMinimum":0},{"type":"null"}]},"beta":{"anyOf":[{"type":"number","exclusiveMinimum":0},{"type":"null"}]},"ll":{"type":["number","null"]},"iterations":{"type":"integer","minimum":0,"maximum":9007199254740991},"fallback_level":{"anyOf":[{"anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3}]},{"type":"null"}]},"n_start":{"type":"integer","minimum":0,"maximum":9007199254740991},"fit_n_start":{"type":"integer","minimum":0,"maximum":9007199254740991},"observed_periods":{"type":"integer","minimum":0,"maximum":9007199254740991},"status":{"type":"string","enum":["fitted","insufficient_data","unidentifiable"]},"ltv_30":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},{"type":"null"}]},"ltv_90":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},{"type":"null"}]},"ltv_180":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},{"type":"null"}]},"ltv_365":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},{"type":"null"}]},"arpu_net":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},{"type":"null"}]},"curve":{"type":"array","items":{"type":"object","properties":{"period":{"type":"integer","minimum":0,"maximum":9007199254740991},"observed":{"anyOf":[{"type":"number","minimum":0,"maximum":1},{"type":"null"}]},"fitted":{"anyOf":[{"type":"number","minimum":0,"maximum":1},{"type":"null"}]}},"required":["period","observed","fitted"]}},"cumulative_curve":{"type":"array","items":{"type":"object","properties":{"day":{"type":"number","minimum":0},"observed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},{"type":"null"}]},"fitted":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},{"type":"null"}]}},"required":["day","observed","fitted"]}},"curve_basis":{"type":"string","const":"retention_times_average_net_proceeds"},"computed_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["product_id","store","country_tier","trial_status","period_family","period_days","alpha","beta","ll","iterations","fallback_level","n_start","fit_n_start","observed_periods","status","ltv_30","ltv_90","ltv_180","ltv_365","arpu_net","curve","cumulative_curve","curve_basis","computed_at"],"additionalProperties":false}},"meta":{"type":"object","properties":{"filters":{"type":"object","properties":{"country":{"type":"array","items":{"type":"string"}},"store_country":{"anyOf":[{"type":"string"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string"}}]},"platform":{"anyOf":[{"type":"string","enum":["ios","android","web","unknown"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["ios","android","web","unknown"]}}]},"store":{"anyOf":[{"type":"string","enum":["app_store","play_store"]},{"type":"array","items":{"type":"string","enum":["app_store","play_store"]}}]},"product_id":{"type":"array","items":{"type":"string"}},"duration":{"anyOf":[{"type":"string","pattern":"^(?:P[1-9][0-9]*(?:D|W|M|Y)|lifetime|unknown)$"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","pattern":"^(?:P[1-9][0-9]*(?:D|W|M|Y)|lifetime|unknown)$"}}]},"with_trial":{"anyOf":[{"type":"string","enum":["yes","no","unknown"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["yes","no","unknown"]}}]},"with_intro":{"anyOf":[{"type":"string","enum":["yes","no","unknown"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["yes","no","unknown"]}}]},"app_version":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"channel":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"campaign":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"adset":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"experiment":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}]},"variant":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}]},"first_seen_from":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"first_seen_to":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"new_existing":{"anyOf":[{"type":"string","enum":["new","existing"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["new","existing"]}}]},"segment_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"to":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"trial_status":{"type":"string","enum":["via_trial","direct"]},"period_family":{"type":"string"}},"additionalProperties":false},"computed_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"estimate":{"type":"boolean","const":true},"currency":{"type":"string","minLength":3,"maxLength":3},"quality":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"}},"refresh_pending":{"type":"boolean"}},"required":["filters","computed_at","estimate","currency","quality","refresh_pending"],"additionalProperties":false}},"required":["data","meta"],"additionalProperties":false}}}},"304":{"description":"Unchanged private representation; use the response cached for this caller and query."},"default":{"description":"Request rejected or temporarily unavailable; error and detail are returned when available","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}}},"/v1/metrics/mrr":{"get":{"summary":"Read mrr analytics","description":"Decimal monetary strings; computed_at and quality describe freshness and coverage. MRR is in report currency. If-None-Match supports 304. Country and product_id accept repeated query parameters.","security":[{"serverKey":[]}],"parameters":[{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string"}}]},"style":"form","explode":true},{"name":"store_country","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string"}}]},"style":"form","explode":true},{"name":"platform","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["ios","android","web","unknown"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["ios","android","web","unknown"]}}]},"style":"form","explode":true},{"name":"store","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["app_store","play_store"]},{"minItems":1,"maxItems":2,"type":"array","items":{"type":"string","enum":["app_store","play_store"]}}]},"style":"form","explode":true},{"name":"product_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","maxLength":256}}]},"style":"form","explode":true},{"name":"duration","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(?:P[1-9][0-9]*(?:D|W|M|Y)|lifetime|unknown)$"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","pattern":"^(?:P[1-9][0-9]*(?:D|W|M|Y)|lifetime|unknown)$"}}]},"style":"form","explode":true},{"name":"with_trial","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["yes","no","unknown"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["yes","no","unknown"]}}]},"style":"form","explode":true},{"name":"with_intro","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["yes","no","unknown"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["yes","no","unknown"]}}]},"style":"form","explode":true},{"name":"app_version","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"style":"form","explode":true},{"name":"channel","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"style":"form","explode":true},{"name":"campaign","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"style":"form","explode":true},{"name":"adset","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"style":"form","explode":true},{"name":"experiment","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}]},"style":"form","explode":true},{"name":"variant","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}]},"style":"form","explode":true},{"name":"first_seen_from","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"style":"form","explode":true},{"name":"first_seen_to","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"style":"form","explode":true},{"name":"new_existing","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["new","existing"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["new","existing"]}}]},"style":"form","explode":true},{"name":"segment_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"style":"form","explode":true},{"name":"from","in":"query","required":true,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"style":"form","explode":true},{"name":"to","in":"query","required":true,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"style":"form","explode":true},{"name":"granularity","in":"query","required":false,"schema":{"default":"day","type":"string","enum":["day","month"]},"style":"form","explode":true},{"name":"currency_mode","in":"query","required":false,"schema":{"default":"report","type":"string","enum":["report","original"]},"style":"form","explode":true},{"name":"group_by","in":"query","required":false,"schema":{"type":"string","enum":["store","country","product","currency"]},"style":"form","explode":true}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"currency":{"type":"string","minLength":3,"maxLength":3},"segment":{"type":"string"},"mrr":{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},"gross":{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},"gross_revenue":{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},"refund_amount":{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},"proceeds_arr":{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},"proceeds":{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},"refunds":{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},"active_subs":{"type":"integer","minimum":0,"maximum":9007199254740991},"new_subs":{"type":"integer","minimum":0,"maximum":9007199254740991},"unnormalized_count":{"type":"integer","minimum":0,"maximum":9007199254740991},"unnormalized_amount":{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},"unvalued_count":{"type":"integer","minimum":0,"maximum":9007199254740991},"unvalued_receipts":{"type":"integer","minimum":0,"maximum":9007199254740991},"unvalued_active":{"type":"integer","minimum":0,"maximum":9007199254740991},"nonstandard_count":{"type":"integer","minimum":0,"maximum":9007199254740991},"historical_state_unknown":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["date","currency","segment","mrr","gross","proceeds","refunds","active_subs","new_subs","unnormalized_count","unnormalized_amount","unvalued_count","nonstandard_count","historical_state_unknown"]}},"meta":{"type":"object","properties":{"computed_at":{"type":["string","null"]},"quality_computed_at":{"type":["string","null"]},"estimate":{"type":"boolean","const":true},"currency":{"type":"string","minLength":3,"maxLength":3},"refresh_pending":{"type":"boolean"},"quality":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"filters":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"include_grace":{"type":"boolean"}},"required":["computed_at","estimate","currency","refresh_pending","quality"]}},"required":["data","meta"]}}}},"304":{"description":"Unchanged private representation; use the response cached for this caller and query."},"default":{"description":"Request rejected or temporarily unavailable; error and detail are returned when available","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}}},"/v1/metrics/mrr-movement":{"get":{"summary":"Read mrr-movement analytics","description":"Decimal monetary strings; computed_at and quality describe freshness and coverage. MRR is in report currency. If-None-Match supports 304. Country and product_id accept repeated query parameters.","security":[{"serverKey":[]}],"parameters":[{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string"}}]},"style":"form","explode":true},{"name":"store_country","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string"}}]},"style":"form","explode":true},{"name":"platform","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["ios","android","web","unknown"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["ios","android","web","unknown"]}}]},"style":"form","explode":true},{"name":"store","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["app_store","play_store"]},{"minItems":1,"maxItems":2,"type":"array","items":{"type":"string","enum":["app_store","play_store"]}}]},"style":"form","explode":true},{"name":"product_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","maxLength":256}}]},"style":"form","explode":true},{"name":"duration","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(?:P[1-9][0-9]*(?:D|W|M|Y)|lifetime|unknown)$"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","pattern":"^(?:P[1-9][0-9]*(?:D|W|M|Y)|lifetime|unknown)$"}}]},"style":"form","explode":true},{"name":"with_trial","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["yes","no","unknown"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["yes","no","unknown"]}}]},"style":"form","explode":true},{"name":"with_intro","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["yes","no","unknown"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["yes","no","unknown"]}}]},"style":"form","explode":true},{"name":"app_version","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"style":"form","explode":true},{"name":"channel","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"style":"form","explode":true},{"name":"campaign","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"style":"form","explode":true},{"name":"adset","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"style":"form","explode":true},{"name":"experiment","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}]},"style":"form","explode":true},{"name":"variant","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}]},"style":"form","explode":true},{"name":"first_seen_from","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"style":"form","explode":true},{"name":"first_seen_to","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"style":"form","explode":true},{"name":"new_existing","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["new","existing"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["new","existing"]}}]},"style":"form","explode":true},{"name":"segment_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"style":"form","explode":true},{"name":"months","in":"query","required":false,"schema":{"default":12,"type":"integer","minimum":1,"maximum":120},"style":"form","explode":true}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"month":{"type":"string"},"unvalued_count":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"unvalued_amount":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},{"type":"null"}]},"currency":{"type":"string","minLength":3,"maxLength":3},"previous_mrr":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},{"type":"null"}]},"mrr":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},{"type":"null"}]},"new":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},{"type":"null"}]},"expansion":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},{"type":"null"}]},"contraction":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},{"type":"null"}]},"churn":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},{"type":"null"}]},"net":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},{"type":"null"}]}},"required":["month","currency","previous_mrr","mrr","new","expansion","contraction","churn","net"]}},"meta":{"type":"object","properties":{"computed_at":{"type":["string","null"]},"quality_computed_at":{"type":["string","null"]},"estimate":{"type":"boolean","const":true},"currency":{"type":"string","minLength":3,"maxLength":3},"refresh_pending":{"type":"boolean"},"quality":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"filters":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"include_grace":{"type":"boolean"}},"required":["computed_at","estimate","currency","refresh_pending","quality"]}},"required":["data","meta"]}}}},"304":{"description":"Unchanged private representation; use the response cached for this caller and query."},"default":{"description":"Request rejected or temporarily unavailable; error and detail are returned when available","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}}},"/v1/metrics/proceeds":{"get":{"summary":"Read proceeds analytics","description":"Decimal monetary strings; computed_at and quality describe freshness and coverage. MRR is in report currency. If-None-Match supports 304. Country and product_id accept repeated query parameters.","security":[{"serverKey":[]}],"parameters":[{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string"}}]},"style":"form","explode":true},{"name":"store_country","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string"}}]},"style":"form","explode":true},{"name":"platform","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["ios","android","web","unknown"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["ios","android","web","unknown"]}}]},"style":"form","explode":true},{"name":"store","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["app_store","play_store"]},{"minItems":1,"maxItems":2,"type":"array","items":{"type":"string","enum":["app_store","play_store"]}}]},"style":"form","explode":true},{"name":"product_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","maxLength":256}}]},"style":"form","explode":true},{"name":"duration","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(?:P[1-9][0-9]*(?:D|W|M|Y)|lifetime|unknown)$"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","pattern":"^(?:P[1-9][0-9]*(?:D|W|M|Y)|lifetime|unknown)$"}}]},"style":"form","explode":true},{"name":"with_trial","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["yes","no","unknown"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["yes","no","unknown"]}}]},"style":"form","explode":true},{"name":"with_intro","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["yes","no","unknown"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["yes","no","unknown"]}}]},"style":"form","explode":true},{"name":"app_version","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"style":"form","explode":true},{"name":"channel","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"style":"form","explode":true},{"name":"campaign","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"style":"form","explode":true},{"name":"adset","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"style":"form","explode":true},{"name":"experiment","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}]},"style":"form","explode":true},{"name":"variant","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}]},"style":"form","explode":true},{"name":"first_seen_from","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"style":"form","explode":true},{"name":"first_seen_to","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"style":"form","explode":true},{"name":"new_existing","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["new","existing"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["new","existing"]}}]},"style":"form","explode":true},{"name":"segment_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"style":"form","explode":true},{"name":"from","in":"query","required":true,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"style":"form","explode":true},{"name":"to","in":"query","required":true,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"style":"form","explode":true},{"name":"granularity","in":"query","required":false,"schema":{"default":"day","type":"string","enum":["day","month"]},"style":"form","explode":true},{"name":"currency_mode","in":"query","required":false,"schema":{"default":"report","type":"string","enum":["report","original"]},"style":"form","explode":true},{"name":"group_by","in":"query","required":false,"schema":{"type":"string","enum":["store","country","product","currency"]},"style":"form","explode":true}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"currency":{"type":"string","minLength":3,"maxLength":3},"segment":{"type":"string"},"mrr":{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},"gross":{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},"gross_revenue":{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},"refund_amount":{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},"proceeds_arr":{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},"proceeds":{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},"refunds":{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},"active_subs":{"type":"integer","minimum":0,"maximum":9007199254740991},"new_subs":{"type":"integer","minimum":0,"maximum":9007199254740991},"unnormalized_count":{"type":"integer","minimum":0,"maximum":9007199254740991},"unnormalized_amount":{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},"unvalued_count":{"type":"integer","minimum":0,"maximum":9007199254740991},"unvalued_receipts":{"type":"integer","minimum":0,"maximum":9007199254740991},"unvalued_active":{"type":"integer","minimum":0,"maximum":9007199254740991},"nonstandard_count":{"type":"integer","minimum":0,"maximum":9007199254740991},"historical_state_unknown":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["date","currency","segment","mrr","gross","proceeds","refunds","active_subs","new_subs","unnormalized_count","unnormalized_amount","unvalued_count","nonstandard_count","historical_state_unknown"]}},"meta":{"type":"object","properties":{"computed_at":{"type":["string","null"]},"quality_computed_at":{"type":["string","null"]},"estimate":{"type":"boolean","const":true},"currency":{"type":"string","minLength":3,"maxLength":3},"refresh_pending":{"type":"boolean"},"quality":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"filters":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"include_grace":{"type":"boolean"}},"required":["computed_at","estimate","currency","refresh_pending","quality"]}},"required":["data","meta"]}}}},"304":{"description":"Unchanged private representation; use the response cached for this caller and query."},"default":{"description":"Request rejected or temporarily unavailable; error and detail are returned when available","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}}},"/v1/metrics/retention":{"get":{"summary":"Read retention analytics","description":"Decimal monetary strings; computed_at and quality describe freshness and coverage. MRR is in report currency. If-None-Match supports 304. Country and product_id accept repeated query parameters.","security":[{"serverKey":[]}],"parameters":[{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string"}}]},"style":"form","explode":true},{"name":"store_country","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string"}}]},"style":"form","explode":true},{"name":"platform","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["ios","android","web","unknown"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["ios","android","web","unknown"]}}]},"style":"form","explode":true},{"name":"store","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["app_store","play_store"]},{"minItems":1,"maxItems":2,"type":"array","items":{"type":"string","enum":["app_store","play_store"]}}]},"style":"form","explode":true},{"name":"product_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","maxLength":256}}]},"style":"form","explode":true},{"name":"duration","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(?:P[1-9][0-9]*(?:D|W|M|Y)|lifetime|unknown)$"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","pattern":"^(?:P[1-9][0-9]*(?:D|W|M|Y)|lifetime|unknown)$"}}]},"style":"form","explode":true},{"name":"with_trial","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["yes","no","unknown"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["yes","no","unknown"]}}]},"style":"form","explode":true},{"name":"with_intro","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["yes","no","unknown"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["yes","no","unknown"]}}]},"style":"form","explode":true},{"name":"app_version","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"style":"form","explode":true},{"name":"channel","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"style":"form","explode":true},{"name":"campaign","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"style":"form","explode":true},{"name":"adset","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}]},"style":"form","explode":true},{"name":"experiment","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}]},"style":"form","explode":true},{"name":"variant","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}]},"style":"form","explode":true},{"name":"first_seen_from","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"style":"form","explode":true},{"name":"first_seen_to","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"style":"form","explode":true},{"name":"new_existing","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["new","existing"]},{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["new","existing"]}}]},"style":"form","explode":true},{"name":"segment_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"style":"form","explode":true},{"name":"cohort_from","in":"query","required":true,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"style":"form","explode":true},{"name":"cohort_to","in":"query","required":true,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"style":"form","explode":true},{"name":"trial_status","in":"query","required":false,"schema":{"type":"string","enum":["via_trial","direct"]},"style":"form","explode":true},{"name":"cohort_grain","in":"query","required":false,"schema":{"type":"string","enum":["month","week"]},"style":"form","explode":true},{"name":"combine","in":"query","required":false,"schema":{"type":"string","const":"true"},"style":"form","explode":true}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"cohort_start":{"type":"string"},"cohort_month":{"type":"string"},"store":{"type":"string"},"country":{"type":"string"},"product_id":{"type":"string"},"trial_status":{"type":"string","enum":["direct","via_trial"]},"period_family":{"type":"string"},"period_number":{"type":"integer","minimum":0,"maximum":9007199254740991},"n_start":{"type":"integer","minimum":0,"maximum":9007199254740991},"n_active":{"type":"integer","minimum":0,"maximum":9007199254740991},"observed_periods":{"type":"integer","minimum":0,"maximum":9007199254740991},"complete":{"type":"boolean"},"currency":{"type":"string","minLength":3,"maxLength":3},"retention_percent":{"type":["string","null"]},"net_proceeds":{"type":"string","pattern":"^-?\\d+\\.\\d{6}$","description":"Whole-cohort net proceeds, repeated on every row. Never read it per period or sum it across rows; use period_net_proceeds."},"paid_period_count":{"type":"integer","minimum":0,"maximum":9007199254740991},"mixed_period_count":{"type":"integer","minimum":0,"maximum":9007199254740991},"unknown_history_count":{"type":"integer","minimum":0,"maximum":9007199254740991},"unvalued_count":{"type":"integer","minimum":0,"maximum":9007199254740991},"period_net_proceeds":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},{"type":"null"}],"description":"Net proceeds of the charges for this period, less their refunds. A row can carry money with n_active 0 when a subscriber kept paying after an earlier period was refunded. Null until the next rollup, which means not yet calculated, not zero."},"period_unvalued_count":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"open_users":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}],"description":"Subscribers still being observed, excluding those with unknown history, who are counted in unknown_history_count."},"known_observed_periods":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}],"description":"The fewest periods observed among open_users. It decides when a period is mature."}},"required":["cohort_start","store","country","product_id","trial_status","period_family","period_number","n_start","n_active","observed_periods","complete","currency","retention_percent","net_proceeds","paid_period_count","mixed_period_count","unknown_history_count","unvalued_count","period_net_proceeds","period_unvalued_count","open_users","known_observed_periods"]},{"type":"object","properties":{"cohort_start":{"description":"Null on a billing period's all-cohorts rows, which come first and count only cohorts that have reached that period, so n_start can differ between its columns.","type":["string","null"]},"period_family":{"type":"string"},"period_number":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3},"n_start":{"type":"integer","minimum":0,"maximum":9007199254740991},"n_active":{"type":"integer","minimum":0,"maximum":9007199254740991},"retention_percent":{"type":["string","null"]},"complete":{"type":"boolean"},"period_net_proceeds":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{6}$"},{"type":"null"}]},"revenue_percent":{"description":"Against the same cohort's first period. Can exceed 100 or be negative. Null when the first period has no revenue or has charges without an exchange rate.","type":["string","null"]},"period_unvalued_count":{"type":"integer","minimum":0,"maximum":9007199254740991},"mixed_period_count":{"type":"integer","minimum":0,"maximum":9007199254740991},"unknown_history_count":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["cohort_start","period_family","period_number","currency","n_start","n_active","retention_percent","complete","period_net_proceeds","revenue_percent","period_unvalued_count","mixed_period_count","unknown_history_count"]}]}},"meta":{"type":"object","properties":{"computed_at":{"type":["string","null"]},"quality_computed_at":{"type":["string","null"]},"estimate":{"type":"boolean","const":true},"currency":{"type":"string","minLength":3,"maxLength":3},"refresh_pending":{"type":"boolean"},"quality":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"filters":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"include_grace":{"type":"boolean"}},"required":["computed_at","estimate","currency","refresh_pending","quality"]}},"required":["data","meta"]}}}},"304":{"description":"Unchanged private representation; use the response cached for this caller and query."},"default":{"description":"Request rejected or temporarily unavailable; error and detail are returned when available","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}}},"/v1/paywalls/{placement}":{"get":{"summary":"Read an enabled paywall placement","security":[{"serverKey":[]},{"sdkSession":[]}],"parameters":[{"name":"placement","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"paywall":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"placement_id":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9_.-]{0,127}$"},"products":{"type":"array","items":{"type":"object","properties":{"store":{"type":"string","enum":["app_store","play_store"]},"product_id":{"type":"string","minLength":1,"maxLength":255}},"required":["store","product_id"],"additionalProperties":false}},"remote_config":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}},"experiment_id":{"type":["string","null"]},"variant_id":{"type":["string","null"]},"served_context":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id","placement_id","products","remote_config","experiment_id","variant_id"],"additionalProperties":false}},"required":["paywall"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}}},"304":{"description":"Unchanged default paywall. Active experiments and subjects with prior experiment checkout proofs receive fresh contexts.","headers":{"ETag":{"description":"Confirmed representation validator","schema":{"type":"string"}}}},"400":{"description":"Invalid placement","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"detail":{"type":"string"}},"required":["error"]}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"detail":{"type":"string"}},"required":["error"]}}}},"403":{"description":"Server key or SDK session required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"detail":{"type":"string"}},"required":["error"]}}}},"404":{"description":"No available paywall for this project and platform","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"detail":{"type":"string"}},"required":["error"]}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"detail":{"type":"string"}},"required":["error"]}}}},"default":{"description":"Request rejected or temporarily unavailable; error and detail are returned when available","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}}},"/v1/products":{"get":{"summary":"List native SDK catalog products","security":[{"serverKey":[]},{"sdkSession":[]}],"parameters":[],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"products":{"type":"array","items":{"type":"object","properties":{"store":{"type":"string","enum":["app_store","play_store"]},"product_id":{"type":"string"},"name":{"type":"string"},"kind":{"type":"string"}},"required":["store","product_id","name","kind"],"additionalProperties":false}}},"required":["products"],"additionalProperties":false}}}},"304":{"description":"Catalog unchanged","headers":{"ETag":{"description":"Confirmed representation validator","schema":{"type":"string"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"detail":{"type":"string"}},"required":["error"]}}}},"403":{"description":"Server key or SDK session required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"detail":{"type":"string"}},"required":["error"]}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"detail":{"type":"string"}},"required":["error"]}}}},"default":{"description":"Request rejected or temporarily unavailable; error and detail are returned when available","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}}},"/v1/project":{"get":{"summary":"Read the authenticated project","security":[{"serverKey":[]}],"parameters":[],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^\\d+$"},"name":{"type":"string"},"bundle_id":{"type":["string","null"]},"package_name":{"type":["string","null"]},"sandbox":{"type":"boolean"},"report_currency":{"type":"string","minLength":3,"maxLength":3}},"required":["id","name","bundle_id","package_name","sandbox","report_currency"]}}}},"default":{"description":"Request rejected or temporarily unavailable; error and detail are returned when available","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}}},"/v1/sdk/challenge":{"get":{"summary":"Get a single-use device challenge","security":[{"publishableKey":[]}],"parameters":[],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"challenge":{"type":"string","pattern":"^[a-f0-9]{64}$"},"expires_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["challenge","expires_at"]}}}},"default":{"description":"Request rejected or temporarily unavailable; error and detail are returned when available","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}}},"/v1/sdk/sessions":{"post":{"summary":"Issue or refresh a device-bound session","description":"Sign the issued challenge using P-256 and send the public key. Optional identity JWT must be issued by your trusted backend. Optional App Attest or Play Integrity proof raises trust. Missing, null or malformed proof degrades to an unattested session; device signature validation remains mandatory. x-app-version, x-os-version, x-sdk-version and x-platform headers are bounded at issuance.","security":[{"publishableKey":[]}],"parameters":[],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"installation_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"session_token":{"type":"string"},"binding_token":{"type":"string"},"expires_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"subject_id":{"type":"string","pattern":"^\\d+$"},"environment":{"type":"string","enum":["production","sandbox"]}},"required":["installation_id","session_token","binding_token","expires_at","subject_id","environment"]}}}},"default":{"description":"Request rejected or temporarily unavailable; error and detail are returned when available","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"public_key":{"type":"string","minLength":1,"maxLength":4096},"challenge":{"type":"string","pattern":"^[a-f0-9]{64}$"},"signature":{"type":"string","minLength":1,"maxLength":512},"installation_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"identity_token":{"type":"string","maxLength":16384},"attestation":{"anyOf":[{"type":"object","properties":{"platform":{"type":"string","enum":["ios","android"]},"key_id":{"type":"string"},"attestation_object":{"type":"string"},"integrity_token":{"type":"string"}},"additionalProperties":{}},{"type":"null"}]}},"required":["public_key","challenge","signature"]}}}}}},"/v1/sdk/sessions/current":{"delete":{"summary":"Revoke the current SDK session","security":[{"sdkSession":[]}],"parameters":[],"responses":{"204":{"description":"Successful response"},"default":{"description":"Request rejected or temporarily unavailable; error and detail are returned when available","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}}},"/v1/sdk/signing-secret":{"post":{"summary":"Rotate the server identity signing secret","description":"Returns the newly rotated HS256 secret once. Existing secret overlap lasts 24 hours. Keep this secret only on your trusted backend.","security":[{"serverKey":[]}],"parameters":[],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"secret":{"type":"string"},"algorithm":{"type":"string","const":"HS256"},"issuer":{"type":"string","pattern":"^\\d+$"},"audience":{"type":"string"},"previous_secret_overlap_seconds":{"type":"number","const":86400}},"required":["secret","algorithm","issuer","audience","previous_secret_overlap_seconds"]}}}},"default":{"description":"Request rejected or temporarily unavailable; error and detail are returned when available","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}}},"/v1/subscribers/{userId}":{"get":{"summary":"Read subscriber profile","security":[{"serverKey":[]}],"parameters":[{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"subscriber":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^\\d+$"},"app_user_id":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"device_metadata":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"subscriptions":{"type":"array","items":{"type":"object","properties":{"store":{"type":"string","enum":["app_store","play_store"]},"store_subscription_key":{"type":"string"},"environment":{"type":"string","enum":["production","sandbox"]}},"required":["store","store_subscription_key","environment"]}},"purchases":{"type":"array","items":{"type":"object","properties":{"store":{"type":"string","enum":["app_store","play_store"]},"store_transaction_id":{"type":"string"},"environment":{"type":"string","enum":["production","sandbox"]}},"required":["store","store_transaction_id","environment"]}}},"required":["id","app_user_id","created_at","device_metadata","subscriptions","purchases"]},{"type":"null"}]}},"required":["subscriber"]}}}},"default":{"description":"Request rejected or temporarily unavailable; error and detail are returned when available","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}}},"/v1/users/{id}/claim-installation":{"post":{"summary":"Claim an anonymous installation","description":"Provide exactly one of installation_id or binding_token. Established ownership cannot be silently reassigned.","security":[{"serverKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"claimed":{"type":"boolean","const":true},"subject_id":{"type":"string","pattern":"^\\d+$"}},"required":["claimed","subject_id"]}}}},"default":{"description":"Request rejected or temporarily unavailable; error and detail are returned when available","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"installation_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"binding_token":{"type":"string","minLength":1,"maxLength":500}}}}}}}},"/v1/users/{userId}/entitlements":{"get":{"summary":"Read subscriber entitlements","security":[{"serverKey":[]}],"parameters":[{"name":"environment","in":"query","required":false,"schema":{"type":"string","enum":["production","sandbox"]},"style":"form","explode":true},{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"entitlements":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"active":{"type":"boolean"},"active_until":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"will_renew":{"type":"boolean"},"state":{"type":"string"},"is_family_shared":{"type":"boolean"},"product_id":{"type":"string"},"store":{"type":"string","enum":["app_store","play_store"]}},"required":["key","active","active_until","will_renew","state","is_family_shared","product_id","store"]}}},"required":["entitlements"]}}}},"default":{"description":"Request rejected or temporarily unavailable; error and detail are returned when available","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}}},"/v1/users/{userId}/subscriptions":{"get":{"summary":"Read subscriber subscriptions","security":[{"serverKey":[]}],"parameters":[{"name":"environment","in":"query","required":false,"schema":{"type":"string","enum":["production","sandbox"]},"style":"form","explode":true},{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"subscriptions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^\\d+$"},"store":{"type":"string","enum":["app_store","play_store"]},"product_id":{"type":"string"},"plan_id":{"anyOf":[{"type":"string","pattern":"^\\d+$"},{"type":"null"}]},"state":{"type":"string"},"environment":{"type":"string","enum":["production","sandbox"]},"period_start":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"expires_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"auto_renew":{"type":"boolean"},"offer_phase":{"type":["string","null"]},"ownership":{"type":"string"},"committed_payments":{"type":["number","null"]},"remaining_payments":{"type":["number","null"]},"grace_period_expires_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"paused_until":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"cancel_reason":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updated_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","store","product_id","plan_id","state","environment","period_start","expires_at","auto_renew","offer_phase","ownership","committed_payments","remaining_payments","grace_period_expires_at","paused_until","cancel_reason","created_at","updated_at"]}}},"required":["subscriptions"]}}}},"default":{"description":"Request rejected or temporarily unavailable; error and detail are returned when available","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}}},"/v1/users/me/entitlements":{"get":{"summary":"Read the current session entitlements","security":[{"sdkSession":[]}],"parameters":[],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"entitlements":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"active":{"type":"boolean"},"active_until":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"will_renew":{"type":"boolean"},"state":{"type":"string"},"is_family_shared":{"type":"boolean"},"product_id":{"type":"string"},"store":{"type":"string","enum":["app_store","play_store"]}},"required":["key","active","active_until","will_renew","state","is_family_shared","product_id","store"]}}},"required":["entitlements"]}}}},"401":{"description":"Missing or expired SDK session","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"detail":{"type":"string"}},"required":["error"]}}}},"403":{"description":"SDK session required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"detail":{"type":"string"}},"required":["error"]}}}},"default":{"description":"Request rejected or temporarily unavailable; error and detail are returned when available","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}}},"/webhooks/apple/{projectSlug}":{"post":{"summary":"Receive an Apple V2 notification","description":"The signedPayload JWS is verified against Apple certificates and the project app identity. URL slug is not authentication.","security":[],"parameters":[{"name":"projectSlug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"default":{"description":"Request rejected or temporarily unavailable; error and detail are returned when available","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"signedPayload":{"type":"string","minLength":1}},"required":["signedPayload"]}}}}}},"/webhooks/google/{projectSlug}":{"post":{"summary":"Receive a Google RTDN Pub/Sub push","description":"message.data is the base64 RTDN envelope. The configured Pub/Sub subscription, OIDC audience and service account must match.","security":[{"googleOidc":[]}],"parameters":[{"name":"projectSlug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"default":{"description":"Request rejected or temporarily unavailable; error and detail are returned when available","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"subscription":{"type":"string","minLength":1},"message":{"type":"object","properties":{"messageId":{"type":"string","minLength":1,"maxLength":500},"data":{"type":"string","pattern":"^[A-Za-z0-9+/]*={0,2}$"}},"required":["messageId","data"]}},"required":["subscription","message"]}}}}}}}}