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

# Get My Info(내 정보 조회)



## OpenAPI

````yaml https://beta.flamel.app/api-json get /api/users/me
openapi: 3.0.0
info:
  title: Flamel API 문서
  description: REST API 문서입니다. 발급받은 API키를 X-Api-Key 헤더에 넣은 뒤 api를 사용하면 됩니다.
  version: '1.1'
  contact: {}
servers:
  - url: http://localhost:4010
    description: Local
  - url: https://beta.flamel.app
    description: Beta
security: []
tags:
  - name: Flamel
    description: ''
paths:
  /api/users/me:
    get:
      tags:
        - users
      summary: Get My Info(내 정보 조회)
      operationId: UsersApiController_getMyInfo
      parameters: []
      responses:
        '200':
          description: My Information(내 정보)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthUserDto'
        '401':
          description: Unauthorized
          content:
            application/json:
              examples:
                InvalidApiKey:
                  summary: Invalid API KEY(API KEY 틀림)
                  value:
                    success: false
                    code: 401
                    data: wrong_api_key
                ApiKeyExpired:
                  summary: API KEY Expired(API KEY 만료)
                  value:
                    success: false
                    code: 401
                    data: api_key_expired
        '403':
          description: Forbidden
          content:
            application/json:
              examples:
                NotLoggedIn:
                  summary: Not Logged In(로그인되어있지 않음)
                  value:
                    success: false
                    code: 403
                    data: not_logged_in
      security:
        - connect.sid: []
        - apiKey: []
components:
  schemas:
    AuthUserDto:
      type: object
      properties:
        userId:
          type: number
          description: 아이디
        email:
          type: string
          format: email
          description: 이메일
        name:
          type: string
          description: 이름
        occupation:
          type: string
          description: 직업
        business:
          type: string
          description: 업종
        notifyAgree:
          type: boolean
          description: 마케팅 동의 여부
        creditNotifyAgree:
          type: boolean
          description: 크레딧 충전 알림 동의 여부
        tutorialFinished:
          type: boolean
          description: 튜토리얼 완료 여부
        profileImage:
          type: string
          description: 프로필이미지 주소
        snsId:
          type: string
          description: SNS아이디
        provider:
          type: string
          description: 로그인 수단
        role:
          type: string
          description: 역할
          example: normal
        defaultCredit:
          type: number
          description: 크레딧
          example: 400
        dailyCredit:
          type: number
          description: 매일 제공 크레딧
          example: 10
        monthlyCredit:
          type: number
          description: 매월 제공 크레딧
          example: 200
        customerKey:
          type: string
          description: 토스페이먼츠 고객키
          example: uuid
        billingRetryDate:
          format: date-time
          type: string
          description: 빌링 마지막 재시도 날짜
          nullable: true
        createdAt:
          format: date-time
          type: string
          description: 가입일
        nextPlanAt:
          format: date-time
          type: string
          description: 다음 플랜 시작일(이날 새로 결제됨)
        planStartedAt:
          format: date-time
          type: string
          description: 플랜 시작일
        planId:
          type: number
          description: 플랜아이디
        nextPlanId:
          type: number
          description: 다음 플랜 아이디(null이면 현재 플랜 그대로 유지)
        EnterpriseDownload:
          description: 엔터프라이즈 다운로드 정보
          type: array
          items:
            $ref: '#/components/schemas/EnterpriseDownload'
        cardNumber:
          type: string
          description: 카드 번호(마스킹됨)
        cardCompany:
          type: string
          description: 카드 회사
        Plan:
          description: 플랜 정보
          allOf:
            - $ref: '#/components/schemas/AuthUserPlanDto'
        Enterprise:
          description: 엔터프라이즈 정보
          allOf:
            - $ref: '#/components/schemas/AuthUserEnterpriseDto'
        cardRegistered:
          type: boolean
          description: 카드 등록 여부
        useStripe:
          type: boolean
          description: 스트라이프 사용 여부
        maxCredit:
          type: number
          minimum: 0
          description: 크레딧 한도
      required:
        - userId
        - email
        - name
        - occupation
        - business
        - notifyAgree
        - creditNotifyAgree
        - tutorialFinished
        - profileImage
        - snsId
        - provider
        - role
        - defaultCredit
        - dailyCredit
        - monthlyCredit
        - customerKey
        - billingRetryDate
        - createdAt
        - nextPlanAt
        - planStartedAt
        - planId
        - nextPlanId
        - cardNumber
        - cardCompany
        - Plan
        - cardRegistered
        - useStripe
        - maxCredit
    EnterpriseDownload:
      type: object
      properties:
        enterpriseDownloadId:
          type: number
          description: 아이디
        scaleSize:
          type: string
          description: 다운로드 업스케일 사이즈
          example:
            - 1x
            - 2x
            - 4x
            - 8x
        credit:
          type: number
          description: 소요 크레딧
          example: 1
        userId:
          type: number
          description: 유저 아이디
      required:
        - enterpriseDownloadId
        - scaleSize
        - credit
        - userId
    AuthUserPlanDto:
      type: object
      properties:
        planId:
          type: number
          description: 아이디
        grade:
          type: string
          description: 등급
        minusCreditAllowed:
          type: number
          description: 마이너스 허용 크레딧 수
        maxStyleNumber:
          type: number
          description: 최대 스타일 수
        simultaneousLimit:
          type: number
          description: 동시 생성 제한
        maxMultiSelect:
          type: number
          description: 최대 일괄 이미지 선택 수
        maxEditNumber:
          type: number
          description: 최대 편집 수
        maxPromptNumber:
          type: number
          description: 최대 프롬프트 수
        period:
          type: string
          description: 결제 주기
          enum:
            - month
            - day
        oneTimePayment:
          type: boolean
          description: 일회성 결제 요금제 여부
        defaultCredit:
          type: number
          description: 크레딧
          example: 400
        dailyCredit:
          type: number
          description: 매일 제공 크레딧
          example: 10
        monthlyCredit:
          type: number
          description: 월 제공 크레딧
          example: 200
        CreditCostInfo:
          description: 크레딧소모정보
          type: array
          items:
            $ref: '#/components/schemas/CreditCostInfo'
        priceObj:
          description: 플랜 가격 정보
          allOf:
            - $ref: '#/components/schemas/PricePropertyDto'
        titleName:
          type: string
          description: 플랜명(다국어화)
      required:
        - planId
        - grade
        - minusCreditAllowed
        - maxStyleNumber
        - simultaneousLimit
        - maxMultiSelect
        - maxEditNumber
        - maxPromptNumber
        - period
        - oneTimePayment
        - defaultCredit
        - dailyCredit
        - monthlyCredit
        - CreditCostInfo
        - priceObj
        - titleName
    AuthUserEnterpriseDto:
      type: object
      properties:
        expiresAt:
          format: date-time
          type: string
          description: 유효기한
        monthlyCredit:
          type: number
          description: 월 지급 크레딧
          example: 2000
        yearlyCredit:
          type: number
          description: 연 지급 크레딧
          example: 20000
        amount:
          type: number
          description: 금액
          example: 119000
        simultaneousLimit:
          type: number
          description: 동시 생성 제한
          example: 5
        maxEditNumber:
          type: number
          description: 최대 편집 수
        paymentPeriod:
          type: string
          description: 결제 주기
          example: monthly | yearly | bill
      required:
        - expiresAt
        - monthlyCredit
        - yearlyCredit
        - amount
        - simultaneousLimit
        - maxEditNumber
        - paymentPeriod
    CreditCostInfo:
      type: object
      properties:
        creditCostInfoId:
          type: number
          description: 아이디
        planId:
          type: number
          description: 플랜 아이디
        upgradePlanId:
          type: number
          description: 업그레이드 추천 플랜 아이디
        type:
          type: string
          description: 유형
          example: collection-2x
        credit:
          type: number
          description: 소모 크레딧
          example: '1'
        watermarked:
          type: boolean
          description: 워터마크 여부
        needUpgrade:
          type: boolean
          description: 왕관 여부
        featured:
          type: boolean
          description: Featured 여부 (New 딱지)
        Plan:
          description: 플랜
          allOf:
            - $ref: '#/components/schemas/Plan'
        UpgradePlan:
          description: 업그레이드 추천 플랜
          allOf:
            - $ref: '#/components/schemas/Plan'
      required:
        - creditCostInfoId
        - planId
        - upgradePlanId
        - type
        - credit
        - watermarked
        - needUpgrade
        - featured
    PricePropertyDto:
      type: object
      properties:
        price:
          type: number
          description: 가격
          example: 5900
        price_yearly:
          type: number
          description: 연가격
          example: 59000
        price_reg:
          type: string
          description: 정가
          example: 7,900원
        price_dis:
          type: string
          description: 할인가
          example: 5,900원
        price_app:
          type: string
          description: 앱 가격
          example: 5,900원
        stripe_key:
          type: string
          description: 스트라이프 키
          example: price_abcdefgh1234567
        stripe_key_yearly:
          type: string
          description: 스트라이프 연결제 키
          example: price_abcdefgh1234567
        currency:
          type: string
          pattern: /[A-Z]{3}/
          description: 통화
          example: KRW
      required:
        - price
        - price_dis
        - currency
    Plan:
      type: object
      properties:
        planId:
          type: number
          description: 아이디
        grade:
          type: string
          description: 등급
        name:
          type: string
          description: 이름
          deprecated: true
        historyPeriodMonth:
          type: number
          description: 내역 조회 개월수
        minusCreditAllowed:
          type: number
          description: 마이너스 허용 크레딧 수
        maxStyleNumber:
          type: number
          description: 최대 스타일 수
        simultaneousLimit:
          type: number
          description: 동시 생성 제한
        maxMultiSelect:
          type: number
          description: 최대 일괄 이미지 선택 수
        maxEditNumber:
          type: number
          description: 최대 편집 수
        maxPromptNumber:
          type: number
          description: 최대 프롬프트 수
        period:
          type: string
          description: 결제 주기
          enum:
            - month
            - day
        title:
          type: object
          description: 플랜명 다국어화
        priceGlobal:
          type: object
          description: 요금제다국어화(<*>는 en,ko.jp 등을 의미)
          additionalProperties:
            $ref: '#/components/schemas/PricePropertyDto'
          properties: {}
        premiumAvailable:
          type: boolean
          description: 프리미엄 컬렉션 이용 여부
        oneTimePayment:
          type: boolean
          description: 일회성 결제 요금제 여부
        enabled:
          type: boolean
          description: 활성화여부
        defaultCredit:
          type: number
          description: 크레딧
          example: 400
        dailyCredit:
          type: number
          description: 매일 제공 크레딧
          example: 10
        monthlyCredit:
          type: number
          description: 월 제공 크레딧
          example: 200
        CreditCostInfo:
          description: 크레딧소모정보
          type: array
          items:
            $ref: '#/components/schemas/CreditCostInfo'
        Models:
          description: 귀속 모델
          type: array
          items:
            $ref: '#/components/schemas/Model'
      required:
        - planId
        - grade
        - name
        - historyPeriodMonth
        - minusCreditAllowed
        - maxStyleNumber
        - simultaneousLimit
        - maxMultiSelect
        - maxEditNumber
        - maxPromptNumber
        - period
        - title
        - priceGlobal
        - premiumAvailable
        - oneTimePayment
        - enabled
        - defaultCredit
        - dailyCredit
        - monthlyCredit
        - CreditCostInfo
    Model:
      type: object
      properties:
        modelId:
          type: number
          description: 아이디
          example: 1
        name:
          type: string
          description: 기반 모델
          enum:
            - sdxl
            - replicate
        version:
          type: string
          description: 버전명
          example: '1.0'
        apiName:
          type: string
          description: api명
          example: stable-diffusion-xl-1024-v1-0
        squareSize:
          type: string
          pattern: /\d{3,4}x\d{3,4}/
          description: 정사각형사이즈
          example: 512x512
          deprecated: true
        horizontalSize:
          type: string
          pattern: /\d{3,4}x\d{3,4}/
          description: 가로형사이즈
          example: 768x512
          deprecated: true
        verticalSize:
          type: string
          pattern: /\d{3,4}x\d{3,4}/
          description: 세로형사이즈
          example: 512x768
          deprecated: true
        downsizing:
          type: boolean
          deprecated: true
          description: 다운사이징 여부
        isMainGeneration:
          type: boolean
          description: 대표 생성 모델 여부
        ping:
          type: number
          description: 콜드부트 핑(분 단위)
          example: 2
        params:
          type: object
          format: json
          description: 파라미터
          example: '{json}'
        example:
          type: object
          format: json
          description: 예시(복구 확인용)
          example: '{json}'
        BackupModel:
          description: 백업 모델
          allOf:
            - $ref: '#/components/schemas/Model'
        backupModelId:
          type: number
          description: 백업 모델아이디
          example: 12
        errorCount:
          type: number
          description: 에러 카운트
          example: 2
        recoverCount:
          type: number
          description: 백업 복구 카운트
          example: 3
        useBackup:
          type: boolean
          description: 백업 모델 사용 여부
          example: false
        prompt:
          type: string
          description: 모델 전용 프롬프트
          example: prompt
        needTranslate:
          type: boolean
          description: 번역 필요 여부
          example: true
        nameGlobal:
          type: object
          format: json
          description: 다국어화된 모델 이름
        descriptionGlobal:
          type: object
          format: json
          description: 다국어화된 모델 설명
        logo:
          type: string
          description: 모델 심볼로고 파일 경로
          example: /images/models/vlmg-logo.png
        Plans:
          description: 귀속 플랜
          type: array
          items:
            $ref: '#/components/schemas/Plan'
        Enterprises:
          description: 귀속 기업
          type: array
          items:
            $ref: '#/components/schemas/Enterprise'
      required:
        - modelId
        - name
        - version
        - apiName
        - squareSize
        - horizontalSize
        - verticalSize
        - downsizing
        - isMainGeneration
        - ping
        - params
        - example
        - backupModelId
        - errorCount
        - recoverCount
        - useBackup
        - prompt
        - needTranslate
        - nameGlobal
        - descriptionGlobal
        - logo
    Enterprise:
      type: object
      properties:
        name:
          type: string
          description: 사명
        categories:
          type: string
          description: 카테고리목록
          example: Parametric,Photo,Isometric
        expiresAt:
          format: date-time
          type: string
          description: 유효기한
        monthlyCredit:
          type: number
          description: 월 지급 크레딧
          example: 2000
        yearlyCredit:
          type: number
          description: 연 지급 크레딧
          example: 20000
        amount:
          type: number
          description: 금액
          example: 119000
        currency:
          type: string
          description: 통화
          example: KRW
        simultaneousLimit:
          type: number
          description: 동시 생성 제한
          example: 5
        maxEditNumber:
          type: number
          description: 최대 편집 수
        editCountPeriod:
          type: string
          description: 편집 횟수 주기(day - 오늘 | month - 월초 | plan - 플랜 시작일부터)
          example: day
          enum:
            - day
            - month
            - plan
        paymentPeriod:
          type: string
          description: 결제 주기
          example: monthly | yearly | bill
        postpaid:
          type: boolean
          description: 후청구 계정 여부(월크레딧 초과 허용)
          example: true
        modelUrl:
          type: string
          pattern: /.+\/.+:.+/
          description: 모델 API 주소(replicate)
        logo:
          type: string
          description: 로고 주소
        userId:
          type: number
          description: 유저 아이디
        canUseOwnOnly:
          type: boolean
          description: 자신의 스타일만 사용하도록 강제
          example: true
          default: false
        hasSpecialLimits:
          type: boolean
          description: 개별 기능 제한 적용
          example: false
          default: false
        Models:
          description: 귀속 모델
          type: array
          items:
            $ref: '#/components/schemas/Model'
      required:
        - name
        - categories
        - expiresAt
        - monthlyCredit
        - yearlyCredit
        - amount
        - currency
        - simultaneousLimit
        - maxEditNumber
        - editCountPeriod
        - paymentPeriod
        - postpaid
        - modelUrl
        - logo
        - userId
        - canUseOwnOnly
        - hasSpecialLimits
  securitySchemes:
    apiKey:
      type: apiKey
      name: X-Api-Key
      in: header

````