cURL
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" }
Creates a new user session and returns a session token. Sessions can have an expiration TTL specified in the request.
Root access token for Databunker API
User token (UUID)
Session TTL (e.g., '3d', '2h', '30m')
"3d"
Client IP address
X-Forwarded-For header value
Session created successfully
ok
"ok"
Session token