Skip to content

Returns a list of the user's past (de-)verifications.

GET
/api/user/{userId}/verificationhistory

Authorizations

api_key
Type: API Key (header: X-CSRF-Token)

Parameters

Path Parameters

userId*

which user's history to return

Typeinteger
Required

Responses

Success.
JSON
[
{
"foodsaverId": 0,
"date": "string",
"wasVerified": true,
"actor": null
}
]
Authorization
api_key
Variables
Key
Value
userId*
cURL
curl -X GET \
'http://localhost/api/user/{userId}/verificationhistory'

Samples

cURL
curl -X GET http://localhost/api/user/{userId}/verificationhistory
JavaScript
fetch("http://localhost/api/user/{userId}/verificationhistory")
  .then(response => response.json())
  .then(data => console.log(data));
PHP
file_get_contents("http://localhost/api/user/{userId}/verificationhistory");
Python
import requests
response = requests.get("http://localhost/api/user/{userId}/verificationhistory")
print(response.json())