Skip to content

`POST /v1/regions/{region}/token`.

POST
/v1/regions/{region}/token
curl --request POST \
--url https://api.updawg.net/v1/regions/example/token
region
required
string

us, or another region this deployment knows of.

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"
}