VRt.Account [AC] (7.9.2527)

Veeroute Support Team: servicedesk@veeroute.com License: Proprietary Terms of Service

Description

Veeroute Account Panel.

Entity relationship diagram

erd

Auth

Authorization.

Obtaining a token

Obtaining a token using the login and password.

Request Body schema: application/json
required

Token request.

username
required
string (user_username) [ 2 .. 256 ] characters \w+
Example: "username_for_login"

Unique username for login.

password
required
string or null <password> (user_password) [ 10 .. 256 ] characters
Example: "long_strong_password"

Password.

ttl_seconds
integer <int32> [ 60 .. 31556926 ]
Default: 86400
Example: "86400"

Token validity time, in seconds.

Responses

Response Schema: application/json
string (token) [ 10 .. 1000 ] characters

Token (JWT).

Request samples

Content type
application/json
{
}

Response samples

Content type
application/json
"new.jwt.token"

Validating a token

Validating a token.

Request Body schema: application/json
required

Token validate request.

string (token) [ 10 .. 1000 ] characters

Token (JWT).

Responses

Response Schema: application/json
valid
required
boolean
Example: "true"

Token status.

roles
required
Array of strings (user_role_list) [ 0 .. 2 ] items unique
Items Enum: "ADMIN" "PARTNER" "USER" … 1 more
Example: "USER"

List of user roles.

Request samples

Content type
application/json
"new.jwt.token"

Response samples

Content type
application/json
{
}

Change password

Change password and get new token.

Authorizations:
ApiKeyAuth
Request Body schema: application/json
optional

Password change request data.

current_password
required
string or null <password> (user_password) [ 10 .. 256 ] characters
Example: "long_strong_password"

Password.

new_password
required
string or null <password> (user_password) [ 10 .. 256 ] characters
Example: "long_strong_password"

Password.

Responses

Response Schema: application/json
string (token) [ 10 .. 1000 ] characters

Token (JWT).

Request samples

Content type
application/json
{
}

Response samples

Content type
application/json
"new.jwt.token"

Info

Account information.

Account information

Getting a account information.

Authorizations:
ApiKeyAuth

Responses

Response Schema: application/json
username
required
string (user_username) [ 2 .. 256 ] characters \w+
Example: "username_for_login"

Unique username for login.

specification
string or null (user_specification) [ 2 .. 256 ] characters
Example: "User full name"

User specification.

email
string or null <email> (user_email) [ 5 .. 256 ] characters
Example: "admin@company.com"

User e-mail address.

phone
string or null (user_phone) [ 5 .. 32 ] characters
Example: "+71112223333"

User phone.

company_key
required
string (company_key) [ 3 .. 256 ] characters \w+
Example: "smart_company"

Unique company key.

enabled
boolean
Default: true
Example: "true"

User status.

roles
required
Array of strings (user_role_list) [ 0 .. 2 ] items unique
Items Enum: "ADMIN" "PARTNER" "USER" … 1 more
Example: "USER"

List of user roles.

timezone
integer <int32> (timezone) [ -12 .. 12 ]
Example: "3"

Basic time zone used for statistics.

edit_date
string or null <date-time>
Default: null
Example: "2024-11-21T19:45:00Z"

Last edit date and time in the ISO 8601 format.

creation_date
string or null <date-time>
Default: null
Example: "2024-11-21T19:45:00Z"

Creation date and time in the ISO 8601 format.

Array of objects (attributes) [ 0 .. 1000 ] items unique

Attributes. Used to add service information.

Response samples

Content type
application/json
{
}

Account update

Updating the account information.

Authorizations:
ApiKeyAuth
Request Body schema: application/json
required

Account update request.

specification
string or null (user_specification) [ 2 .. 256 ] characters
Example: "User full name"

User specification.

email
string or null <email> (user_email) [ 5 .. 256 ] characters
Example: "admin@company.com"

User e-mail address.

phone
string or null (user_phone) [ 5 .. 32 ] characters
Example: "+71112223333"

User phone.

Array of objects (attributes) [ 0 .. 1000 ] items unique

Attributes. Used to add service information.

Responses

Response Schema: application/json
username
required
string (user_username) [ 2 .. 256 ] characters \w+
Example: "username_for_login"

Unique username for login.

specification
string or null (user_specification) [ 2 .. 256 ] characters
Example: "User full name"

User specification.

email
string or null <email> (user_email) [ 5 .. 256 ] characters
Example: "admin@company.com"

User e-mail address.

phone
string or null (user_phone) [ 5 .. 32 ] characters
Example: "+71112223333"

User phone.

company_key
required
string (company_key) [ 3 .. 256 ] characters \w+
Example: "smart_company"

Unique company key.

enabled
boolean
Default: true
Example: "true"

User status.

roles
required
Array of strings (user_role_list) [ 0 .. 2 ] items unique
Items Enum: "ADMIN" "PARTNER" "USER" … 1 more
Example: "USER"

List of user roles.

timezone
integer <int32> (timezone) [ -12 .. 12 ]
Example: "3"

Basic time zone used for statistics.

edit_date
string or null <date-time>
Default: null
Example: "2024-11-21T19:45:00Z"

Last edit date and time in the ISO 8601 format.

creation_date
string or null <date-time>
Default: null
Example: "2024-11-21T19:45:00Z"

Creation date and time in the ISO 8601 format.

Array of objects (attributes) [ 0 .. 1000 ] items unique

Attributes. Used to add service information.

Request samples

Content type
application/json
{
}

Response samples

Content type
application/json
{
}

Statistics

Statistics.

Statistics for the period

User statistics for the period. If the period is not specified, the statistics for the current month returns (from the beginning of the month to the present day). If no from datetime is specified, data are returned from the beginning of the month. If no to datetime is specified, data are returned be to the present day (excluding). Empty service and process type fields mean returning statistics for all services and process types.

Authorizations:
ApiKeyAuth
query Parameters
from
string <date>
Example: from=2024-11-22

Date from in the YYYY-MM-DD format.

to
string <date>
Example: to=2024-11-26

Date to (including) in the YYYY-MM-DD format.

service
string (service)
Enum: "UNIVERSAL" "ROUTING" "ACCOUNT" … 5 more
Example: service=UNIVERSAL

Service name.

process_type
string (process_type)
Enum: "NOTRACE" "TRACE" "PLAN" … 5 more
Example: process_type=PLAN

Process type.

Responses

Response Schema: application/json
username
required
string (user_username) [ 2 .. 256 ] characters \w+
Example: "username_for_login"

Unique username for login.

required
Array of objects (date_statistics) [ 0 .. 3653 ] items

Statistics list for each day for the specified user.

Response samples

Content type
application/json
{
}

Report creating

Creating report with usage statistics. If the period is not specified, records are returned from the beginning of the month to the present day (excluding). If no from datetime is specified, data are returned from the beginning of the month. If no to datetime is specified, data are returned be the the present day (excluding). Empty service and process type fields mean returning statistics for all services and process types.

Authorizations:
ApiKeyAuth
query Parameters
from
string <date>
Example: from=2024-11-22

Date from in the YYYY-MM-DD format.

to
string <date>
Example: to=2024-11-26

Date to (including) in the YYYY-MM-DD format.

service
string (service)
Enum: "UNIVERSAL" "ROUTING" "ACCOUNT" … 5 more
Example: service=UNIVERSAL

Service name.

process_type
string (process_type)
Enum: "NOTRACE" "TRACE" "PLAN" … 5 more
Example: process_type=PLAN

Process type.

Responses

Response Schema: application/octet-stream
string <byte> (file_xlsx)

File with data in XLSX format.

Response samples

Content type
application/json
{
}

Audit

User actions.

Actions for the period

User actions for the period. If the period is not specified, data for the current day is returned - from the beginning of the day to the current time inclusive. If the beginning of the time period is not specified, data from the beginning of the current day is returned. If the end of the time period is not specified, data up to the current time is returned.

Authorizations:
ApiKeyAuth
query Parameters
offset
integer <int32> [ 0 .. 10000000 ]
Default: 0
Example: offset=10

The number of items to skip before starting to collect the result set.

limit
integer <int32> [ 1 .. 10000000 ]
Default: 100
Example: limit=10

The number of items to return.

from
string <date-time>
Example: from=2024-11-21T09:30:00+03:00

Date and time in the ISO 8601 format. If no datetime is specified, audit data are returned from the beginning of the day.

to
string <date-time>
Example: to=2024-11-21T18:00:00+03:00

Date and time in the ISO 8601 format. If not specified, data up to the current time is returned.

service
string (service)
Enum: "UNIVERSAL" "ROUTING" "ACCOUNT" … 5 more
Example: service=UNIVERSAL

Service name.

operation
string (operation) [ 3 .. 256 ] characters
Example: operation=run_plan_calculation

Operation name.

process_type
string (process_type)
Enum: "NOTRACE" "TRACE" "PLAN" … 5 more
Example: process_type=PLAN

Process type.

status
string (calculation_status)
Enum: "WAITING" "IN_PROGRESS" "FINISHED_IN_TIME" … 5 more
Example: status=FINISHED_IN_TIME

Process status.

sort_field
string [ 1 .. 64 ] characters
Example: sort_field=name

Field to sort by.

sort_direction
string
Default: "ASC"
Enum: "ASC" "DESC"
Example: sort_direction=DESC

Sort direction.

Responses

Response Schema: application/json
required
Array of objects (audit_action) [ 0 .. 10000000 ] items

User actions list.

required
object (audit_counters)

Counters by records list.

Response samples

Content type
application/json
{
}

Data

User data.

Reading input data

Receiving an incoming request by tracedata.process_code.

Authorizations:
ApiKeyAuth
path Parameters
process_code
required
string <uuid> (process_code)
Example: 11111111-2222-3333-4444-555555555555

Unique process identifier.

query Parameters
data_flow_type
string (flow_type)
Default: "INPUT"
Enum: "INPUT" "OUTPUT"
Example: data_flow_type=OUTPUT

Data flow type.

data_flow_stage
string
Default: "RAW"
Value: "RAW"
Example: data_flow_stage=RAW

Data flow stage.

Responses

Response Schema: application/octet-stream
string <byte> (file_binary)

File with data (octet-stream).

Response samples

Content type
application/json
{
}

Quotas

Quotas.

Obtaining the quotas

Obtaining the quotas for the user.

Authorizations:
ApiKeyAuth

Responses

Response Schema: application/json
required
object (quota_base)

All services quota.

Response samples

Content type
application/json
{
}

System

System functions. Auxiliary functionality common to all services.

Checking the availability

Checking the service availability.

Responses

Response Schema: application/json
health
required
number <double> [ 0 .. 1 ]
Example: "0.999"

The current health indicator of the service.

  • 0.0 means the service is not ready to perform tasks.
  • 1.0 means the service is fully ready to perform tasks.

Response samples

Content type
application/json
{
}

Getting the service version

Getting the service version.

Responses

Response Schema: application/json
major
required
integer <int32> [ 1 .. 100 ]
Example: "7"

Product version. Within a single version, compatibility of common data structures between services is guaranteed. A version change indicates changes that are incompatible with previous versions of the product (and all services).

minor
required
integer <int32> [ 0 .. 111 ]
Example: "5"

Minor version of the service. A version change indicates new functionality. The update is backward compatible with the major version of the service.

build
required
string [ 1 .. 64 ] characters
Example: "3754RC"

Build version.
Contains backwards compatible bug fixes and docs update.

Response samples

Content type
application/json
{
}

Getting the documentation

Getting the file with this service documentation.

path Parameters
filename
required
string [ 6 .. 128 ] characters
Example: file_en.html

File name.

Responses

Response Schema:
string (file_html)

File with data in HTML format.

Response samples

Content type
application/json
{
}