`POST /v1/regions/{region}/token`.
POST
/v1/regions/{region}/token
const url = 'https://api.updawg.net/v1/regions/example/token';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.updawg.net/v1/regions/example/tokenParameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”region
required
string
us, or another region this deployment knows of.
Responses
Section titled “Responses”A token for that region’s API, for about ten minutes.
Media typeapplication/json
object
api_url
required
The region’s API base.
string
expires_at
required
When it stops working. Ask again before then; there is no refresh.
string format: date-time
token
required
upr_…, for Authorization: Bearer at api_url.
string
Example generated
{ "api_url": "example", "expires_at": "2026-04-15T12:00:00Z", "token": "example"}This API’s own region: use the session you have.
Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}No session.
Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}Refused: no CSRF token or not this session’s.
Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}Not a region this deployment knows of.
Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}This deployment does not issue region tokens.
Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}