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

# Consultar o perfil do usuário autenticado



## OpenAPI

````yaml /mintlify/openapi.json get /me
openapi: 3.1.0
info:
  title: Followw UnB API
  description: >-
    Cliente alternativo e open-source para o ecossistema de sistemas da
    Universidade de Brasília (UnB). Agrega em uma experiência unificada e
    performática dados do SIGAA, Restaurante Universitário (RU) e calendário
    oficial, com autenticação stateless delegada ao CAS da UnB, credenciais
    cifradas em cookies JWE (AES-256-GCM), sincronização assíncrona inteligente
    e cache resiliente via Stale-While-Revalidate.
  version: 0.1.0
servers:
  - url: https://api.followw.app
    description: Produção
  - url: http://localhost:8000
    description: Desenvolvimento local
security: []
tags:
  - name: Auth
    description: >-
      Autenticação via SIGAA/CAS da UnB e gerenciamento de sessão stateless por
      cookies.
  - name: Classrooms
    description: >-
      Turmas do semestre e histórico, participantes, frequência e estatísticas
      de aprovação.
  - name: Me
    description: >-
      Perfil acadêmico, extrato/saldo do RU e carteirinha do estudante
      autenticado.
  - name: Public Classrooms
    description: Busca pública de turmas e unidades do SIGAA, sem autenticação.
    x-displayName: Classrooms
  - name: Public Courses
    description: >-
      Cursos cadastrados e seus currículos por semestre de ingresso, sem
      autenticação.
    x-displayName: Courses
  - name: Public Professors
    description: Catálogo público de docentes do SIGAA, sem autenticação.
    x-displayName: Professors
  - name: Public Restaurant
    description: Cardápio público do RU, sem autenticação.
    x-displayName: Restaurant
  - name: Public Subjects
    description: Componentes curriculares de graduação e suas turmas, sem autenticação.
    x-displayName: Subjects
  - name: Posts
    description: >-
      Notícias e avaliações recentes das turmas, consultadas diretamente na home
      do SIGAA.
paths:
  /me:
    get:
      tags:
        - Me
      summary: Consultar o perfil do usuário autenticado
      operationId: get_me_me_get
      parameters:
        - name: Cache-Control
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              `no-cache` (ou `max-age=0`) busca na origem antes de responder;
              `max-age=N` aceita cache de até N s; `stale-if-error[=N]` devolve
              o cache se a origem falhar; `only-if-cached` nunca busca (504 sem
              cache).
            title: Cache-Control
          description: >-
            `no-cache` (ou `max-age=0`) busca na origem antes de responder;
            `max-age=N` aceita cache de até N s; `stale-if-error[=N]` devolve o
            cache se a origem falhar; `only-if-cached` nunca busca (504 sem
            cache).
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserProfile'
        '401':
          description: Credenciais ausentes ou inválidas.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '502':
          description: SIGAA indisponível.
components:
  schemas:
    UserProfile:
      properties:
        name:
          type: string
          title: Name
        registration:
          type: string
          title: Registration
        photo:
          anyOf:
            - type: string
            - type: 'null'
          title: Photo
        email:
          anyOf:
            - type: string
            - type: 'null'
          title: Email
        bio:
          anyOf:
            - type: string
            - type: 'null'
          title: Bio
        unit:
          anyOf:
            - $ref: '#/components/schemas/UnitRef'
            - type: 'null'
        course:
          anyOf:
            - $ref: '#/components/schemas/CourseRef'
            - type: 'null'
        entry_semester:
          anyOf:
            - type: string
            - type: 'null'
          title: Entry Semester
        integralization:
          anyOf:
            - type: integer
            - type: 'null'
          title: Integralization
        workload:
          anyOf:
            - $ref: '#/components/schemas/CurriculumWorkload'
            - type: 'null'
        ira:
          anyOf:
            - type: number
            - type: 'null'
          title: Ira
        mp:
          anyOf:
            - type: number
            - type: 'null'
          title: Mp
        level:
          $ref: '#/components/schemas/UserLevel'
      type: object
      required:
        - name
        - registration
        - photo
        - bio
        - unit
        - course
        - entry_semester
        - integralization
        - workload
        - ira
        - mp
        - level
      title: UserProfile
      description: >-
        O perfil como a API devolve: sem curso na tabela, curso e unidade são
        nulos.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    UnitRef:
      properties:
        id:
          type: integer
          title: Id
        code:
          anyOf:
            - type: string
            - type: 'null'
          title: Code
        name:
          type: string
          title: Name
      type: object
      required:
        - id
        - code
        - name
      title: UnitRef
      description: 'Unidade acadêmica: `id` do SIGAA, `code` a sigla (ex.: FCTE).'
    CourseRef:
      properties:
        id:
          type: integer
          title: Id
        name:
          type: string
          title: Name
        shift:
          anyOf:
            - type: string
            - type: 'null'
          title: Shift
      type: object
      required:
        - id
        - name
        - shift
      title: CourseRef
    CurriculumWorkload:
      properties:
        total:
          type: integer
          title: Total
        pending_mandatory:
          type: integer
          title: Pending Mandatory
        pending_optional:
          type: integer
          title: Pending Optional
        pending_complementary:
          type: integer
          title: Pending Complementary
      type: object
      required:
        - total
        - pending_mandatory
        - pending_optional
        - pending_complementary
      title: CurriculumWorkload
      description: Carga horária do currículo e o que falta integralizar, em horas.
    UserLevel:
      type: string
      enum:
        - Graduação
        - Pós-graduação
        - Mestrado
      title: UserLevel
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````

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