Session - Create

Scope

Ensure that a file processing session is created, which is then used to refer to the processes it takes.

Description

SignAPI creates a session folder that uses the session ID as folder name

Request

The Service provider's application sends the following GET request using TLS:

GET /api-session/v1.0/start

Authorization

The request must contain an Authorization header with an OAuth Introspect access token obtained via Integration Platform a Service provider's credentials grant flow.

Unable to render {include} The included page could not be found.

Query parameters

PropertyTypeUsageDescription
amount
NumberOptionalAmount of sessions to be created. Accepted values 1-100.

Example

GET /api-session/v1.0/start HTTP/1.1
Authorization: Bearer a477b3a3366768c07e4c458f518711b4b351e8d2c2f0f78a1524e4d3efd00603
Host: signapi-prep.eparaksts.lv

Example with query parameters

GET /api-session/v1.0/start?amount=3 HTTP/1.1
Authorization: Bearer a477b3a3366768c07e4c458f518711b4b351e8d2c2f0f78a1524e4d3efd00603
Host: signapi-prep.eparaksts.lv

Response

JSON object:

{
    "data": {
        "sessionId": {string}
    }
}
PropertyTypeDescription
sessionIdString (64)

File processing session identifier.

Example

{
    "data": {
        "sessionId": "5a1ef5321d1bd9a2966d673c84c7ded630a1923965e3efcfc1787260cbe8223d"
    }
}

Example with amount query parameter (multiple session creation)

{
    "data": {
        "sessionIds": [
            "daa88ba31deedbd02a56af404c88b982c208b92185b061d6c4311e71c2d591ed",
            "123464f4c82d167c7302c7d600b4b0d82b5db73da6c414b8e9d544f1d77e97b9",
            "3444a69fa828f93ac4b1d53a446220c21c62fc3bb966d1469cc4b93c57c62ca9"
        ]
    }
}
  • No labels