openapi: 3.1.0 info: title: RubyGems.org Registry Activity Profiles API description: OpenAPI description of the public REST API for rubygems.org, the Ruby community's gem hosting service. Covers the v1 surface documented at https://guides.rubygems.org/rubygems-org-api/ and the v2 versions endpoint documented at https://guides.rubygems.org/rubygems-org-api-v2/. version: 1.0.0 contact: name: RubyGems.org Support url: https://github.com/rubygems/rubygems.org license: name: MIT url: https://github.com/rubygems/rubygems.org/blob/master/MIT-LICENSE servers: - url: https://rubygems.org description: Production registry security: - ApiKeyAuth: [] tags: - name: Profiles paths: /api/v1/profiles/me.json: get: operationId: getMyProfile summary: Get Authenticated User Profile description: Returns the profile of the authenticated user, including MFA level and handle. tags: - Profiles security: - ApiKeyAuth: [] responses: '200': description: Profile detail content: application/json: schema: $ref: '#/components/schemas/Profile' components: schemas: Profile: type: object properties: handle: type: string email: type: string format: email mfa: type: string enum: - disabled - ui_only - ui_and_api - ui_and_gem_signin securitySchemes: ApiKeyAuth: type: apiKey in: header name: Authorization description: RubyGems API key issued in the user account settings. BasicAuth: type: http scheme: basic