GET api/certificates?type={type}&accountid={accountid}
Get a specific certificate by type and scope.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| type | integer |
Required |
|
| accountid | integer |
None. |
Body Parameters
None.
Response Information
Resource Description
Collection of CertificateDTOExpanded| Name | Description | Type | Additional information |
|---|---|---|---|
| ID |
Id uniquely identifying the certificate. |
integer |
None. |
| DateTimeAdded |
When was certificate imported to the system. |
date |
None. |
| NotAfter |
After this date the certificate is no longer valid. |
date |
None. |
| UserNameAndSurname |
Name and surname of the individual user, or name of the company, that the certificate applies to. |
string |
None. |
| Issuer |
Certificate issuer. |
string |
None. |
| Subject |
Certificate subject. |
string |
None. |
| Type |
Certificate type, 0 - DocumentSignature, 1 - FINA. |
string |
None. |
| Data |
Binary data array associated with this certificate instance. |
Collection of byte |
None. |
| Password |
Certificate password. |
string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"ID": 1,
"DateTimeAdded": "2025-12-16T04:03:23.7914402+00:00",
"NotAfter": "2025-12-16T04:03:23.7914402+00:00",
"UserNameAndSurname": "sample string 4",
"Issuer": "sample string 5",
"Subject": "sample string 6",
"Type": "sample string 7",
"Data": "QEA=",
"Password": "sample string 8"
},
{
"ID": 1,
"DateTimeAdded": "2025-12-16T04:03:23.7914402+00:00",
"NotAfter": "2025-12-16T04:03:23.7914402+00:00",
"UserNameAndSurname": "sample string 4",
"Issuer": "sample string 5",
"Subject": "sample string 6",
"Type": "sample string 7",
"Data": "QEA=",
"Password": "sample string 8"
}
]
text/html
Sample:
[{"ID":1,"DateTimeAdded":"2025-12-16T04:03:23.7914402+00:00","NotAfter":"2025-12-16T04:03:23.7914402+00:00","UserNameAndSurname":"sample string 4","Issuer":"sample string 5","Subject":"sample string 6","Type":"sample string 7","Data":"QEA=","Password":"sample string 8"},{"ID":1,"DateTimeAdded":"2025-12-16T04:03:23.7914402+00:00","NotAfter":"2025-12-16T04:03:23.7914402+00:00","UserNameAndSurname":"sample string 4","Issuer":"sample string 5","Subject":"sample string 6","Type":"sample string 7","Data":"QEA=","Password":"sample string 8"}]
application/xml, text/xml
Sample:
<ArrayOfCertificateDTOExpanded xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.WebAPI.DTOs">
<CertificateDTOExpanded>
<Data>QEA=</Data>
<DateTimeAdded>2025-12-16T04:03:23.7914402+00:00</DateTimeAdded>
<ID>1</ID>
<Issuer>sample string 5</Issuer>
<NotAfter>2025-12-16T04:03:23.7914402+00:00</NotAfter>
<Password>sample string 8</Password>
<Subject>sample string 6</Subject>
<Type>sample string 7</Type>
<UserNameAndSurname>sample string 4</UserNameAndSurname>
</CertificateDTOExpanded>
<CertificateDTOExpanded>
<Data>QEA=</Data>
<DateTimeAdded>2025-12-16T04:03:23.7914402+00:00</DateTimeAdded>
<ID>1</ID>
<Issuer>sample string 5</Issuer>
<NotAfter>2025-12-16T04:03:23.7914402+00:00</NotAfter>
<Password>sample string 8</Password>
<Subject>sample string 6</Subject>
<Type>sample string 7</Type>
<UserNameAndSurname>sample string 4</UserNameAndSurname>
</CertificateDTOExpanded>
</ArrayOfCertificateDTOExpanded>