{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"289c428c-fd32-413d-899f-cbc334c6069d","name":"Elpako Docs (EN)","description":"[Elpako](https://elpako.eu/?utm_campaign=redirects&utm_source=documentation&utm_medium=web) - digital/electronic document signing and related services.\n\n# About\n\nThe Elpako has two parts:\n\n*   API - used to manage various signing processes. REST api for your system to upload, sign, manage, etc.\n*   User interface - if you don't want to create your own personalised user interface, you can use a ready-made interface. Your system will receive URLs that can be opened in an iframe or as a separate signing or viewing window in a browser.\n    \n\n# Authentication to this service\n\nThe API key authentication mechanism is used. Each request to the API must have a specified query parameter (query param.) `?access_token=<>`.\n\nFor example: `https://api.elpako.eu/api/v1/check.json?access_token=`\n\n**Addresses used by the Gateway do not require the access_token parameter. The access_token value assigned to your system must not be publicly visible.**\n\nTo get a demonstration of the access_token value, just contact us at [contact](mailto:[sales@elpako.eu](mailto:sales@elpako.eu)?subject=I want to try Elpako).\n\n# Rate limit\n\nAll API requests return the following codes:\n\n* 200 - all good\n* 400 - something is wrong. We managed to answer your request, but there were some errors, which are detailed in the error section. * For example, you tried to check an electronic document and we found validation errors in it.\n* 403 - unauthorised requests\n* 500 - Something unexpected happened. We take responsibility for these errors. \\[Notify us.\\](mailto:[support@elpako.eu](mailto:support@elpako.eu)?subject=\"Unexpected errors at Elpako\")\n    \n\nExample of a response when checking an electronic document and finding a validation error:\n\n```\n{\n\"structure\": {...},\n\"message\": \"Atverto dokumento struktūroje aptikta klaidų\",\n\"errors\": [\n    {\n        \"message\": \"El. parašo sertifikatas \\\"CN=John Doe, OU=Employees\\\" išduotas nepatikimo CA\",\n        \"error_code\": 14008,\n        \"field\": \"\",\n        \"signature_id\": \"META-INF/signatures/signatures2.xml#signature_2\"\n    }\n],\n\"status\": \"error\",\n\"error_code\": 8013\n}\n```\n\n# Error codes\n\nAPI requests are currently not restricted. To keep these services unrestricted, let's use them wisely, and not make unnecessary requests. Service requests and their volumes are monitored and all customers will be informed if there is a limitation.\n\n* 0 - Unknown error\n* 4002 - Key \"token\" error\n* 4100 - File content does not match digest checksum value\n* 4101 - File contents are not properly formatted according to base64 encoding\n* 10000 - Unable to check ADOC\n* 10008 - PDF document is not suitable for checking\n* 10009 - Unable to find specified field\n* 5104 - Certificate is revoked\n* 7020 - SIM card error\n* 7051 - Unable to obtain certificates from mobile operator\n* 7052 - Mobile signing failed\n* 7053 - Mobile signing was cancelled\n* 7054 - Mobile signing time expired\n* 8001 - Unable to open document\n* 8002 - Unable to open document for signature\n* 8013 - Document has validation errors\n* 14001 - ADOC file content format incorrect\n* 14002 - Time stamping failed, need to retry later\n* 14003 - Archival timestamp failed, need to retry later\n* 14004 - Signature not found\n* 14005 - Failed to raise signature level\n* 14006 - Failed XML signature validation\n* 14007 - Certificate expired\n* 14008 - Certificate not trusted\n* 14010 - Certificate verification via CRL failed\n* 14011 - Certificate revocation grace period has not expired\n* 14012 - Time stamping is not possible for this document\n* 14013 - Archival time stamp cannot be applied to this document\n* 14014 - Signature archived and expired\n* 14015 - Validation of certificate for signing failed\n* 14018 - Metadata for signing is missing\n* 14019 - Simple time stamp missing before archiving\n* 14020 - LTV timestamping error\n* 14021 - Invalid query data\n* 14022 - Query data not found\n* 14023 - Query field is empty\n* 14024 - File not signed\n* 14025 - File not found\n* 14026 - File used in another signing process\n* 15001 - Signing process not yet started\n* 15002 - The signer already exists\n* 15003 - Unknown signer\n* 15004 - The signer has already signed\n* 15005 - An error has occurred in the signing process\n* 15006 - The signatory does not belong to this signing process\n* 15007 - Signature metadata mismatch\n    \n\n# Testing environment\n\nTest environment address: [https://api-staging.elpako.eu](https://api-staging.elpako.eu)\n\nIn the test environment, timestamps, mobile and Smart-ID signatures are unqualified. I.e. documents created in this environment are not intended to be used in real-life scenarios, other software may indicate that signature certificates are untrusted, etc.\n\nWhen testing signing on mobile devices, a fake (generated) certificate will be used.\n\nMobile signing data/scenarios:\n\n* Tel: any; PC: any - Successful signing\n* Tel: +37061234567; PC:36601010001 - Successful signing\n* Tel.nr: +37061234567; AK:36601010002 - Signature cancelled (cancel)\n* Tel: +37061234567; AK:36601010003 - Signing timeout\n* Tel: +37061234567; AK:36601010004 - Unknown error from mobile signature infrastructure\n    \n\nSmart-ID signing data/scenarios:\n\n* AK:30303039914 - Successful signing\n* AK:30403039917 - Signature cancelled\n* AK:30403039983 - Signing timeout","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"11918038","team":1149963,"collectionId":"289c428c-fd32-413d-899f-cbc334c6069d","publishedId":"UVJihuNs","public":true,"publicUrl":"https://documenter-api.postman.tech/view/11918038/UVJihuNs","privateUrl":"https://go.postman.co/documentation/11918038-289c428c-fd32-413d-899f-cbc334c6069d","customColor":{"top-bar":"FFFFFF","right-sidebar":"060A47","highlight":"10BF80"},"documentationLayout":"classic-double-column","customisation":null,"version":"8.10.1","publishDate":"2021-12-07T11:38:13.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{},"logos":{}},"statusCode":200},"environments":[],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://res.cloudinary.com/postman/image/upload/t_team_logo_pubdoc/v1/team/356ab90790a8189cc4deb5d02baddb3738c6ccfa62c261bbd684d9f00ee70649","favicon":""},"isEnvFetchError":false,"languages":"[{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"HttpClient\"},{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"RestSharp\"},{\"key\":\"curl\",\"label\":\"cURL\",\"variant\":\"cURL\"},{\"key\":\"dart\",\"label\":\"Dart\",\"variant\":\"http\"},{\"key\":\"go\",\"label\":\"Go\",\"variant\":\"Native\"},{\"key\":\"http\",\"label\":\"HTTP\",\"variant\":\"HTTP\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"OkHttp\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"Unirest\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"Fetch\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"jQuery\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"XHR\"},{\"key\":\"c\",\"label\":\"C\",\"variant\":\"libcurl\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Axios\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Native\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Request\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Unirest\"},{\"key\":\"objective-c\",\"label\":\"Objective-C\",\"variant\":\"NSURLSession\"},{\"key\":\"ocaml\",\"label\":\"OCaml\",\"variant\":\"Cohttp\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"cURL\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"Guzzle\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"HTTP_Request2\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"pecl_http\"},{\"key\":\"powershell\",\"label\":\"PowerShell\",\"variant\":\"RestMethod\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"http.client\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"Requests\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"httr\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"RCurl\"},{\"key\":\"ruby\",\"label\":\"Ruby\",\"variant\":\"Net::HTTP\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"Httpie\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"wget\"},{\"key\":\"swift\",\"label\":\"Swift\",\"variant\":\"URLSession\"}]","languageSettings":[{"key":"csharp","label":"C#","variant":"HttpClient"},{"key":"csharp","label":"C#","variant":"RestSharp"},{"key":"curl","label":"cURL","variant":"cURL"},{"key":"dart","label":"Dart","variant":"http"},{"key":"go","label":"Go","variant":"Native"},{"key":"http","label":"HTTP","variant":"HTTP"},{"key":"java","label":"Java","variant":"OkHttp"},{"key":"java","label":"Java","variant":"Unirest"},{"key":"javascript","label":"JavaScript","variant":"Fetch"},{"key":"javascript","label":"JavaScript","variant":"jQuery"},{"key":"javascript","label":"JavaScript","variant":"XHR"},{"key":"c","label":"C","variant":"libcurl"},{"key":"nodejs","label":"NodeJs","variant":"Axios"},{"key":"nodejs","label":"NodeJs","variant":"Native"},{"key":"nodejs","label":"NodeJs","variant":"Request"},{"key":"nodejs","label":"NodeJs","variant":"Unirest"},{"key":"objective-c","label":"Objective-C","variant":"NSURLSession"},{"key":"ocaml","label":"OCaml","variant":"Cohttp"},{"key":"php","label":"PHP","variant":"cURL"},{"key":"php","label":"PHP","variant":"Guzzle"},{"key":"php","label":"PHP","variant":"HTTP_Request2"},{"key":"php","label":"PHP","variant":"pecl_http"},{"key":"powershell","label":"PowerShell","variant":"RestMethod"},{"key":"python","label":"Python","variant":"http.client"},{"key":"python","label":"Python","variant":"Requests"},{"key":"r","label":"R","variant":"httr"},{"key":"r","label":"R","variant":"RCurl"},{"key":"ruby","label":"Ruby","variant":"Net::HTTP"},{"key":"shell","label":"Shell","variant":"Httpie"},{"key":"shell","label":"Shell","variant":"wget"},{"key":"swift","label":"Swift","variant":"URLSession"}],"languageOptions":[{"label":"C# - HttpClient","value":"csharp - HttpClient - C#"},{"label":"C# - RestSharp","value":"csharp - RestSharp - C#"},{"label":"cURL - cURL","value":"curl - cURL - cURL"},{"label":"Dart - http","value":"dart - http - Dart"},{"label":"Go - Native","value":"go - Native - Go"},{"label":"HTTP - HTTP","value":"http - HTTP - HTTP"},{"label":"Java - OkHttp","value":"java - OkHttp - Java"},{"label":"Java - Unirest","value":"java - Unirest - Java"},{"label":"JavaScript - Fetch","value":"javascript - Fetch - JavaScript"},{"label":"JavaScript - jQuery","value":"javascript - jQuery - JavaScript"},{"label":"JavaScript - XHR","value":"javascript - XHR - JavaScript"},{"label":"C - libcurl","value":"c - libcurl - C"},{"label":"NodeJs - Axios","value":"nodejs - Axios - NodeJs"},{"label":"NodeJs - Native","value":"nodejs - Native - NodeJs"},{"label":"NodeJs - Request","value":"nodejs - Request - NodeJs"},{"label":"NodeJs - Unirest","value":"nodejs - Unirest - NodeJs"},{"label":"Objective-C - NSURLSession","value":"objective-c - NSURLSession - Objective-C"},{"label":"OCaml - Cohttp","value":"ocaml - Cohttp - OCaml"},{"label":"PHP - cURL","value":"php - cURL - PHP"},{"label":"PHP - Guzzle","value":"php - Guzzle - PHP"},{"label":"PHP - HTTP_Request2","value":"php - HTTP_Request2 - PHP"},{"label":"PHP - pecl_http","value":"php - pecl_http - PHP"},{"label":"PowerShell - RestMethod","value":"powershell - RestMethod - PowerShell"},{"label":"Python - http.client","value":"python - http.client - Python"},{"label":"Python - Requests","value":"python - Requests - Python"},{"label":"R - httr","value":"r - httr - R"},{"label":"R - RCurl","value":"r - RCurl - R"},{"label":"Ruby - Net::HTTP","value":"ruby - Net::HTTP - Ruby"},{"label":"Shell - Httpie","value":"shell - Httpie - Shell"},{"label":"Shell - wget","value":"shell - wget - Shell"},{"label":"Swift - URLSession","value":"swift - URLSession - Swift"}],"layoutOptions":[{"value":"classic-single-column","label":"Single Column"},{"value":"classic-double-column","label":"Double Column"}],"versionOptions":[],"environmentOptions":[{"value":"0","label":"No Environment"}],"canonicalUrl":"https://documenter.gw.postman.com/view/metadata/UVJihuNs"}