Users - Retrieve

The retrieve Users endpoint will return a user object for the given user ID.

FieldExampleDefinition
user_id
string
"2ke2daisdflkj"The unique ID of the user to be retrieved.
GET /1/users/{user_id}
Host: https://api.cogniac.io

Example: Retrieve a User

curl -X GET https://api.cogniac.io/1/users/2ke2daisdflkj \
-H "Authorization: Bearer abcdefg.hijklmnop.qrstuvwxyz"
import requests

my_headers = {"Authorization": "Bearer abcdefg.hijklmnop.qrstuvwxyz"}

res = requests.get("https://api.cogniac.io/1/users/2ke2daisdflkj",
                    headers=my_headers)
{
  "user_id": "2ke2daisdflkj",
  "given_name":"Jane",
  "surname":"Smith",
  "email":"[email protected]",
  "created_at": 1474939966,
  "modified_at": 1506630313
}