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

# Get Current User

> Retrieve information about the authenticated user and their organization



## OpenAPI

````yaml openapi.json get /users/me
openapi: 3.1.0
info:
  title: Ag.dev API
  description: Public API for Ag.dev
  version: 0.1.0
servers:
  - url: https://api.ag.dev/v0.1
security: []
tags:
  - name: Agents
    description: Agent management and configuration
  - name: Runs
    description: Agent run execution and monitoring
  - name: Versioning
    description: Agent versioning, revisions, and publishing
  - name: MCP Servers
    description: MCP server management and tool discovery
  - name: Settings
    description: Organization settings and API keys
  - name: Users
    description: User information and authentication
  - name: Drives
    description: Drive management and file operations
  - name: Webhooks
    description: Webhook health checks
paths:
  /users/me:
    get:
      tags:
        - Users
      summary: Get Current User
      description: Retrieve information about the authenticated user and their organization
      responses:
        '200':
          description: Current user information
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/User'
        '401':
          description: Authentication required
      security:
        - ApiKeyAuth: []
components:
  schemas:
    User:
      type: object
      properties:
        id:
          type: string
          description: User ID
        organizationId:
          type: string
          description: Organization ID
        tesseralUserId:
          type: string
          description: Tesseral user ID
        tesseralOrganizationId:
          type: string
          description: Tesseral organization ID
        displayName:
          type: string
          nullable: true
          description: User's display name
        email:
          type: string
          nullable: true
          description: User's email address
        profilePictureUrl:
          type: string
          nullable: true
          description: User's profile picture URL
        isOrganizationOwner:
          type: boolean
          description: Whether the user is the organization owner
        organizationName:
          type: string
          nullable: true
          description: Organization display name
        createdAt:
          type: string
          format: date-time
          description: User creation timestamp
        updatedAt:
          type: string
          format: date-time
          description: User last update timestamp
      required:
        - id
        - organizationId
        - tesseralUserId
        - tesseralOrganizationId
        - isOrganizationOwner
        - createdAt
        - updatedAt
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: 'Provide either X-API-Key: <key> or Authorization: Bearer <key>'

````