---
updatedAt: 2026-09-07T11:12:49.000Z
agentTools:
  projectIndex: https://developers.slite.com/llms.txt
---

# Get user by ID

Get a user by ID

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "components": {
    "schemas": {
      "PublicApiAuthError": {
        "properties": {
          "message": {
            "type": "string",
            "enum": [
              "Invalid apiKey"
            ],
            "nullable": false
          },
          "id": {
            "type": "string",
            "enum": [
              "auth/unauthorized"
            ],
            "nullable": false
          }
        },
        "required": [
          "message",
          "id"
        ],
        "type": "object"
      },
      "PublicApiError": {
        "properties": {
          "message": {
            "type": "string"
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "message",
          "id"
        ],
        "type": "object"
      },
      "PublicApiRateLimitError": {
        "properties": {
          "message": {
            "type": "string",
            "enum": [
              "You've reached the api rate limit. Please wait and retry later."
            ],
            "nullable": false
          },
          "id": {
            "type": "string",
            "enum": [
              "rate-limit"
            ],
            "nullable": false
          }
        },
        "required": [
          "message",
          "id"
        ],
        "type": "object"
      },
      "PublicApiNotFoundError": {
        "properties": {
          "message": {
            "type": "string",
            "enum": [
              "Data source not found."
            ],
            "nullable": false
          },
          "id": {
            "type": "string",
            "enum": [
              "root-id-not-found"
            ],
            "nullable": false
          }
        },
        "required": [
          "message",
          "id"
        ],
        "type": "object"
      },
      "User": {
        "properties": {
          "organizationRole": {
            "type": "string",
            "description": "Role of the user in the organization"
          },
          "isGuest": {
            "type": "boolean",
            "description": "Whether the user is a guest"
          },
          "archivedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Whether the user is archived"
          },
          "displayName": {
            "type": "string",
            "description": "Display name of the user"
          },
          "email": {
            "type": "string",
            "description": "Email address of the user"
          },
          "id": {
            "type": "string",
            "description": "User ID"
          }
        },
        "required": [
          "displayName",
          "email",
          "id"
        ],
        "type": "object"
      }
    },
    "securitySchemes": {
      "bearer": {
        "type": "http",
        "scheme": "bearer",
        "description": "API keys can be generated under Settings > API"
      }
    }
  },
  "info": {
    "title": "Public Slite api",
    "version": "1",
    "description": "Access your Slite documents, search, create, update...",
    "license": {
      "name": "private"
    },
    "contact": {
      "name": "Slite"
    }
  },
  "paths": {
    "/users/{userId}": {
      "get": {
        "operationId": "getUserById",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/User"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "id": "userId123",
                      "email": "john.doe@example.com",
                      "displayName": "John Doe"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Invalid authentication",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiAuthError"
                }
              }
            }
          },
          "404": {
            "description": "User not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiNotFoundError"
                }
              }
            }
          },
          "429": {
            "description": "Rate limitation error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiRateLimitError"
                }
              }
            }
          },
          "default": {
            "description": "Unexpected error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApiError"
                }
              }
            }
          }
        },
        "description": "Get a user by ID",
        "summary": "Get user by ID",
        "security": [
          {
            "bearer": [
              "read"
            ]
          }
        ],
        "parameters": [
          {
            "description": "User ID to retrieve",
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://api.slite.com/v1"
    }
  ]
}
```