View a User

Example ID Request

$ curl \
-s https://api.intercom.io/users/5714dd359a3fd47136000001 \
-H 'Authorization:Bearer <Your access token>' \
-H 'Accept:application/json'
HTTP/1.1 200 OK

{
    "type": "user",
    "id": "5714dd359a3fd47136000001",
    "user_id": "25",
    "anonymous": false,
    "email": "[email protected]",
    "phone": "555671243",
    "name": "Hoban Washburne",
    "pseudonym": null,
  ...
}
# NB: Full User objects are returned
intercom.users.find(:id => "5714dd359a3fd47136000001")
<?php

$user = $intercom->users->getUser("596f35f744c4c5f0cd30c8ef");
print_r($user->id);
?>
Example User ID Request

$ curl \
-s https://api.intercom.io/users?user_id=25 \
-H 'Authorization:Bearer <Your access token>' \
-H 'Accept:application/json'
intercom.users.find(:user_id => "128")
<?php

$user = $intercom->users->getUser("", ["user_id" => "111"]);
print_r($user->id);
?>
Map<String, String> params = Maps.newHashMap();
params.put("user_id", "1");
User user = User.find(params);
Example Email Request

$ curl \
-s https://api.intercom.io/users?email=wash%40serenity.io \
-H 'Authorization:Bearer <Your access token>' \
-H 'Accept:application/json'
intercom.users.find(:email => "[email protected]")
<?php

$user = $intercom->users->getUser("", ["email" => "[email protected]"]);
print_r($user->id);
?>
Map<String, String> params = Maps.newHashMap();
params.put("email", "[email protected]");
User user = User.find(params);

Each user object has its own URL

  • https://api.intercom.io/users/{id}

Where {id} is the value of the user's id field. This URL is the user's canonical address in the API.

Request Parameters

ParameterRequiredDescription
user_idnoThe user id you have defined for the user
emailnoThe email you have defined for the user

A user can also be fetched using a user_id or email parameter in the url, whose values are the company's user_id or email fields -

  • https://api.intercom.io/users?user_id={user_id}
  • https://api.intercom.io/users?email={email}

The email parameter value should be url encoded when sending.

Returns

A user object.

🚧

Note: When fetching users using an email or user_id parameter only the ones of type 'user' will be returned. However, it is possible to view a person of type 'contact' (lead) when viewing using their canonical address in the API, namely their id field.