cURL
curl --request POST \ --url http://localhost:3000/v2/XTokenCreateForRole \ --header 'Content-Type: application/json' \ --header 'X-Bunker-Token: <api-key>' \ --data ' { "roleid": 123, "rolename": "<string>", "finaltime": "<string>", "slidingtime": "<string>", "request_metadata": {} } '
{ "status": "ok", "xtoken": "<string>" }
Creates an access token for a specific role
Documentation IndexFetch the complete documentation index at: https://docs.databunker.org/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://docs.databunker.org/llms.txt
Use this file to discover all available pages before exploring further.
API token for authentication
ID of the role
Name of the role
Absolute expiration time for the token
Sliding time period for the token
Additional metadata for the request
Access token created successfully
"ok"
The created access token