---
title: "Get User Hash"
method: GET
path: "/auth/user-hash"
tags: ["Authentication"]
---

# Get User Hash

`GET /auth/user-hash`

## Request

- Base URL: `https://api.getmetacognition.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.getmetacognition.com/auth/user-hash`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/metacognition/apis/tex-api/docs/auth/user-hash/get.ts> (a function with typed inputs; its response is checked against the schema)

Return server-derived user hash for the effective user in this org.

## Query parameters

- `user_id` string, nullable

## Response `200`

Successful Response

- UserHashResponse: Server-generated user hash bound to org_id + user_id.
  - `org_id` string, required
  - `user_id` string, required
  - `user_hash` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/metacognition/apis/tex-api.md) - [All operations](https://skmtc.dev/metacognition/apis/tex-api/llms.txt) - [OpenAPI document](https://skmtc.dev/metacognition/apis/tex-api/revisions/3bef47e50f2e?raw)
