Basic Identities

The following JSON represents a typical Basic Identity. It is referred to throughout this document as BasicIdentity

  • BasicIdentity: Used when referencing an Identity from another Object
{
  "id": "layer:///identities/1234",
  "url": "https://api.layer.com/apps/ID/identities/1234",
  "user_id": "1234",
  "display_name": "One Two Three Four",
  "avatar_url": "https://mycompany.co/images/1234.png"
}
Name Type Description
id string Layer’s internal ID for this user
url string A URL for accessing the Identity via the REST API
user_id string Your application’s ID for this user
display_name string Optional display name used when rendering this user in a UI
avatar_url string Optional url to an avatar image