---
agentTools:
  projectIndex: https://hermae.readme.io/llms.txt
---

# Get User

Get the current user.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "1.2.1",
    "title": "Hermae API",
    "description": "API for managing the Hermae application."
  },
  "servers": [
    {
      "url": "https://api.hermae.com"
    }
  ],
  "security": [
    {
      "HermaeKeyAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "HermaeKeyAuth": {
        "type": "apiKey",
        "name": "x-hermae-key",
        "in": "header",
        "description": "Your API key for authentication."
      }
    }
  },
  "paths": {
    "/user": {
      "get": {
        "summary": "Get User",
        "description": "Get the current user.",
        "tags": [
          "Users"
        ],
        "responses": {
          "200": {
            "description": "A user document.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "number"
                    },
                    "returns": {
                      "type": "object",
                      "properties": {
                        "user": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "email": {
                              "type": "string",
                              "maxLength": 64,
                              "format": "email",
                              "example": "mike@example.com"
                            },
                            "first_name": {
                              "type": "string",
                              "maxLength": 14,
                              "example": "Mike"
                            },
                            "last_name": {
                              "type": "string",
                              "maxLength": 14,
                              "example": "Carbone"
                            },
                            "picture_url": {
                              "type": "string"
                            },
                            "workos_id": {
                              "type": "string"
                            },
                            "created_at": {
                              "type": "string"
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "user"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "email",
                            "first_name",
                            "workos_id",
                            "created_at",
                            "object"
                          ]
                        }
                      },
                      "required": [
                        "user"
                      ]
                    }
                  },
                  "required": [
                    "status",
                    "returns"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "number"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "status",
                    "message"
                  ]
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 102,
      "1": 66,
      "2": 111,
      "3": 18,
      "4": 218,
      "5": 98,
      "6": 116,
      "7": 0,
      "8": 18,
      "9": 82,
      "10": 77,
      "11": 93
    }
  }
}
```