> ## Documentation Index
> Fetch the complete documentation index at: https://docs.maxcare.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get current app context

> Returns the authenticated app's context. Use this to verify API key validity and inspect resolved identity.



## OpenAPI

````yaml /openapi-v1.json get /marketplace/me
openapi: 3.0.0
info:
  title: Max AI Public API
  description: API for third-party marketplace apps
  version: '1.0'
  contact: {}
servers:
  - url: https://api.maxcare.ai/v1
security: []
tags: []
paths:
  /marketplace/me:
    get:
      tags:
        - Marketplace
      summary: Get current app context
      description: >-
        Returns the authenticated app's context. Use this to verify API key
        validity and inspect resolved identity.
      operationId: MarketplacePublicController_getMe
      parameters:
        - name: X-Organization-Id
          in: header
          required: true
          schema:
            type: string
          description: Target clinic organization ID
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetMeSuccessResponse'
        '401':
          description: Invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiUnauthorizedResponse'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiRateLimitResponse'
      security:
        - api-key: []
components:
  schemas:
    GetMeSuccessResponse:
      type: object
      properties:
        code:
          type: string
          description: Response code
          example: success
        data:
          $ref: '#/components/schemas/MeDataResponse'
      required:
        - code
        - data
    PublicApiUnauthorizedResponse:
      type: object
      properties:
        code:
          type: string
          description: Error code
          example: unauthorized
        message:
          type: string
          description: Human-readable error message
          example: Invalid or missing API key
        trace_id:
          type: string
          description: Trace ID for debugging
          example: 550e8400-e29b-41d4-a716-446655440000
      required:
        - code
        - message
        - trace_id
    PublicApiRateLimitResponse:
      type: object
      properties:
        code:
          type: string
          description: Error code
          example: rate_limit_exceeded
        message:
          type: string
          description: Human-readable error message
          example: Rate limit exceeded. Maximum 1000 requests per 60 seconds.
        trace_id:
          type: string
          description: Trace ID for debugging
          example: 550e8400-e29b-41d4-a716-446655440000
      required:
        - code
        - message
        - trace_id
    MeDataResponse:
      type: object
      properties:
        app:
          description: App information
          allOf:
            - $ref: '#/components/schemas/MeAppInfo'
        organization:
          description: Organization information
          allOf:
            - $ref: '#/components/schemas/MeOrganizationInfo'
        scopes:
          description: Granted scopes
          example:
            - read:patients
            - read:appointments
            - read:providers
            - read:bills
          type: array
          items:
            type: string
      required:
        - app
        - organization
        - scopes
    MeAppInfo:
      type: object
      properties:
        id:
          type: string
          description: Marketplace app ID
          example: d0e1f2a3-b4c5-4d6e-7f8a-9b0c1d2e3f4a
        slug:
          type: string
          description: App slug
          example: my-healthcare-app
        liveVersionId:
          type: string
          description: Live version ID
          example: e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b
      required:
        - id
        - slug
        - liveVersionId
    MeOrganizationInfo:
      type: object
      properties:
        id:
          type: string
          description: Organization ID
          example: org_abc123
      required:
        - id
  securitySchemes:
    api-key:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: Marketplace API key

````