Skip to content

Get current user

GET
/api/v1/auth/me

Gets information about the current user.

Responses

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

Samples

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