Skip to content

Create user

POST
/api/v1/auth/me

Creates a new user.

Request Body

JSON
{
"display_name": "Coral Fischer"
}

Responses

Created
JSON
{
"display_name": "Coral Fischer",
"email": "coral.fischer@example.com",
"id": 1234567890,
"role": "annotator"
}

Samples

cURL
curl -X POST https://openfish.appspot.com/api/v1/auth/me
JavaScript
fetch("https://openfish.appspot.com/api/v1/auth/me", { method: "POST" })
  .then(response => response.json())
  .then(data => console.log(data));
PHP
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://openfish.appspot.com/api/v1/auth/me");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
Python
import requests
response = requests.post("https://openfish.appspot.com/api/v1/auth/me")
print(response.json())