Admin API
API Reference
Get user information
Example
Get user information of all users in the org.
Optional Parameters
<code class="dcode">/v0/admin/user?user_id=<user-id></code>
<code class="dcode">/v0/admin/user?email=<email></code>
- By passing either <code class="dcode">
user_id</code>
or <code class="dcode">email</code>
as a query parameter, you can get information about a specific user. - Otherwise, the API will return information of all users in the org.
Example
Response
A JSON object in the form of <code class="dcode">{"users": [...]}</code>
that has a list of user information.
An example:
<code class="dcode">{"status": "Forbidden", "status_node: 403}</code>
if a non-org owner tries to access the API.<code class="dcode">{"status": "User not found.", "status_node: 404}</code>
if the user is not found.<code class="dcode">{"status": "Internal Server Error", "status_node: 500}</code>
if there is an internal server error.