Get user by ID
GET
/api/v1/users/{id}Gets a user when provided with an ID. When invoked by an admin, the full user object is returned, otherwise the public user only. When the user is yourself, the full user object is returned regardless of your permissions.
Parameters
Path Parameters
id*
ID
Typeinteger
RequiredExample
1234567890
Responses
OK
JSON
{
"display_name": "Coral Fischer",
"email": "coral.fischer@example.com",
"id": 1234567890,
"role": "annotator"
}
GET
/api/v1/users/{id}Samples
cURL
curl -X GET https://openfish.appspot.com/api/v1/users/{id}
JavaScript
fetch("https://openfish.appspot.com/api/v1/users/{id}")
.then(response => response.json())
.then(data => console.log(data));
PHP
file_get_contents("https://openfish.appspot.com/api/v1/users/{id}");
Python
import requests
response = requests.get("https://openfish.appspot.com/api/v1/users/{id}")
print(response.json())