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

# The signed-in account



## OpenAPI

````yaml /api-reference/auth.json get /api/auth/me
openapi: 3.1.0
info:
  title: truscan auth
  version: 1.0.0
  description: >-
    Identity: accounts, sessions, password resets and API keys.


    This is the only service that verifies a credential, because it is the
    service that issues them. Every other service decodes the identity the edge
    already verified.


    Protected routes accept either credential, a dashboard session JWT or an
    `tru_` API key, on the same path. There is no key-only variant of any route.
servers:
  - url: https://api.truscan.co
    description: Production
security: []
tags:
  - name: session
    description: Sign up, sign in, password reset
  - name: keys
    description: API key management
paths:
  /api/auth/me:
    get:
      tags:
        - session
      summary: The signed-in account
      responses:
        '200':
          description: The account.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Envelope'
                properties:
                  result:
                    $ref: '#/components/schemas/User'
        '401':
          $ref: '#/components/responses/Unauthorized'
      security:
        - session: []
        - apiKey: []
components:
  schemas:
    Envelope:
      type: object
      required:
        - success
        - result
        - message
      properties:
        success:
          type: boolean
        result: {}
        message:
          type: string
    User:
      type: object
      properties:
        id:
          type: string
          examples:
            - usr_9f2c1a7b3e4d5f6a7b8c9d0e
        email:
          type: string
          format: email
        plan:
          type: string
          examples:
            - free
        created_at:
          type: string
          format: date-time
    Failure:
      type: object
      required:
        - success
        - result
        - message
      properties:
        success:
          type: boolean
          const: false
        result:
          type: object
          properties:
            code:
              type: string
        message:
          type: string
          description: Written for a person. Safe to show as-is.
  responses:
    Unauthorized:
      description: No valid credential was presented.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Failure'
  securitySchemes:
    session:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: A dashboard session, verified at the edge.
    apiKey:
      type: http
      scheme: bearer
      description: >-
        An `tru_` API key, resolved at the edge. Accepted on every route a
        session is.

````