curl --request POST \
--url 'https://sandbox.circularo.com/api/v1/settings/sealProviders?token=' \
--header 'Content-Type: application/json' \
--data '
{
"accessFile": "s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj",
"name": "company-qseal",
"password": "<string>",
"type": "icaRemoteQualifiedSeal"
}
'import requests
url = "https://sandbox.circularo.com/api/v1/settings/sealProviders?token="
payload = {
"accessFile": "s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj",
"name": "company-qseal",
"password": "<string>",
"type": "icaRemoteQualifiedSeal"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
accessFile: 's1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj',
name: 'company-qseal',
password: '<string>',
type: 'icaRemoteQualifiedSeal'
})
};
fetch('https://sandbox.circularo.com/api/v1/settings/sealProviders?token=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.circularo.com/api/v1/settings/sealProviders?token=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'accessFile' => 's1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj',
'name' => 'company-qseal',
'password' => '<string>',
'type' => 'icaRemoteQualifiedSeal'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.circularo.com/api/v1/settings/sealProviders?token="
payload := strings.NewReader("{\n \"accessFile\": \"s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj\",\n \"name\": \"company-qseal\",\n \"password\": \"<string>\",\n \"type\": \"icaRemoteQualifiedSeal\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox.circularo.com/api/v1/settings/sealProviders?token=")
.header("Content-Type", "application/json")
.body("{\n \"accessFile\": \"s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj\",\n \"name\": \"company-qseal\",\n \"password\": \"<string>\",\n \"type\": \"icaRemoteQualifiedSeal\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/settings/sealProviders?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"accessFile\": \"s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj\",\n \"name\": \"company-qseal\",\n \"password\": \"<string>\",\n \"type\": \"icaRemoteQualifiedSeal\"\n}"
response = http.request(request)
puts response.read_body{
"accessFile": "s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj",
"name": "company-qseal",
"type": "icaRemoteQualifiedSeal"
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 409,
"type": "RESOURCE:STATE_CONFLICT",
"message": "Resource state conflict",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Add a seal provider of the organization
POST /settings/sealProviders
Adds a seal provider the caller’s organization holds its own credentials for - an I.CA RemoteSeal qualified electronic seal, identified by its access file and SCA password. From then on the members of the organization can seal with it, next to the system seal providers the organization is allowed; it becomes the default only once the organization’s defaultSealProvider names it.
The provider is stored in the settings of the caller’s own organization, which is the only one this endpoint acts on. The access file has to be uploaded first, as a private file of the caller’s own that is not used anywhere else; it is checked for the .rseal extension, its size and its content being UTF-8 text that is not blank, while whether I.CA accepts the credentials shows only with the first seal. An organization can hold at most 10 providers of its own.
Token authorization: Authorize using a token — either a session token obtained from login or an API key — to call this endpoint.
Required user role: organization_admin
curl --request POST \
--url 'https://sandbox.circularo.com/api/v1/settings/sealProviders?token=' \
--header 'Content-Type: application/json' \
--data '
{
"accessFile": "s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj",
"name": "company-qseal",
"password": "<string>",
"type": "icaRemoteQualifiedSeal"
}
'import requests
url = "https://sandbox.circularo.com/api/v1/settings/sealProviders?token="
payload = {
"accessFile": "s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj",
"name": "company-qseal",
"password": "<string>",
"type": "icaRemoteQualifiedSeal"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
accessFile: 's1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj',
name: 'company-qseal',
password: '<string>',
type: 'icaRemoteQualifiedSeal'
})
};
fetch('https://sandbox.circularo.com/api/v1/settings/sealProviders?token=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.circularo.com/api/v1/settings/sealProviders?token=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'accessFile' => 's1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj',
'name' => 'company-qseal',
'password' => '<string>',
'type' => 'icaRemoteQualifiedSeal'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.circularo.com/api/v1/settings/sealProviders?token="
payload := strings.NewReader("{\n \"accessFile\": \"s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj\",\n \"name\": \"company-qseal\",\n \"password\": \"<string>\",\n \"type\": \"icaRemoteQualifiedSeal\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox.circularo.com/api/v1/settings/sealProviders?token=")
.header("Content-Type", "application/json")
.body("{\n \"accessFile\": \"s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj\",\n \"name\": \"company-qseal\",\n \"password\": \"<string>\",\n \"type\": \"icaRemoteQualifiedSeal\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/settings/sealProviders?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"accessFile\": \"s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj\",\n \"name\": \"company-qseal\",\n \"password\": \"<string>\",\n \"type\": \"icaRemoteQualifiedSeal\"\n}"
response = http.request(request)
puts response.read_body{
"accessFile": "s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj",
"name": "company-qseal",
"type": "icaRemoteQualifiedSeal"
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 409,
"type": "RESOURCE:STATE_CONFLICT",
"message": "Resource state conflict",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Authorizations
Body
Hash of the I.CA access file (.rseal) the seal is requested with, uploaded beforehand as a private file by the caller. Once the provider is stored the file can no longer be downloaded by anybody, the caller included.
1^[a-z0-9]+$"s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj"
Name of the new seal provider, unique among the providers of the organization and the system seal providers of the tenant regardless of case. The provider type names internal and datasure are reserved regardless of case, since a seal request naming one of them asks for a provider of that type. It is what seal requests and the default seal provider refer to the provider by, and it cannot be changed later.
1 - 100^[A-Za-z0-9._-]+$"company-qseal"
Kind of seal provider. An organization can configure only providers it holds its own credentials for.
icaRemoteQualifiedSeal: I.CA RemoteSeal, a qualified electronic seal of the organization, applied server-side without any person confirming it.
icaRemoteQualifiedSeal "icaRemoteQualifiedSeal"
Response
Returns the stored provider, without its password.