{
  "openapi": "3.1.0",
  "info": {
    "title": "Rodex API",
    "version": "1.0.0",
    "summary": "Read Rodex members, games, assets, jobs and playtests, and let the Discord bot act for linked members.",
    "description": "JSON over HTTPS. Send your key as `Authorization: Bearer rdx_...`. Keys are created by Rodex admins in Admin > Integrations with the scopes you need, shown once, and can be revoked. Every response is `{ data, meta? }` or `{ error: { code, message, status, details? } }`.",
    "contact": {
      "name": "Rodex developers",
      "url": "https://rodex.gg/developers"
    }
  },
  "servers": [
    {
      "url": "https://rodex.gg/api/v1",
      "description": "Production"
    },
    {
      "url": "http://localhost:3000/api/v1",
      "description": "Local development (stand-in data)"
    }
  ],
  "tags": [
    {
      "name": "Members",
      "description": "Public profiles, roles and badges. Look members up by handle or by their linked Discord account."
    },
    {
      "name": "Games",
      "description": "Games directory: live stats, Rodex rating, page score and rank."
    },
    {
      "name": "Assets",
      "description": "Search the marketplace and read one listing."
    },
    {
      "name": "Community",
      "description": "Leaderboards, jobs and playtests."
    },
    {
      "name": "Tools",
      "description": "Run any free calculator with the same inputs as its page."
    },
    {
      "name": "Bot",
      "description": "Writes the Discord bot makes for linked members, and account linking."
    }
  ],
  "security": [
    {
      "apiKey": []
    }
  ],
  "paths": {
    "/users/{handle}": {
      "get": {
        "operationId": "getUser",
        "tags": [
          "Members"
        ],
        "summary": "Get a member by handle",
        "description": "Public profile, site roles, badges and the Discord roles they map to. Keys with read:users also get linked Roblox and Discord accounts.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-rodex-scopes": [
          "read:public"
        ],
        "parameters": [
          {
            "name": "handle",
            "in": "path",
            "required": true,
            "description": "Rodex handle (3 to 20 letters, numbers or underscores).",
            "schema": {
              "type": "string",
              "description": "Handle"
            },
            "example": "pixelforge"
          }
        ],
        "responses": {
          "200": {
            "description": "Get a member by handle",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserResponse"
                },
                "example": {
                  "data": {
                    "id": "5d1f0c8e-2b7a-4f53-9a43-0f6c1e2d9b10",
                    "handle": "pixelforge",
                    "display_name": "PixelForge",
                    "bio": "UI kits that scale from phone to 4K. Every pack ships with a demo place.",
                    "avatar_url": null,
                    "url": "https://rodex.gg/u/pixelforge",
                    "verified_dev": true,
                    "reputation": 140,
                    "joined_at": "2026-07-29T10:00:00.000Z",
                    "roles": [
                      "seller"
                    ],
                    "badges": [
                      {
                        "slug": "seller",
                        "name": "Seller",
                        "description": "Sells assets on Rodex.",
                        "awarded_at": "2026-07-30T09:12:00.000Z"
                      }
                    ],
                    "discord_role_ids": [
                      "fake-role-seller",
                      "fake-role-verified"
                    ],
                    "store": {
                      "slug": "pixelforge",
                      "name": "PixelForge",
                      "level": "established"
                    },
                    "followers": 212
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "x-rodex-example": {
          "request": {
            "method": "GET",
            "path": "/users/pixelforge"
          },
          "status": 200,
          "response": {
            "data": {
              "id": "5d1f0c8e-2b7a-4f53-9a43-0f6c1e2d9b10",
              "handle": "pixelforge",
              "display_name": "PixelForge",
              "bio": "UI kits that scale from phone to 4K. Every pack ships with a demo place.",
              "avatar_url": null,
              "url": "https://rodex.gg/u/pixelforge",
              "verified_dev": true,
              "reputation": 140,
              "joined_at": "2026-07-29T10:00:00.000Z",
              "roles": [
                "seller"
              ],
              "badges": [
                {
                  "slug": "seller",
                  "name": "Seller",
                  "description": "Sells assets on Rodex.",
                  "awarded_at": "2026-07-30T09:12:00.000Z"
                }
              ],
              "discord_role_ids": [
                "fake-role-seller",
                "fake-role-verified"
              ],
              "store": {
                "slug": "pixelforge",
                "name": "PixelForge",
                "level": "established"
              },
              "followers": 212
            }
          }
        }
      }
    },
    "/users/by-discord/{discord_id}": {
      "get": {
        "operationId": "getUserByDiscord",
        "tags": [
          "Members"
        ],
        "summary": "Get a member by Discord id",
        "description": "The Rodex member a Discord account is linked to, with roles, badges and Discord role ids. This is what the bot uses for /profile, /rank and role sync.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-rodex-scopes": [
          "read:users"
        ],
        "parameters": [
          {
            "name": "discord_id",
            "in": "path",
            "required": true,
            "description": "Discord user id (snowflake).",
            "schema": {
              "type": "string",
              "description": "Discord id",
              "pattern": "^\\d{15,21}$"
            },
            "example": "912345678901234567"
          }
        ],
        "responses": {
          "200": {
            "description": "Get a member by Discord id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserResponse"
                },
                "example": {
                  "data": {
                    "id": "5d1f0c8e-2b7a-4f53-9a43-0f6c1e2d9b10",
                    "handle": "pixelforge",
                    "display_name": "PixelForge",
                    "bio": "UI kits that scale from phone to 4K. Every pack ships with a demo place.",
                    "avatar_url": null,
                    "url": "https://rodex.gg/u/pixelforge",
                    "verified_dev": true,
                    "reputation": 140,
                    "joined_at": "2026-07-29T10:00:00.000Z",
                    "roles": [
                      "seller"
                    ],
                    "badges": [
                      {
                        "slug": "seller",
                        "name": "Seller",
                        "description": "Sells assets on Rodex.",
                        "awarded_at": "2026-07-30T09:12:00.000Z"
                      }
                    ],
                    "discord_role_ids": [
                      "fake-role-seller",
                      "fake-role-verified"
                    ],
                    "store": {
                      "slug": "pixelforge",
                      "name": "PixelForge",
                      "level": "established"
                    },
                    "followers": 212,
                    "linked": {
                      "discord": {
                        "id": "912345678901234567",
                        "username": "pixelforge"
                      },
                      "roblox": {
                        "id": "2849301122",
                        "username": "PixelForgeDev"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "x-rodex-example": {
          "request": {
            "method": "GET",
            "path": "/users/by-discord/912345678901234567"
          },
          "status": 200,
          "response": {
            "data": {
              "id": "5d1f0c8e-2b7a-4f53-9a43-0f6c1e2d9b10",
              "handle": "pixelforge",
              "display_name": "PixelForge",
              "bio": "UI kits that scale from phone to 4K. Every pack ships with a demo place.",
              "avatar_url": null,
              "url": "https://rodex.gg/u/pixelforge",
              "verified_dev": true,
              "reputation": 140,
              "joined_at": "2026-07-29T10:00:00.000Z",
              "roles": [
                "seller"
              ],
              "badges": [
                {
                  "slug": "seller",
                  "name": "Seller",
                  "description": "Sells assets on Rodex.",
                  "awarded_at": "2026-07-30T09:12:00.000Z"
                }
              ],
              "discord_role_ids": [
                "fake-role-seller",
                "fake-role-verified"
              ],
              "store": {
                "slug": "pixelforge",
                "name": "PixelForge",
                "level": "established"
              },
              "followers": 212,
              "linked": {
                "discord": {
                  "id": "912345678901234567",
                  "username": "pixelforge"
                },
                "roblox": {
                  "id": "2849301122",
                  "username": "PixelForgeDev"
                }
              }
            }
          }
        }
      }
    },
    "/games": {
      "get": {
        "operationId": "listGames",
        "tags": [
          "Games"
        ],
        "summary": "List games",
        "description": "Games in the directory with live stats. Sort by most played, rising, top rated (5 or more reviews) or newest.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-rodex-scopes": [
          "read:public"
        ],
        "parameters": [
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "most-played (default), rising, top-rated or new.",
            "schema": {
              "type": "string",
              "description": "Sort",
              "enum": [
                "most-played",
                "rising",
                "top-rated",
                "new"
              ]
            },
            "example": "rising"
          },
          {
            "name": "genre",
            "in": "query",
            "required": false,
            "description": "Genre slug, for example tycoon or obby.",
            "schema": {
              "type": "string",
              "description": "Genre"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Search game names and descriptions.",
            "schema": {
              "type": "string",
              "description": "Search"
            }
          },
          {
            "name": "verified",
            "in": "query",
            "required": false,
            "description": "Only games with a verified owner.",
            "schema": {
              "type": "boolean",
              "description": "Verified owners only"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number, from 1.",
            "schema": {
              "type": "integer",
              "description": "Page",
              "minimum": 1,
              "default": 1
            }
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Results per page, 1 to 100.",
            "schema": {
              "type": "integer",
              "description": "Per page",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List games",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GameListResponse"
                },
                "example": {
                  "data": [
                    {
                      "slug": "cozy-cafe-tycoon",
                      "name": "Cozy Cafe Tycoon",
                      "url": "https://rodex.gg/game/cozy-cafe-tycoon",
                      "genre": "tycoon",
                      "genre_name": "Tycoon",
                      "icon_url": null,
                      "universe_id": 5123456789,
                      "root_place_id": 14123456789,
                      "playing": 1840,
                      "visits": 12500000,
                      "favorites": 98000,
                      "change_7d_percent": 18.4,
                      "rising_rank": 3,
                      "genre_rank": 12,
                      "rating": {
                        "average": 4.6,
                        "count": 23
                      },
                      "verified_owner": true
                    }
                  ],
                  "meta": {
                    "page": 1,
                    "per_page": 1,
                    "total": 25,
                    "has_more": true
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "x-rodex-example": {
          "request": {
            "method": "GET",
            "path": "/games?sort=rising&per_page=1"
          },
          "status": 200,
          "response": {
            "data": [
              {
                "slug": "cozy-cafe-tycoon",
                "name": "Cozy Cafe Tycoon",
                "url": "https://rodex.gg/game/cozy-cafe-tycoon",
                "genre": "tycoon",
                "genre_name": "Tycoon",
                "icon_url": null,
                "universe_id": 5123456789,
                "root_place_id": 14123456789,
                "playing": 1840,
                "visits": 12500000,
                "favorites": 98000,
                "change_7d_percent": 18.4,
                "rising_rank": 3,
                "genre_rank": 12,
                "rating": {
                  "average": 4.6,
                  "count": 23
                },
                "verified_owner": true
              }
            ],
            "meta": {
              "page": 1,
              "per_page": 1,
              "total": 25,
              "has_more": true
            }
          }
        }
      }
    },
    "/games/rising": {
      "get": {
        "operationId": "getRisingGames",
        "tags": [
          "Games"
        ],
        "summary": "Rising games",
        "description": "This week's Rising on Rodex chart, in order. Powers /top in Discord.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-rodex-scopes": [
          "read:public"
        ],
        "parameters": [
          {
            "name": "genre",
            "in": "query",
            "required": false,
            "description": "Only games in this genre.",
            "schema": {
              "type": "string",
              "description": "Genre"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many, 1 to 25.",
            "schema": {
              "type": "integer",
              "description": "Limit",
              "minimum": 1,
              "maximum": 25,
              "default": 10
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Rising games",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GameListResponse"
                },
                "example": {
                  "data": [
                    {
                      "position": 1,
                      "slug": "cozy-cafe-tycoon",
                      "name": "Cozy Cafe Tycoon",
                      "url": "https://rodex.gg/game/cozy-cafe-tycoon",
                      "genre": "tycoon",
                      "genre_name": "Tycoon",
                      "icon_url": null,
                      "universe_id": 5123456789,
                      "root_place_id": 14123456789,
                      "playing": 1840,
                      "visits": 12500000,
                      "favorites": 98000,
                      "change_7d_percent": 18.4,
                      "rising_rank": 1,
                      "genre_rank": 12,
                      "rating": {
                        "average": 4.6,
                        "count": 23
                      },
                      "verified_owner": true
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "x-rodex-example": {
          "request": {
            "method": "GET",
            "path": "/games/rising?limit=1"
          },
          "status": 200,
          "response": {
            "data": [
              {
                "position": 1,
                "slug": "cozy-cafe-tycoon",
                "name": "Cozy Cafe Tycoon",
                "url": "https://rodex.gg/game/cozy-cafe-tycoon",
                "genre": "tycoon",
                "genre_name": "Tycoon",
                "icon_url": null,
                "universe_id": 5123456789,
                "root_place_id": 14123456789,
                "playing": 1840,
                "visits": 12500000,
                "favorites": 98000,
                "change_7d_percent": 18.4,
                "rising_rank": 1,
                "genre_rank": 12,
                "rating": {
                  "average": 4.6,
                  "count": 23
                },
                "verified_owner": true
              }
            ]
          }
        }
      }
    },
    "/games/{slug}": {
      "get": {
        "operationId": "getGame",
        "tags": [
          "Games"
        ],
        "summary": "Get a game",
        "description": "Live stats, votes, Rodex rating, rank in its genre, owners and the page score (when the owner shows it). Powers /game in Discord.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-rodex-scopes": [
          "read:public"
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "Game slug from its Rodex URL.",
            "schema": {
              "type": "string",
              "description": "Slug"
            },
            "example": "cozy-cafe-tycoon"
          }
        ],
        "responses": {
          "200": {
            "description": "Get a game",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GameResponse"
                },
                "example": {
                  "data": {
                    "slug": "cozy-cafe-tycoon",
                    "name": "Cozy Cafe Tycoon",
                    "url": "https://rodex.gg/game/cozy-cafe-tycoon",
                    "genre": "tycoon",
                    "genre_name": "Tycoon",
                    "icon_url": null,
                    "universe_id": 5123456789,
                    "root_place_id": 14123456789,
                    "playing": 1840,
                    "visits": 12500000,
                    "favorites": 98000,
                    "change_7d_percent": 18.4,
                    "rising_rank": 3,
                    "genre_rank": 12,
                    "rating": {
                      "average": 4.6,
                      "count": 23
                    },
                    "verified_owner": true,
                    "description": "Run a cosy cafe, unlock recipes and decorate.",
                    "thumbnail_urls": [],
                    "creator": {
                      "type": "User",
                      "id": 2849301122,
                      "name": "mayabuilds"
                    },
                    "owners": [
                      {
                        "handle": "mayabuilds",
                        "role": "owner"
                      }
                    ],
                    "score": 82,
                    "like_ratio": 0.93,
                    "votes": {
                      "up": 41000,
                      "down": 3100
                    },
                    "genre_total": 64,
                    "followers": 120,
                    "links": {
                      "discord": "https://discord.gg/example"
                    },
                    "roblox_url": "https://www.roblox.com/games/14123456789",
                    "roblox_updated_at": "2026-11-12T08:00:00.000Z",
                    "last_synced_at": "2026-11-16T09:45:00.000Z"
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "x-rodex-example": {
          "request": {
            "method": "GET",
            "path": "/games/cozy-cafe-tycoon"
          },
          "status": 200,
          "response": {
            "data": {
              "slug": "cozy-cafe-tycoon",
              "name": "Cozy Cafe Tycoon",
              "url": "https://rodex.gg/game/cozy-cafe-tycoon",
              "genre": "tycoon",
              "genre_name": "Tycoon",
              "icon_url": null,
              "universe_id": 5123456789,
              "root_place_id": 14123456789,
              "playing": 1840,
              "visits": 12500000,
              "favorites": 98000,
              "change_7d_percent": 18.4,
              "rising_rank": 3,
              "genre_rank": 12,
              "rating": {
                "average": 4.6,
                "count": 23
              },
              "verified_owner": true,
              "description": "Run a cosy cafe, unlock recipes and decorate.",
              "thumbnail_urls": [],
              "creator": {
                "type": "User",
                "id": 2849301122,
                "name": "mayabuilds"
              },
              "owners": [
                {
                  "handle": "mayabuilds",
                  "role": "owner"
                }
              ],
              "score": 82,
              "like_ratio": 0.93,
              "votes": {
                "up": 41000,
                "down": 3100
              },
              "genre_total": 64,
              "followers": 120,
              "links": {
                "discord": "https://discord.gg/example"
              },
              "roblox_url": "https://www.roblox.com/games/14123456789",
              "roblox_updated_at": "2026-11-12T08:00:00.000Z",
              "last_synced_at": "2026-11-16T09:45:00.000Z"
            }
          }
        }
      }
    },
    "/listings": {
      "get": {
        "operationId": "searchListings",
        "tags": [
          "Assets"
        ],
        "summary": "Search assets",
        "description": "Published, staff-reviewed marketplace listings. Powers /asset in Discord. Sales counts are never exposed.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-rodex-scopes": [
          "read:public"
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Search titles, tags and descriptions.",
            "schema": {
              "type": "string",
              "description": "Search"
            },
            "example": "sword"
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "Category or subcategory slug, for example animations.",
            "schema": {
              "type": "string",
              "description": "Category"
            }
          },
          {
            "name": "free",
            "in": "query",
            "required": false,
            "description": "true for free assets only, false for paid only.",
            "schema": {
              "type": "boolean",
              "description": "Free"
            }
          },
          {
            "name": "pass",
            "in": "query",
            "required": false,
            "description": "Only assets included in Rodex Pass.",
            "schema": {
              "type": "boolean",
              "description": "In Pass"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "relevance (default), newest, rating, price_asc or price_desc.",
            "schema": {
              "type": "string",
              "description": "Sort",
              "enum": [
                "relevance",
                "newest",
                "rating",
                "price_asc",
                "price_desc"
              ]
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number, from 1.",
            "schema": {
              "type": "integer",
              "description": "Page",
              "minimum": 1,
              "default": 1
            }
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Results per page, 1 to 100.",
            "schema": {
              "type": "integer",
              "description": "Per page",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Search assets",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListingListResponse"
                },
                "example": {
                  "data": [
                    {
                      "slug": "sword-combat-animation-pack",
                      "title": "Sword combat animation pack (R15)",
                      "summary": "32 hand-keyed sword swings, blocks and rolls for R15.",
                      "url": "https://rodex.gg/asset/sword-combat-animation-pack",
                      "price": {
                        "cents": 1200,
                        "currency": "USD",
                        "free": false
                      },
                      "category": {
                        "slug": "animations",
                        "name": "Animations"
                      },
                      "seller": {
                        "handle": "novaanim",
                        "store": "Nova Animations"
                      },
                      "rating": {
                        "average": 4.8,
                        "count": 17
                      },
                      "staff_reviewed": true,
                      "version": "1.2.0",
                      "in_pass": true,
                      "image_url": null,
                      "published_at": "2026-10-02T15:00:00.000Z"
                    }
                  ],
                  "meta": {
                    "page": 1,
                    "per_page": 1,
                    "total": 4,
                    "has_more": true
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "x-rodex-example": {
          "request": {
            "method": "GET",
            "path": "/listings?q=sword&per_page=1"
          },
          "status": 200,
          "response": {
            "data": [
              {
                "slug": "sword-combat-animation-pack",
                "title": "Sword combat animation pack (R15)",
                "summary": "32 hand-keyed sword swings, blocks and rolls for R15.",
                "url": "https://rodex.gg/asset/sword-combat-animation-pack",
                "price": {
                  "cents": 1200,
                  "currency": "USD",
                  "free": false
                },
                "category": {
                  "slug": "animations",
                  "name": "Animations"
                },
                "seller": {
                  "handle": "novaanim",
                  "store": "Nova Animations"
                },
                "rating": {
                  "average": 4.8,
                  "count": 17
                },
                "staff_reviewed": true,
                "version": "1.2.0",
                "in_pass": true,
                "image_url": null,
                "published_at": "2026-10-02T15:00:00.000Z"
              }
            ],
            "meta": {
              "page": 1,
              "per_page": 1,
              "total": 4,
              "has_more": true
            }
          }
        }
      }
    },
    "/listings/{slug}": {
      "get": {
        "operationId": "getListing",
        "tags": [
          "Assets"
        ],
        "summary": "Get an asset",
        "description": "One published listing: description, what is included, setup, compatibility, versions, media, demo places and rating breakdown.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-rodex-scopes": [
          "read:public"
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "Listing slug from its Rodex URL.",
            "schema": {
              "type": "string",
              "description": "Slug"
            },
            "example": "sword-combat-animation-pack"
          }
        ],
        "responses": {
          "200": {
            "description": "Get an asset",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListingResponse"
                },
                "example": {
                  "data": {
                    "slug": "sword-combat-animation-pack",
                    "title": "Sword combat animation pack (R15)",
                    "summary": "32 hand-keyed sword swings, blocks and rolls for R15.",
                    "url": "https://rodex.gg/asset/sword-combat-animation-pack",
                    "price": {
                      "cents": 1200,
                      "currency": "USD",
                      "free": false
                    },
                    "category": {
                      "slug": "animations",
                      "name": "Animations"
                    },
                    "seller": {
                      "handle": "novaanim",
                      "store": "Nova Animations"
                    },
                    "rating": {
                      "average": 4.8,
                      "count": 17
                    },
                    "staff_reviewed": true,
                    "version": "1.2.0",
                    "in_pass": true,
                    "image_url": null,
                    "published_at": "2026-10-02T15:00:00.000Z",
                    "description_md": "Thirty-two hand-keyed animations…",
                    "included_md": "- 32 animations\n- Demo place",
                    "setup_md": "Drop the folder into ReplicatedStorage.",
                    "requirements": "R15 only",
                    "compatibility": {
                      "rig": "r15",
                      "mobile": true
                    },
                    "tags": [
                      "combat",
                      "sword"
                    ],
                    "media": [],
                    "versions": [
                      {
                        "label": "1.2.0",
                        "approved_at": "2026-10-30T12:00:00.000Z",
                        "staff_reviewed": true,
                        "changelog": "Added two rolls."
                      }
                    ],
                    "demo_place_ids": [
                      14987654321
                    ],
                    "used_in_games": [],
                    "rating_breakdown": {
                      "1": 0,
                      "2": 0,
                      "3": 0,
                      "4": 2,
                      "5": 15
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "x-rodex-example": {
          "request": {
            "method": "GET",
            "path": "/listings/sword-combat-animation-pack"
          },
          "status": 200,
          "response": {
            "data": {
              "slug": "sword-combat-animation-pack",
              "title": "Sword combat animation pack (R15)",
              "summary": "32 hand-keyed sword swings, blocks and rolls for R15.",
              "url": "https://rodex.gg/asset/sword-combat-animation-pack",
              "price": {
                "cents": 1200,
                "currency": "USD",
                "free": false
              },
              "category": {
                "slug": "animations",
                "name": "Animations"
              },
              "seller": {
                "handle": "novaanim",
                "store": "Nova Animations"
              },
              "rating": {
                "average": 4.8,
                "count": 17
              },
              "staff_reviewed": true,
              "version": "1.2.0",
              "in_pass": true,
              "image_url": null,
              "published_at": "2026-10-02T15:00:00.000Z",
              "description_md": "Thirty-two hand-keyed animations…",
              "included_md": "- 32 animations\n- Demo place",
              "setup_md": "Drop the folder into ReplicatedStorage.",
              "requirements": "R15 only",
              "compatibility": {
                "rig": "r15",
                "mobile": true
              },
              "tags": [
                "combat",
                "sword"
              ],
              "media": [],
              "versions": [
                {
                  "label": "1.2.0",
                  "approved_at": "2026-10-30T12:00:00.000Z",
                  "staff_reviewed": true,
                  "changelog": "Added two rolls."
                }
              ],
              "demo_place_ids": [
                14987654321
              ],
              "used_in_games": [],
              "rating_breakdown": {
                "1": 0,
                "2": 0,
                "3": 0,
                "4": 2,
                "5": 15
              }
            }
          }
        }
      }
    },
    "/leaderboards": {
      "get": {
        "operationId": "getLeaderboard",
        "tags": [
          "Community"
        ],
        "summary": "Leaderboards",
        "description": "Top members by reputation (powers /rank), or games by players, rating or rising rank.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-rodex-scopes": [
          "read:public"
        ],
        "parameters": [
          {
            "name": "board",
            "in": "query",
            "required": false,
            "description": "reputation (default), most-played, top-rated or rising.",
            "schema": {
              "type": "string",
              "description": "Board",
              "enum": [
                "reputation",
                "most-played",
                "top-rated",
                "rising"
              ]
            },
            "example": "reputation"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many, 1 to 50.",
            "schema": {
              "type": "integer",
              "description": "Limit",
              "minimum": 1,
              "maximum": 50,
              "default": 10
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Leaderboards",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LeaderboardResponse"
                },
                "example": {
                  "data": [
                    {
                      "rank": 1,
                      "type": "member",
                      "handle": "pixelforge",
                      "display_name": "PixelForge",
                      "reputation": 140,
                      "verified_dev": true,
                      "url": "https://rodex.gg/u/pixelforge"
                    }
                  ],
                  "meta": {
                    "board": "reputation"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "x-rodex-example": {
          "request": {
            "method": "GET",
            "path": "/leaderboards?board=reputation&limit=1"
          },
          "status": 200,
          "response": {
            "data": [
              {
                "rank": 1,
                "type": "member",
                "handle": "pixelforge",
                "display_name": "PixelForge",
                "reputation": 140,
                "verified_dev": true,
                "url": "https://rodex.gg/u/pixelforge"
              }
            ],
            "meta": {
              "board": "reputation"
            }
          }
        }
      }
    },
    "/jobs": {
      "get": {
        "operationId": "listJobs",
        "tags": [
          "Community"
        ],
        "summary": "Open jobs",
        "description": "Open jobs on the jobs board, newest first. Powers /jobs in Discord.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-rodex-scopes": [
          "read:public"
        ],
        "parameters": [
          {
            "name": "role",
            "in": "query",
            "required": false,
            "description": "scripter, builder, modeller, animator, ui, vfx, audio, gfx and so on.",
            "schema": {
              "type": "string",
              "description": "Role"
            }
          },
          {
            "name": "pay_type",
            "in": "query",
            "required": false,
            "description": "fixed, hourly or rev_share.",
            "schema": {
              "type": "string",
              "description": "Pay type",
              "enum": [
                "fixed",
                "hourly",
                "rev_share"
              ]
            }
          },
          {
            "name": "remote",
            "in": "query",
            "required": false,
            "description": "Only remote (true) or only on-site (false) jobs.",
            "schema": {
              "type": "boolean",
              "description": "Remote"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number, from 1.",
            "schema": {
              "type": "integer",
              "description": "Page",
              "minimum": 1,
              "default": 1
            }
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Results per page, 1 to 100.",
            "schema": {
              "type": "integer",
              "description": "Per page",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Open jobs",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobListResponse"
                },
                "example": {
                  "data": [
                    {
                      "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "title": "Combat animator for a sword fighting game",
                      "url": "https://rodex.gg/jobs/7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "role": "animator",
                      "skills": [
                        "animator"
                      ],
                      "pay": {
                        "type": "fixed",
                        "min_cents": 20000,
                        "max_cents": 40000,
                        "currency": "USD",
                        "revenue_share_percent": null
                      },
                      "remote": true,
                      "deadline": "2026-12-01",
                      "expires_at": "2026-12-14T00:00:00.000Z",
                      "posted_at": "2026-11-14T10:00:00.000Z",
                      "applications": 3,
                      "poster": {
                        "handle": "blocksmith"
                      },
                      "game": null
                    }
                  ],
                  "meta": {
                    "page": 1,
                    "per_page": 1,
                    "total": 1,
                    "has_more": false
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "x-rodex-example": {
          "request": {
            "method": "GET",
            "path": "/jobs?role=animator&per_page=1"
          },
          "status": 200,
          "response": {
            "data": [
              {
                "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                "title": "Combat animator for a sword fighting game",
                "url": "https://rodex.gg/jobs/7c9e6679-7425-40de-944b-e07fc1f90ae7",
                "role": "animator",
                "skills": [
                  "animator"
                ],
                "pay": {
                  "type": "fixed",
                  "min_cents": 20000,
                  "max_cents": 40000,
                  "currency": "USD",
                  "revenue_share_percent": null
                },
                "remote": true,
                "deadline": "2026-12-01",
                "expires_at": "2026-12-14T00:00:00.000Z",
                "posted_at": "2026-11-14T10:00:00.000Z",
                "applications": 3,
                "poster": {
                  "handle": "blocksmith"
                },
                "game": null
              }
            ],
            "meta": {
              "page": 1,
              "per_page": 1,
              "total": 1,
              "has_more": false
            }
          }
        }
      }
    },
    "/playtests": {
      "get": {
        "operationId": "listPlaytests",
        "tags": [
          "Community"
        ],
        "summary": "Playtests",
        "description": "Playtests taking testers (or every recent one), newest first.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-rodex-scopes": [
          "read:public"
        ],
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "open (default) or all.",
            "schema": {
              "type": "string",
              "description": "Status",
              "enum": [
                "open",
                "all"
              ]
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number, from 1.",
            "schema": {
              "type": "integer",
              "description": "Page",
              "minimum": 1,
              "default": 1
            }
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Results per page, 1 to 100.",
            "schema": {
              "type": "integer",
              "description": "Per page",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Playtests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlaytestListResponse"
                },
                "example": {
                  "data": [
                    {
                      "id": "0b6e3f2a-8c1d-4e7f-9a2b-3c4d5e6f7a8b",
                      "title": "First 10 minutes of Cozy Cafe Tycoon",
                      "url": "https://rodex.gg/playtests/0b6e3f2a-8c1d-4e7f-9a2b-3c4d5e6f7a8b",
                      "status": "open",
                      "what_to_test": "The tutorial and the first upgrade loop.",
                      "focus": [
                        "onboarding",
                        "ui"
                      ],
                      "slots": 10,
                      "slots_taken": 4,
                      "slots_left": 6,
                      "token_reward": 2,
                      "opens_at": "2026-11-14T12:00:00.000Z",
                      "closes_at": "2026-11-21T12:00:00.000Z",
                      "host": {
                        "handle": "mayabuilds"
                      },
                      "game": {
                        "slug": "cozy-cafe-tycoon",
                        "name": "Cozy Cafe Tycoon",
                        "root_place_id": 14123456789
                      }
                    }
                  ],
                  "meta": {
                    "page": 1,
                    "per_page": 1,
                    "total": 1,
                    "has_more": false
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "x-rodex-example": {
          "request": {
            "method": "GET",
            "path": "/playtests?per_page=1"
          },
          "status": 200,
          "response": {
            "data": [
              {
                "id": "0b6e3f2a-8c1d-4e7f-9a2b-3c4d5e6f7a8b",
                "title": "First 10 minutes of Cozy Cafe Tycoon",
                "url": "https://rodex.gg/playtests/0b6e3f2a-8c1d-4e7f-9a2b-3c4d5e6f7a8b",
                "status": "open",
                "what_to_test": "The tutorial and the first upgrade loop.",
                "focus": [
                  "onboarding",
                  "ui"
                ],
                "slots": 10,
                "slots_taken": 4,
                "slots_left": 6,
                "token_reward": 2,
                "opens_at": "2026-11-14T12:00:00.000Z",
                "closes_at": "2026-11-21T12:00:00.000Z",
                "host": {
                  "handle": "mayabuilds"
                },
                "game": {
                  "slug": "cozy-cafe-tycoon",
                  "name": "Cozy Cafe Tycoon",
                  "root_place_id": 14123456789
                }
              }
            ],
            "meta": {
              "page": 1,
              "per_page": 1,
              "total": 1,
              "has_more": false
            }
          }
        }
      }
    },
    "/tools/{slug}": {
      "get": {
        "operationId": "runTool",
        "tags": [
          "Tools"
        ],
        "summary": "Run a calculator",
        "description": "Runs one of the free tools with the same query parameters as its page (copy them from the tool's Share link), using the current rates. Returns the raw result and a text report.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-rodex-scopes": [
          "read:public"
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "devex-calculator, ad-credit-calculator, robux-to-usd, game-pass-calculator, commission-calculator, revenue-split-calculator or game-earnings-estimator.",
            "schema": {
              "type": "string",
              "description": "Tool",
              "enum": [
                "devex-calculator",
                "ad-credit-calculator",
                "robux-to-usd",
                "game-pass-calculator",
                "commission-calculator",
                "revenue-split-calculator",
                "game-earnings-estimator"
              ]
            },
            "example": "devex-calculator"
          }
        ],
        "x-rodex-free-query": "The tool's own inputs, as in its page URL.",
        "responses": {
          "200": {
            "description": "Run a calculator",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolRunResponse"
                },
                "example": {
                  "data": {
                    "tool": "devex-calculator",
                    "name": "DevEx calculator",
                    "url": "https://rodex.gg/tools/devex-calculator?mode=robux-to-usd&robux=50000",
                    "report": {
                      "title": "DevEx: 50,000 Robux",
                      "headline": {
                        "label": "You get",
                        "value": "$190.00"
                      },
                      "rows": [],
                      "steps": [],
                      "warnings": []
                    },
                    "result": {}
                  },
                  "meta": {
                    "rates_verified_at": "2026-11-15"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "x-rodex-example": {
          "request": {
            "method": "GET",
            "path": "/tools/devex-calculator?mode=robux-to-usd&robux=50000"
          },
          "status": 200,
          "response": {
            "data": {
              "tool": "devex-calculator",
              "name": "DevEx calculator",
              "url": "https://rodex.gg/tools/devex-calculator?mode=robux-to-usd&robux=50000",
              "report": {
                "title": "DevEx: 50,000 Robux",
                "headline": {
                  "label": "You get",
                  "value": "$190.00"
                },
                "rows": [],
                "steps": [],
                "warnings": []
              },
              "result": {}
            },
            "meta": {
              "rates_verified_at": "2026-11-15"
            }
          }
        }
      }
    },
    "/reputation": {
      "post": {
        "operationId": "awardReputation",
        "tags": [
          "Bot"
        ],
        "summary": "Award reputation",
        "description": "Gives (or takes, with a negative amount) reputation for helping, from Discord. A member can gain at most 100 points a day this way. The member is told on the site.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-rodex-scopes": [
          "write:community"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "amount",
                  "reason"
                ],
                "properties": {
                  "discord_id": {
                    "type": "string",
                    "description": "Discord id of a linked member. Give this or handle."
                  },
                  "handle": {
                    "type": "string",
                    "description": "Rodex handle. Give this or discord_id."
                  },
                  "amount": {
                    "type": "integer",
                    "description": "Points, -50 to 50, not 0.",
                    "minimum": -50,
                    "maximum": 50
                  },
                  "reason": {
                    "type": "string",
                    "description": "Why, 3 to 200 characters. Shown to the member.",
                    "minLength": 3,
                    "maxLength": 200
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Award reputation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReputationResultResponse"
                },
                "example": {
                  "data": {
                    "handle": "pixelforge",
                    "amount": 5,
                    "total": 145
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "x-rodex-example": {
          "request": {
            "method": "POST",
            "path": "/reputation",
            "body": {
              "discord_id": "912345678901234567",
              "amount": 5,
              "reason": "Solved a DataStore question in #scripting-help"
            }
          },
          "status": 201,
          "response": {
            "data": {
              "handle": "pixelforge",
              "amount": 5,
              "total": 145
            }
          }
        }
      }
    },
    "/playtests/{id}/claims": {
      "post": {
        "operationId": "claimPlaytest",
        "tags": [
          "Bot"
        ],
        "summary": "Claim a playtest slot",
        "description": "Claims a slot for a linked member, as if they pressed Claim on the site. Claiming twice returns the existing claim (200). Full or closed playtests return 409.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-rodex-scopes": [
          "write:community"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Playtest id.",
            "schema": {
              "type": "string",
              "description": "Playtest id",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "discord_id"
                ],
                "properties": {
                  "discord_id": {
                    "type": "string",
                    "description": "Discord id of a linked member."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Claim a playtest slot",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlaytestClaimResponse"
                },
                "example": {
                  "data": {
                    "created": true,
                    "session_id": "3f1c2b4a-5d6e-4f70-8192-a3b4c5d6e7f8",
                    "status": "claimed",
                    "playtest": {
                      "id": "0b6e3f2a-8c1d-4e7f-9a2b-3c4d5e6f7a8b",
                      "title": "First 10 minutes of Cozy Cafe Tycoon",
                      "url": "https://rodex.gg/playtests/0b6e3f2a-8c1d-4e7f-9a2b-3c4d5e6f7a8b",
                      "status": "open",
                      "what_to_test": "The tutorial and the first upgrade loop.",
                      "focus": [
                        "onboarding",
                        "ui"
                      ],
                      "slots": 10,
                      "slots_taken": 5,
                      "slots_left": 5,
                      "token_reward": 2,
                      "opens_at": "2026-11-14T12:00:00.000Z",
                      "closes_at": "2026-11-21T12:00:00.000Z",
                      "host": {
                        "handle": "mayabuilds"
                      },
                      "game": {
                        "slug": "cozy-cafe-tycoon",
                        "name": "Cozy Cafe Tycoon",
                        "root_place_id": 14123456789
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "x-rodex-example": {
          "request": {
            "method": "POST",
            "path": "/playtests/0b6e3f2a-8c1d-4e7f-9a2b-3c4d5e6f7a8b/claims",
            "body": {
              "discord_id": "912345678901234567"
            }
          },
          "status": 201,
          "response": {
            "data": {
              "created": true,
              "session_id": "3f1c2b4a-5d6e-4f70-8192-a3b4c5d6e7f8",
              "status": "claimed",
              "playtest": {
                "id": "0b6e3f2a-8c1d-4e7f-9a2b-3c4d5e6f7a8b",
                "title": "First 10 minutes of Cozy Cafe Tycoon",
                "url": "https://rodex.gg/playtests/0b6e3f2a-8c1d-4e7f-9a2b-3c4d5e6f7a8b",
                "status": "open",
                "what_to_test": "The tutorial and the first upgrade loop.",
                "focus": [
                  "onboarding",
                  "ui"
                ],
                "slots": 10,
                "slots_taken": 5,
                "slots_left": 5,
                "token_reward": 2,
                "opens_at": "2026-11-14T12:00:00.000Z",
                "closes_at": "2026-11-21T12:00:00.000Z",
                "host": {
                  "handle": "mayabuilds"
                },
                "game": {
                  "slug": "cozy-cafe-tycoon",
                  "name": "Cozy Cafe Tycoon",
                  "root_place_id": 14123456789
                }
              }
            }
          }
        }
      }
    },
    "/showcase/{id}/reactions": {
      "post": {
        "operationId": "reactToShowcase",
        "tags": [
          "Bot"
        ],
        "summary": "Record a showcase reaction",
        "description": "Counts a reaction from Discord on a showcase post. One reaction per member per post; sending a different kind changes it.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-rodex-scopes": [
          "write:community"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Showcase post id or slug.",
            "schema": {
              "type": "string",
              "description": "Showcase id or slug"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "discord_id"
                ],
                "properties": {
                  "discord_id": {
                    "type": "string",
                    "description": "Discord id of a linked member."
                  },
                  "kind": {
                    "type": "string",
                    "description": "like (default), fire, clap or idea.",
                    "enum": [
                      "like",
                      "fire",
                      "clap",
                      "idea"
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Record a showcase reaction",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReactionResultResponse"
                },
                "example": {
                  "data": {
                    "created": true,
                    "kind": "fire",
                    "reaction_count": 24,
                    "showcase": {
                      "id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
                      "slug": "obby-lobby-redesign",
                      "url": "https://rodex.gg/showcase/obby-lobby-redesign"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "x-rodex-example": {
          "request": {
            "method": "POST",
            "path": "/showcase/obby-lobby-redesign/reactions",
            "body": {
              "discord_id": "912345678901234567",
              "kind": "fire"
            }
          },
          "status": 201,
          "response": {
            "data": {
              "created": true,
              "kind": "fire",
              "reaction_count": 24,
              "showcase": {
                "id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
                "slug": "obby-lobby-redesign",
                "url": "https://rodex.gg/showcase/obby-lobby-redesign"
              }
            }
          }
        }
      }
    },
    "/link-codes": {
      "post": {
        "operationId": "createLinkCode",
        "tags": [
          "Bot"
        ],
        "summary": "Create an account link code",
        "description": "For /link in Discord: a one-time code that lasts 10 minutes. Send the member the url; they sign in and confirm. A newer code replaces older unused ones. linked_to names the member the Discord account is linked to now, if any.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-rodex-scopes": [
          "bot"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "discord_id"
                ],
                "properties": {
                  "discord_id": {
                    "type": "string",
                    "description": "Discord id of the member running /link."
                  },
                  "discord_username": {
                    "type": "string",
                    "description": "Their Discord username, shown on the confirm page."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Create an account link code",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LinkCodeResponse"
                },
                "example": {
                  "data": {
                    "code": "Hk7mQ2xPzR",
                    "url": "https://rodex.gg/link/Hk7mQ2xPzR",
                    "expires_at": "2026-11-16T10:10:00.000Z",
                    "linked_to": null
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "x-rodex-example": {
          "request": {
            "method": "POST",
            "path": "/link-codes",
            "body": {
              "discord_id": "912345678901234567",
              "discord_username": "pixelforge"
            }
          },
          "status": 201,
          "response": {
            "data": {
              "code": "Hk7mQ2xPzR",
              "url": "https://rodex.gg/link/Hk7mQ2xPzR",
              "expires_at": "2026-11-16T10:10:00.000Z",
              "linked_to": null
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "apiKey": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "rdx_<env>_<40 characters>",
        "description": "An API key from Admin > Integrations."
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "code",
              "message",
              "status"
            ],
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              },
              "status": {
                "type": "integer"
              },
              "details": {}
            }
          }
        }
      },
      "PageMeta": {
        "type": "object",
        "properties": {
          "page": {
            "type": "integer"
          },
          "per_page": {
            "type": "integer"
          },
          "total": {
            "type": "integer"
          },
          "has_more": {
            "type": "boolean"
          }
        }
      },
      "UserResponse": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object"
          }
        }
      },
      "GameListResponse": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/PageMeta"
          }
        }
      },
      "GameResponse": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object"
          }
        }
      },
      "ListingListResponse": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/PageMeta"
          }
        }
      },
      "ListingResponse": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object"
          }
        }
      },
      "LeaderboardResponse": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/PageMeta"
          }
        }
      },
      "JobListResponse": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/PageMeta"
          }
        }
      },
      "PlaytestListResponse": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/PageMeta"
          }
        }
      },
      "ToolRunResponse": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object"
          }
        }
      },
      "ReputationResultResponse": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object"
          }
        }
      },
      "PlaytestClaimResponse": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object"
          }
        }
      },
      "ReactionResultResponse": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object"
          }
        }
      },
      "LinkCodeResponse": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object"
          }
        }
      }
    },
    "responses": {
      "InvalidRequest": {
        "description": "A parameter or field is invalid.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Unauthorized": {
        "description": "No key, or the key is wrong or revoked.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Forbidden": {
        "description": "The key lacks a scope this endpoint needs.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "NotFound": {
        "description": "Nothing found, or the Discord account is not linked.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Conflict": {
        "description": "The action cannot happen right now.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "RateLimited": {
        "description": "Over this key's per-minute limit.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    }
  },
  "x-rodex-scopes": {
    "read:public": "Public data: games, listings, jobs, playtests, leaderboards, tools and public profiles. Every key has it.",
    "read:users": "Member lookups by Discord id, including linked Roblox and Discord accounts.",
    "write:community": "Community actions for a linked member: reputation, playtest claims and showcase reactions.",
    "bot": "The Discord bot. Includes every other scope, plus one-time account link codes."
  },
  "x-rodex-errors": [
    {
      "status": 400,
      "code": "invalid_request",
      "meaning": "A parameter or body field is missing or invalid. details.fields says which."
    },
    {
      "status": 401,
      "code": "unauthorized / invalid_key / revoked_key",
      "meaning": "No key, a wrong key, or a revoked key."
    },
    {
      "status": 403,
      "code": "insufficient_scope",
      "meaning": "The key does not have the scope this endpoint needs. details lists required and granted."
    },
    {
      "status": 404,
      "code": "not_found / not_linked",
      "meaning": "Nothing with that id, or the Discord account is not linked to a Rodex member."
    },
    {
      "status": 409,
      "code": "conflict",
      "meaning": "The action cannot happen now: a full playtest, a daily reputation limit."
    },
    {
      "status": 429,
      "code": "rate_limited",
      "meaning": "Too many requests for this key this minute. Wait for Retry-After seconds."
    },
    {
      "status": 500,
      "code": "server_error",
      "meaning": "Something broke on Rodex's side. Safe to retry."
    }
  ],
  "x-rodex-webhooks": {
    "description": "Outgoing webhooks POST every subscribed integration event as JSON: { id, type, created_at, delivery_id, attempt, data }. Verify X-Rodex-Signature: it is sha256=<hex> of HMAC-SHA256(secret, `${X-Rodex-Timestamp}.${raw body}`). Refuse timestamps more than 5 minutes old and use id to ignore repeats. Non-2xx responses are retried after 1 min, 5 min, 30 min, 2 h and 6 h, then marked failed.",
    "events": [
      "user.joined",
      "user.linked_discord",
      "user.linked_roblox",
      "user.role_changed",
      "badge.awarded",
      "badge.removed",
      "pass.started",
      "pass.ended",
      "seller.approved",
      "listing.published",
      "listing.updated",
      "order.paid",
      "review.posted",
      "game.added",
      "game.verified",
      "game.milestone",
      "game.rising",
      "showcase.posted",
      "job.posted",
      "playtest.opened",
      "newsletter.published",
      "changelog.published"
    ]
  }
}
