Skip to main content
POST
/
v1
/
session
/
token
/
{token}
Create session by user token
curl --request POST \
  --url http://localhost:3000/v1/session/token/{token} \
  --header 'Content-Type: application/json' \
  --header 'X-Bunker-Token: <api-key>' \
  --data '
{
  "expiration": "3d",
  "clientip": "1.1.1.1",
  "x-forwarded-for": "2.2.2.2"
}
'
{
  "status": "ok",
  "session": "7a77ffad-2010-4e47-abbe-bcd04509f784"
}

Authorizations

X-Bunker-Token
string
header
required

Root access token for Databunker API

Path Parameters

token
string<uuid>
required

User token (UUID)

Body

expiration
string

Session TTL (e.g., '3d', '2h', '30m')

Example:

"3d"

clientip
string

Client IP address

x-forwarded-for
string

X-Forwarded-For header value

Response

Session created successfully

status
enum<string>
required
Available options:
ok
Example:

"ok"

session
string<uuid>

Session token