Skip to content
FeedbackDashboard

Retrieve the current user

GET/v0/user

Retrieve the currently authenticated user's information.

ReturnsExpand Collapse
id: string
email: string
github: object { username }
username: string
name: string
object: "user"

Retrieve the current user

curl https://api.stainless.com/v0/user \
    -H "Authorization: Bearer $STAINLESS_API_KEY"
{
  "id": "id",
  "email": "email",
  "github": {
    "username": "username"
  },
  "name": "name",
  "object": "user"
}
Returns Examples
{
  "id": "id",
  "email": "email",
  "github": {
    "username": "username"
  },
  "name": "name",
  "object": "user"
}