Get permanent token
Creates a permanent ReportPortal user token
- Parameters
- Advanced call ?
Function GetPermanentToken(Val URL, Val Token, Val UserID, Val KeyName) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| URL | --url | String | ✔ | ReportPortal server URL |
| Token | --token | String | ✔ | Access token |
| UserID | --user | String | ✔ | User ID |
| KeyName | --name | String | ✔ | Token name |
Returns
Map Of KeyAndValue - serialized JSON response from ReportPortal
| Parameter | Description |
|---|---|
| proxy | InternetProxy or a structure with fields Protocol, Host, Port, User, Password, UseOSAuthentication |
| timeout | Request execution timeout |
| adv_response | Formats the response as a complete HTTP structure with fields code, body, and headers |
| retries | Number of HTTP request send attempts on 5** status codes or internal client errors |
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
1C:Enterprise/OneScript code example
URL = "tests.openintegrations.dev";
Token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX25hbWUiOiJzdXBlcmFkbWluIiwic2NvcGVzIjpbInVpIl0sImV4cCI6MTc2MjAwMDI3NiwiaWF0IjoxNzYxOTEzODc2LCJqdGkiOiI0NTI3YTc5OS0wN2...";
UserID = "1";
KeyName = "test_key_2";
Result = OPI_ReportPortal.GetPermanentToken(URL, Token, UserID, KeyName);
- Bash
- CMD/Bat
oint rportal GetPermanentToken \
--url "tests.openintegrations.dev" \
--token "***" \
--user 1 \
--name "test_key_2"
oint rportal GetPermanentToken ^
--url "tests.openintegrations.dev" ^
--token "***" ^
--user 1 ^
--name "test_key_2"
Result
{
"id": 77,
"name": "test_key_2",
"user_id": 1,
"created_at": "2026-05-26T14:37:48.926015025Z",
"api_key": "***"
}