Skip to content

Get user by email

GET
/api/v1/users/{email}

Roles required: Admin

Gets a user when provided with an email.

Parameters

Path Parameters

email*

Email

Typestring
Required
Exampleuser@example.com

Responses

OK
JSON
{
"email": "user@example.com",
"role": "annotator"
}

Samples

cURL
curl -X GET https://openfish.appspot.com/api/v1/users/{email}
JavaScript
fetch("https://openfish.appspot.com/api/v1/users/{email}")
  .then(response => response.json())
  .then(data => console.log(data));
PHP
file_get_contents("https://openfish.appspot.com/api/v1/users/{email}");
Python
import requests
response = requests.get("https://openfish.appspot.com/api/v1/users/{email}")
print(response.json())