Referenta
POST
/api/v1/user/get-user

Same emulator-like lookup as the GET variant, but accepts an explicit userId in the body instead of relying only on the emulator environment default.

Authorization

dashboardSession
sb-access-token<token>

Authenticated dashboard session cookie. Some routes also rely on additional Supabase SSR cookies.

In: cookie

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

userId?string

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/user/get-user" \  -H "Content-Type: application/json" \  -d '{}'
{
  "user": {}
}
{
  "error": "string",
  "details": "string",
  "receivedKeys": [
    "string"
  ]
}
{
  "error": "string",
  "details": "string",
  "receivedKeys": [
    "string"
  ]
}
{
  "error": "string",
  "details": "string",
  "receivedKeys": [
    "string"
  ]
}