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

# Get the authenticated user's profile and permissions.



## OpenAPI

````yaml /openapi/openapi.yaml get /me
openapi: 3.0.3
info:
  title: Golan Sertifikasi API
  version: 1.0.0
  description: >-
    Public REST API for Golan Sertifikasi web and mobile clients. All monetary
    values are integer IDR. Authenticate with Google ID token exchange; use the
    short-lived bearer token returned by the API.
servers:
  - url: /api/v1
security:
  - bearerAuth: []
paths:
  /me:
    get:
      tags:
        - Identity
      summary: Get the authenticated user's profile and permissions.
      operationId: getCurrentUser
      responses:
        '200':
          description: >-
            Current profile, roles, permissions, onboarding state, and referral
            code.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/User'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    User:
      type: object
      required:
        - id
        - email
        - avatar_url
        - status
        - profile
        - roles
        - permissions
        - referral_code
      properties:
        id:
          type: string
        email:
          type: string
          format: email
        avatar_url:
          type: string
        status:
          type: string
          enum:
            - active
            - suspended
            - banned
        onboarding_completed_at:
          type: string
          format: date-time
        profile:
          $ref: '#/components/schemas/UserProfile'
        roles:
          type: array
          nullable: true
          items:
            type: string
        permissions:
          type: array
          nullable: true
          items:
            type: string
        referral_code:
          type: string
    UserProfile:
      type: object
      required:
        - display_name
        - legal_name
        - phone
        - acquisition_source
        - category_ids
      properties:
        display_name:
          type: string
        legal_name:
          type: string
        birth_date:
          type: string
          format: date
        gender:
          type: string
          enum:
            - male
            - female
            - prefer_not_to_say
        phone:
          type: string
        acquisition_source:
          type: string
        category_ids:
          type: array
          nullable: true
          items:
            type: string
    Error:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          enum:
            - unauthorized
            - forbidden
            - invalid_google_credential
            - auth_not_configured
            - account_unavailable
            - self_referral
            - not_found
            - tax_policy_unavailable
            - finance_policy_unapproved
            - insufficient_balance
            - wallet_on_hold
            - reservation_pending
            - payment_pending
            - dependency_unavailable
            - payment_unavailable
            - push_unavailable
            - media_unavailable
            - upload_too_large
            - amount_mismatch
            - invalid_status
            - invalid_coupon
            - gateway_request_failed
            - gateway_verification_failed
            - conflict
            - invalid_request
            - idempotency_key_required
            - invalid_idempotency_key
            - internal_error
        message:
          type: string
        request_id:
          type: string
  responses:
    Unauthorized:
      description: Authentication required.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.