Skip to content
GET /auth/signup/regions

The data regions POST /auth/signup offers, and the default one. An empty list means self-serve signup is not offered. Cached for 60 seconds.

Response Body

defaultstring

The id of the default region; null when there are none.

regionsobject[]
idstring

The value to send as region.

labelstring

The region's name to show, e.g. Europe.

Errors

StatusDescription
404This deployment does not offer the list: only the routing layer in front of the API answers it, and only where self-serve signup can be routed.
curl -X GET 'https://api.truto.one/auth/signup/regions' \
  -H 'Authorization: Bearer <your_api_token>' \
  -H 'Content-Type: application/json'
const response = await fetch('https://api.truto.one/auth/signup/regions', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer <your_api_token>',
    'Content-Type': 'application/json',
  },
});

const data = await response.json();
console.log(data);
import requests

url = "https://api.truto.one/auth/signup/regions"
headers = {
    "Authorization": "Bearer <your_api_token>",
    "Content-Type": "application/json",
}
params = {
}

response = requests.get(url, headers=headers, params=params)
print(response.json())