Document a bunch of endpoints #448
No reviewers
Labels
No labels
app
app
bug
app
enhancement
client side exclusive
closed
completed
closed
duplicate
closed
invalid
closed
not open grind
closed
not planned
closed
question
🗳️ community vote
⚠️ critical
discussion
docs
emulator
help wanted
paywalled
bypassable
paywalled
non-bypassable
paywalled
unconfirmed
pr/dubious
question
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
open-grind/open-grind!448
Loading…
Reference in a new issue
No description provided.
Delete branch "Enucatl/open-grind:docs/api"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Did some research on my account and grindr-api-dev-tool, this pull request documents the following responses:
• GET /v1/consumables/inventory
• GET /v2/boost/sessions
• GET /v1/age-verification/options
• GET /v1/store-age-verification/requirement
• GET /v1/pics/limited/status
• GET /v4/pics/expiring/status
• GET /v4/videos/expiring/status
• GET /v3/me/subscriptions
• GET /v3/store/googleplay/products/store
• GET /v1/shop/googleplay/products/explore
• GET /v1/shop/googleplay/products/profile_drawer
• GET /v1/store/googleplay/products/profile_drawer
• GET /v1/store-and-profile
• GET /v2/store/googleplay/products/{oneStopShopCategory}
• GET /v1/shop/googleplay/products-with-details/{oneStopShopCategory}
• GET /v4/store/products/{productId}
• GET /v1/rightnow/googleplay/sku
• GET /v2/offers
• GET /v2/offers/eligible
• GET /v1/explore_heatmaps/all_locations
• GET /v1/decision-appeal
• GET /v3/me/legal-agreements
• GET /v3/legal-agreements
• GET /v5/legal-agreements/subscriber-sponsored-content
• GET /v5/legal-agreements/vip-matchmaker
• GET /v4/legal-agreements/top-picks
• GET /v5/legal-agreements/top-picks
• POST /v1/opt-status
Types were checked against live responses from a test account on 26.22; mismatches are noted inline.
components.schemas: keep main'sRightNowMediaUploadResponse,RightNowPostDetailsandRightNowPostResponseand add the 3 new components after them. The 3 store routes main deprecated merge without a conflict but end up with twodescriptionkeys (see inline).GET /v1/shop/googleplay/products/storewithShopProductCatalog. Main's deprecation notes link to it, and live returns the same shape as explore and profile_drawer.requiredlists with the fields present in every capture (convention since5aa14bee). Without them the 3 new components render every field ", optional".example/examplesblocks. The generator doesn't render them, and most values are placeholders that differ from live ones (8-digit version strings, the 404 body, the appeal 400). Put a real value that helps into the description as "e.g.…".null"), "e.g." or "known values:" for value lists. That replaces "remains unverified", "Observed empty", "Only null observed" and "Observed values include".x-wipfrom the operations the 26.22 client calls once their responses are fully typed, and declaresecurityon those that need a session, as main's non-WIP operations do. Update the-wipanchors in main's 3 store deprecation links when the shop routes lose it. Keepx-wipon the deprecated store routes, v4 top-picks,/v4/store/products/{productId},/v2/offersand/v1/decision-appeal.contentbeforedescriptionin the 18 responses and addsummary/descriptionbeforex-wip; the reordering is about 112 diff lines with no rendered change.0152d88d0and2b5cd2511into the commits they amend and keep each commit message to one line. DropGET /v3/rightnow/active-postfrom the PR description; this PR no longer changes it.@ -860,0 +859,4 @@"boostSessions": {"type": "array","items": {},"description": "Session item structure, statuses, and time fields are undocumented."Type the items from the client model (
BoostSessionApiResponse), since the live array was empty:boostSessionId,profileId,startTime,endTime,chatsCount,tapsCount,viewsCount,isPaused, plus nullableboostProductType,minAge,maxAge,positionPreferences,geohash. The model has no status field.@ -999,0 +1006,4 @@"consumables": {"type": "array","items": {},"description": "Consumable item structure, types, and quantities are undocumented."Type the items from the client model (
ConsumableInventory), since the live array was empty:profileId(string),consumableId(integer),consumableName(string),remaining(integer).@ -1152,0 +1173,4 @@},"type": {"type": "string","description": "Observed values include `City` and `Neighbourhood`; other values remain unverified."Use a type phrase: "string, e.g.
City,Neighbourhood". All 7 item keys were present on all 77 live items, so list them inrequired, pluslatandlngin both coordinate objects.@ -1219,0 +1297,4 @@"properties": {"agreement": {"nullable": true,"description": "Only null observed; the non-null type remains unverified."The 4 agreement GETs return one client model, the object typed on v5 top-picks. Move it to a component and reference it here and on vip-matchmaker as
{"allOf": [{"$ref": …}], "nullable": true}; both returnnulllive.@ -1331,0 +1421,4 @@"privacyPolicyVersion": {"type": "string"},"userConsentList": {List the values: "array of strings, known values:
HIV_COLLECT,VACCINE_COLLECT,DOXYPEP_COLLECT".@ -1331,0 +1429,4 @@},"createdAtPrivacyAgreement": {"type": "integer","description": "Unix timestamp in milliseconds."Use
{"$ref": "#/components/schemas/TimestampMs"}here and for the other 5 timestamps (lines 1436, 1677, 3599, 3603, 3619).@ -1463,1 +1599,3 @@"x-wip": true"x-wip": true,"summary": "Get Top Picks agreement (v4)","description": "The agreement can be null. Non-null v4 agreement structure is undocumented."No client since 25.20.0 sends GET v4 top-picks; 26.x only POSTs v4 and reads v5. Replace this description with
"deprecated": trueand "Removed in the official Android client between v25.20.0 and v26.9.2. Superseded by Get Top Picks agreement (v5)." Reference the shared agreement component here too, nullable (nulllive).@ -1516,1 +1655,3 @@"$ref": "#/components/schemas/UndocumentedObject","type": "object","properties": {"agreement": {Make this the shared agreement component:
profileId(integer),agreementType,localeandclientVersion(string, may be empty),version(integer),createdAt(TimestampMs),status. Leavenullableoff here until anullis captured on v5.@ -1517,0 +1676,4 @@"type": "integer","description": "Unix timestamp in milliseconds."},"status": {"string,
ACCEPTED,REJECTEDorREVOKED" (client enum; live returnedREJECTED).@ -1524,1 +1702,3 @@"x-wip": true"x-wip": true,"summary": "Get Top Picks agreement (v5)","description": "Other agreement states are undocumented."Remove; with the
statusvalues listed this adds nothing.@ -1769,3 +1977,3 @@"includeDerivedOptOuts": {"type": "boolean","description": "boolean, effect unknown, optional""description": "Requests derived opt-out entries. When omitted or false, `derivedOptOuts` is empty. Derivation rules are undocumented."Request body fields don't render
required, so the old ", optional" was the only marker. Use "boolean,truefillsderivedOptOuts, optional".@ -1798,0 +2022,4 @@"additionalProperties": {"type": "boolean"},"description": "Derived opt-out entries requested with `includeDerivedOptOuts`. Known keys include `PREMIUM_AI_OPT_OUT`; other keys and derivation rules are undocumented."Use a type phrase: "object keyed by derived opt-out type, empty unless
includeDerivedOptOutsistrue; known key:PREMIUM_AI_OPT_OUT".@ -1798,0 +2027,4 @@"optInResponded": {"type": "object","additionalProperties": {},"description": "Keys, value types, and meaning are undocumented."Remove the description so it renders as
object(only{}was seen live), and use"additionalProperties": trueas elsewhere in the spec.@ -2040,1 +2300,3 @@"$ref": "#/components/schemas/UndocumentedObject","type": "object","properties": {"offerTypes": {Type the items. Live returned one:
offerType(INTRODUCTORY),offerProductSku,baseProductSku(empty string),offerDurationMs,roleName,subscriptionDuration. The client'sOfferadds optionalexpirationEpochMsandofferUuid, andofferTypeisWINBACK,INTRODUCTORY,UPGRADE,LOYALTY_UNLIMITEDorLOYALTY_UPGRADE.GET /v2/offersreturns the sameOffer.@ -1994,1 +2249,4 @@"description": "OK"},"204": {"description": "Empty response body; the condition for this response is undocumented.""No current offer." The live 204 came with
hasExistingOffer: falsefrom/v2/offers/eligible, and this matches the hookup-intent 204 wording.@ -2736,1 +3028,3 @@"$ref": "#/components/schemas/UndocumentedObject","allOf": [{"$ref": "#/components/schemas/StoreProductCatalog"Use a direct
$ref; theallOfwrapper only carriesx-original-type, which typed schemas don't render. Same at lines 3141, 3210, 3342 and 11193.@ -2744,1 +3062,3 @@"x-wip": true"x-wip": true,"summary": "Get Google Play store products","description": "Returns catalog products directly in `products`, rather than the product/purchaseAllowed wrappers returned by shop routes. Optional fields vary by category and account."Remove this description. Main marks this route deprecated (removed from the client in 26.20) with its own
description; the merge keeps both keys without a conflict andJSON.parsetakes this one, dropping main's "Removed in the official Android client v26.20.0…" note. Same on line 11226. "Optional fields vary by category and account" also doesn't match live: every product key is present on every product, only nullability varies.@ -2826,1 +3181,3 @@"x-wip": true"x-wip": true,"summary": "Get Explore shop products","description": "Returns `products` entries containing `product` and `purchaseAllowed`. Optional fields vary by category and account."Remove; the
ShopProductCatalogresponse already shows this, and every key was present on every live product. Same on line 3384.@ -2926,2 +3323,3 @@},"x-wip": true"x-wip": true,"summary": "Get store product by identifier""Get store product by ID", as in main's other summaries; the anchor stays the same.
@ -2858,1 +3242,3 @@"x-wip": true"x-wip": true,"summary": "Get Google Play products by category","description": "Returns catalog products directly in `products`, rather than the product/purchaseAllowed wrappers returned by shop routes. Optional fields vary by category and account. The documented response covers the `store` category; other categories are undocumented."Remove, as on line 3064. Live, explore and profile_drawer return the same shape as store, and
consumablesreturns 400urn:gr:err:bad_request.@ -2924,1 +3310,4 @@"description": "OK"},"404": {"description": "Product not found. The mapping from catalog `vendorProductId` to this route's `productId` is undocumented.",Live returns Go's default
404 page not foundfor realvendorProductIds and for1, and no client since 25.20.0 declares this route. Remove the 404 and mark the operationdeprecatedwith "Removed in the official Android client between v25.20.0 and v26.9.2."@ -3149,0 +3605,4 @@"vendorProductMappingId": {"type": "integer"},"subscriptionStatus": {"string,
PENDING,VERIFIED,DISABLEDorEXPIRED" (client enum).@ -3709,1 +4242,3 @@"$ref": "#/components/schemas/UndocumentedObject","type": "object","properties": {"methods": {Live returns
DOCUMENT_VERIFICATIONandFACE_RECOGNITION, and the client parses a list of strings. Use"items": {"type": "string"}and "array of strings:FACE_RECOGNITION,DOCUMENT_VERIFICATION".@ -6510,2 +7068,3 @@"total": {"type": "integer""type": "integer","description": "Reported total allowance."Drop "Reported": "total allowance" and "remaining allowance". Same on the two expiring routes.
@ -10947,0 +11613,4 @@"items": {"type": "object","properties": {"type": {typedecides which fields a section has. List the labels: "string,section_header,active_subscription_row,card_carousel,callout_row,list_row,spacer,dividerormicros_section" (7 seen live,active_subscription_rowfrom the client). Cards (line 11650) are "string,upgrade_card". The description on line 11749 doesn't render; remove it.@ -10835,1 +11458,4 @@"description": "OK"},"400": {"description": "Appeal lookup rejected; the prerequisite for a successful lookup is undocumented.",Describe the observed case and drop
content: the server returnsurn:gr:err:parameterwithparameterNamevalidationfor an unbanned account. Main describes most 400s in the description only, and the inline schema and example don't render.@ -11831,1 +12644,3 @@"$ref": "#/components/schemas/UndocumentedObject","type": "object","properties": {"productDetails": {Type the items from the client model (
ProductDetailItemDto), since live returned[]in every category:vendorProductId(string),topBenefits(array of{title: {textId, quantity}, iconId, subtitle: {textId, quantity}}),featuresandincludedFeatures(arrays of strings).@ -11839,2 +12694,3 @@"summary": "Get shop products with details","x-wip": true"x-wip": true,"description": "For the `store` category, `products` contains a nested shop catalog. Product detail items and other categories are undocumented."Remove; store, consumables, explore and profile_drawer all return this nested catalog live, and the
productDetailsgap belongs on that field.@ -12225,3 +13081,3 @@},"204": {"description": "No hookup intent post.""description": "No hookup intent post; empty response body."Revert; 204 texts don't render and a 204 has no body. This drops the operation from the diff.
@ -21170,2 +22026,4 @@},"x-render-on-tag": "settings/account"},"CatalogProduct": {Add
offerExpiresAt(integer, nullable): it isnullon every product of/v3/store/googleplay/products/storeand all shop routes, and absent on the other two store routes.@ -21172,0 +22042,4 @@},"interval": {"type": "string","description": "Observed values include `WEEK`, `MONTH`, `HOUR`, `MINUTE`, and `DAY`; other units remain unverified."Add
YEAR(every store and shop route returns it): "string,MINUTE,HOUR,DAY,WEEK,MONTHorYEAR". Same form fortypeon line 22037: "string,SUBSCRIPTION_PLANorONE_TIME_PURCHASE".@ -21172,0 +22082,4 @@"isPeakTime": {"type": "boolean"},"strikeThroughPriceSku": {{"type": "string", "nullable": true}; live returns a string on 1 of 15 shop profile_drawer products.@ -21172,0 +22101,4 @@"$ref": "#/components/schemas/CatalogProduct"}},"rewards": {Only
/v3/store/googleplay/products/storereturnsrewardsanddefaultSelectionDuration; the v2 route and v1 profile_drawer sendnameandproductsonly. Add "only sent by/v3/store/googleplay/products/store; may be absent" to both.@ -21172,0 +22106,4 @@"items": {},"description": "Observed empty; nonempty item structure remains unverified."},"defaultSelectionDuration": {{"type": "string", "nullable": true}; live isONE_WEEKfor the store category. Same on line 22150, where the other categories returnnull.See @claude review
2b5cd25119294a394253Main review points
Rebased the branch onto main. Kept main's RightNowMediaUploadResponse, RightNowPostDetails, and RightNowPostResponse schemas. Added the new components after main's schemas. Kept the three store removal notes. There are no duplicate JSON keys.
Added ShopProductCatalog as the response schema for GET /v1/shop/googleplay/products/store.
Added response required lists for the fields present in every capture. Kept fields optional where they can be absent. The catalog components now distinguish required fields from optional fields.
Removed all 28 example and examples blocks added by this PR. Put useful known values in field descriptions.
Changed field descriptions to lowercase type phrases without a final period. Used "Item structure is undocumented." for unknown array items. Removed descriptions from null-only fields. Used "e.g." and value lists where appropriate.
Removed x-wip from the fully typed active routes and added session security. Kept x-wip on the three deprecated store routes, GET /v4/legal-agreements/top-picks, GET /v4/store/products/{productId}, GET /v2/offers, and GET /v1/decision-appeal. Updated the three store removal links to use the shop anchors without the -wip suffix.
Put response content before description. Put operation summary and description before x-wip.
Folded commits
0152d88d0and2b5cd2511into the topic commits. The branch now has nine commits, each with a one-line message. The PR description still lists GET /v3/rightnow/active-post. Removing that line is pending because the API credential has expired.Inline review points
The points below follow the order of the inline comments in the review as pasted here.
Boost sessions: replaced the empty items schema with an object containing boostSessionId, profileId, startTime, endTime, chatsCount, tapsCount, viewsCount, and isPaused. Added nullable boostProductType, minAge, maxAge, positionPreferences, and geohash. Did not add a status field.
Consumable inventory: added profileId as a string, consumableId as an integer, consumableName as a string, and remaining as an integer.
Heatmap locations: changed the type description to "string, e.g.
City,Neighbourhood". Marked all seven location fields as required. Marked lat and lng as required in both coordinate objects.Shared agreement response: created ConsentAgreement. The subscriber-sponsored-content and vip-matchmaker GET responses now use an allOf reference to it with nullable set to true.
Consent values: added HIV_COLLECT, VACCINE_COLLECT, and DOXYPEP_COLLECT to the userConsentList description as known values.
Timestamps: replaced the six inline timestamp definitions with references to TimestampMs. These are createdAtPrivacyAgreement, createdAtTermsAgreement, the shared agreement's createdAt, and the subscription's createdAt, expiresAt, and lastTransactionDate.
Top Picks v4: marked the GET operation as deprecated. Added the client removal note and a link to the v5 GET operation. Its agreement field now uses the shared ConsentAgreement schema with nullable set to true.
Top Picks v5: moved its agreement object to ConsentAgreement. The component contains profileId, agreementType, locale, clientVersion, version, createdAt, and status. Used integer types for profileId and version, string types for agreementType, locale, and clientVersion, and TimestampMs for createdAt. The string descriptions state that they may be empty. The v5 agreement reference is not nullable.
Agreement status: added ACCEPTED, REJECTED, and REVOKED to the status description.
Top Picks v5 description: removed "Other agreement states are undocumented."
includeDerivedOptOuts: changed the description to "boolean,
truefillsderivedOptOuts, optional".derivedOptOuts: changed the description to "object keyed by derived opt-out type, empty unless
includeDerivedOptOutsistrue; known key:PREMIUM_AI_OPT_OUT".optInResponded: removed its description and set additionalProperties to true.
Offers: created a shared Offer schema and used it for the eligible offer items and GET /v2/offers. Added offerType, offerProductSku, baseProductSku, offerDurationMs, roleName, and subscriptionDuration. Added optional expirationEpochMs and offerUuid. Listed WINBACK, INTRODUCTORY, UPGRADE, LOYALTY_UNLIMITED, and LOYALTY_UPGRADE as offerType values. The baseProductSku description states that it may be empty.
No current offer: changed the GET /v2/offers 204 description to "No current offer."
Catalog references: replaced the five unnecessary allOf wrappers with direct StoreProductCatalog or ShopProductCatalog references. Removed the x-original-type fields carried by those wrappers.
Deprecated store descriptions: removed the added catalog descriptions from the deprecated store and profile-drawer routes. Kept main's client removal notes and updated their shop links. Removed the claim that product fields vary by account.
Explore and profile-drawer shop descriptions: removed the descriptions that repeated the product and purchaseAllowed structure and claimed that product fields vary by account. Both routes now use ShopProductCatalog directly.
Product lookup summary: changed it to "Get store product by ID".
Store products by category: removed the added description that limited the documented shape to the store category. Kept main's removal note. The response uses StoreProductCatalog.
Obsolete product lookup: removed the 404 response and marked the operation as deprecated. Added "Removed in the official Android client between v25.20.0 and v26.9.2."
Subscription status: added PENDING, VERIFIED, DISABLED, and EXPIRED to the description.
Age verification methods: changed the array items to strings. Added FACE_RECOGNITION and DOCUMENT_VERIFICATION to the description.
Picture and video allowances: removed "Reported" from the descriptions on all three routes. The descriptions now read "integer, total allowance" and "integer, remaining allowance".
Store and profile sections: added section_header, active_subscription_row, card_carousel, callout_row, list_row, spacer, divider, and micros_section to the section type description. Added upgrade_card to the card type description. Removed the section description that the generator does not render.
Appeal lookup: removed the 400 response content and example. The description now states that an unbanned account receives urn:gr:err:parameter with parameterName set to validation.
Product details: replaced the empty items schema with vendorProductId, topBenefits, features, and includedFeatures. Each topBenefits item has title, iconId, and subtitle. The title and subtitle objects have textId and quantity. The features and includedFeatures items are strings. Did not mark the nested fields as required because the empty captures do not establish that requirement.
Products-with-details description: removed the store-only description and the claim that other categories are undocumented. The products field uses ShopProductCatalog, and productDetails now has an item schema.
Hookup-intent response: restored the 204 description to "No hookup intent post." The GET operation now matches main and is no longer part of the diff.
Product offer expiry: added offerExpiresAt as a nullable integer. Kept it optional and documented that it is sent by /v3/store/googleplay/products/store and the shop routes.
Product interval and type: added YEAR and listed MINUTE, HOUR, DAY, WEEK, MONTH, and YEAR in the interval description. Listed SUBSCRIPTION_PLAN and ONE_TIME_PURCHASE in the type description.
Strike-through price SKU: changed strikeThroughPriceSku to a nullable string.
Store-only catalog fields: documented that rewards and defaultSelectionDuration are only sent by /v3/store/googleplay/products/store and may be absent. Kept both fields out of StoreProductCatalog's required list.
Default selection duration: changed defaultSelectionDuration to a nullable string in both StoreProductCatalog and ShopProductCatalog.
Remove
GET /v3/rightnow/active-postandGET /v1/hookup-intent/postfrom the PR description; the PR no longer changes them.@ -867,0 +873,4 @@"type": "array","items": {"type": "object","required": [Drop this
required: no capture has items, and the client requires onlyboostSessionId,profileIdandstartTime. The first two are strings in the client model.Removed the required list from boost session items. Changed boostSessionId and profileId to strings. The boostSessions response field remains required.
@ -1035,0 +1117,4 @@"type": "array","items": {"type": "object","required": [Drop this
required: no capture has items, and the client requires none of the 4 fields.Removed the required list from consumable items. All four item fields are now optional. The consumables response field remains required.
@ -3625,0 +4091,4 @@"type": "boolean"}},"required": [If this list comes from a single subscription, drop it; fields seen in one capture stay optional.
Removed the required list from subscription items. Each item field is now optional. The subscriptions response field remains required.
@ -4186,0 +4712,4 @@}},"x-original-type": "AgeVerificationOptionsResponse","required": [Add
faceTecConfig: it was present live, and the client requires it.Added faceTecConfig to the required list for the age verification response.
@ -24933,0 +25757,4 @@"roleName": {"type": "string"},"subscriptionDuration": {integer: the client declaresint, and live returns a number.Changed subscriptionDuration to integer in the shared Offer schema. This fixes both /v2/offers and /v2/offers/eligible.
@ -24933,0 +25944,4 @@"profileId": {"type": "integer"},"agreementType": {"string, e.g.
TOP_PICKS"; onlylocaleandclientVersionwere empty live.Changed the agreementType description to "string, e.g.
TOP_PICKS". In ConsentAgreement, only locale and clientVersion keep the "may be empty" description.294a394253a999ccf6b2