cURL
curl --request POST \ --url http://localhost:3000/v1/session/login/{login} \ --header 'Content-Type: application/json' \ --header 'X-Bunker-Token: <api-key>' \ --data ' { "expiration": "3d", "clientip": "<string>", "x-forwarded-for": "<string>" } '
{ "status": "ok", "session": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
Creates a new session for a user identified by login
Root access token for Databunker API
User login name
Session TTL (e.g., '3d', '2h', '30m')
"3d"
Client IP address
X-Forwarded-For header value
Session created successfully
ok
"ok"