Get a User by Id
Get a specific user by their userId
.
caution
This endpoint has been deprecated and will be phased out at the end of 2023. Please update any existing usages of it to use the Get Object endpoint instead.
Endpoint
GET /v1/users/:userId
Parameters
Parameter | Description | Type | Required |
---|---|---|---|
userId | Id of the user to retrieve | URL param | yes |
Request
- cURL
- Go
- Java
- Node.js
- Python
- Ruby
- PHP
curl "https://api.warrant.dev/v1/users/d6ed6474-784e-407e-a1ea-42a91d4c52b9" \
-H "Authorization: ApiKey YOUR_KEY"
user, err := user.Get("d6ed6474-784e-407e-a1ea-42a91d4c52b9")
User user = client.getUser("d6ed6474-784e-407e-a1ea-42a91d4c52b9");
const user = await warrantClient.User.get(
"d6ed6474-784e-407e-a1ea-42a91d4c52b9"
);
user = warrant.User.get("d6ed6474-784e-407e-a1ea-42a91d4c52b9")
user = Warrant::User.get("d6ed6474-784e-407e-a1ea-42a91d4c52b9")
$user = $warrant->getUser("d6ed6474-784e-407e-a1ea-42a91d4c52b9");
Response
{
"userId": "d6ed6474-784e-407e-a1ea-42a91d4c52b9",
"email": "user@example.org"
}