Configuration API

Get own registered configuration

Scope
Returns Service Provider configuration registered in the Sign API service.

Description
Configuration information about the authorized Service provider is returned.

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

GET /api-config/v1.0/

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.

Example

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

Response
JSON object:

"data": {
    "oauthClientId": {String},
    "name": {String},
    "created": {Datetime},
    "changed": {Datetime},
    "fileMaxLength": {Number},
    "sessionExpirationTimeout": {Number}
}
PropertyDescription
dataContains information about Service providers configuration
data.oauthClientIdOAuth2.0 Service provider’s application identifier issued by LVRTC
data.nameRegistered name of Service provider
data.createdDate of creation
data.changedDate of last modifications
data.fileMaxLengthMaximal possible upload file size
data.sessionExpirationTimeoutSession expiration in seconds

Example

"data": {
    "oauthClientId": "SIAUznemums",
    "name": "SIA Uzņēmums",
    "created": "2019-10-22T10:34:10.666528",
    "changed": "2019-10-22T10:34:10.666528",
    "fileMaxLength": 4202406,
    "sessionExpirationTimeout": 5105880
}

Get public key of SignAPI central authentication certificate

Scope
Returns public key of SignAPI central authentication certificate.

Description
Information and public key of the SignAPI central authentication certificate is returned. Public key is used to hash signKey value in POST /api-sign/v1.0/eSealCreate method.

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

GET /api-config/v1.0/public/key

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.

Example

GET /api-config/v1.0/public/key HTTP/1.1
Authorization: Bearer a477b3a3366768c07e4c458f518711b4b351e8d2c2f0f78a1524e4d3efd00603
Host: signapi-prep.eparaksts.lv

Response
JSON object:

{
    "data": {
        "name": {String},
        "dateCreated": {Datetime},
        "dateExpiration": {Datetime},
        "publicKey": {String}
    }
}
PropertyDescription
dataContains information about SignAPI central authentication certificate
data.nameName of certificate
data.dateCreatedDate of creation
data.dateExpirationDate of certificate expiry
data.publicKeyPublic key of certificate

Example

{
    "data": {
        "name": "PROD SignAPI central auth",
        "dateCreated": "2022-01-16T23:59:48+02:00",
        "dateExpiration": "2024-01-06T00:00:00+02:00",
        "publicKey": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAytp4grryX7eOQ6zG602VGNtTWtQVe1KUrS0SbGP0DUTW3sBnD0fj7D19hVWve7uE7MChbQR3YLNNBp1c0m9fNuS1TND7sYjw4R8z3n8lKGAAjMGEzs9TRaI30vfh4AcKuh03ECrROtj/3xlLCYI4aSPev9E9y+sFh5z2qBvjc0GZ6n9ZALBnOHNESoraP2pItWlhp0/pinqZGJ+YHNEgP3DgMrPTVMfWskD0nhJN8WjdQqHljXfydax5AWuGf3Zj4Y/pUTjAA27ru5GDKxeMWTxEVVsvgIkL6S+VWSm+VXDeWc00M0V4dCQUviYcguluf8+YAdRdsYJnVY2CBFbWSQIDAQAB"
    }
}