/user
Who the token belongs to
The cheapest way for a client to check that a token works.
Request
curl https://datareceipt.io/api/v1/user \ -H "Authorization: Bearer $DATARECEIPT_API_KEY" \ -H "Accept: application/json"
datareceipt_whoami()
Response · 200
| Field | Type | Description |
|---|---|---|
id
|
integer | |
name
|
string | |
email
|
string |
{
"id": 7,
"name": "Ada Lovelace",
"email": "ada@example.org"
}
Also answers 401 (see Errors).