Logo
Openapi.it Public API Documentation

{{baseUrl}}/marca

POST {{baseUrl}}/marca

This endpoint allows you to mark a document in time; if you do not have our timestamps you can still mark a document by passing only 'file' parameter.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Content-Type
string
Accept
string




RESPONSES

status OK

{ "data": { "available": 99, "used": 1, "timestamp_header": "{\"Date\":\"Fri, 11 Sep 2020 09:27:19 GMT\",\"Server\":\"Apache\",\"X-Powered-By\":\"Application Server Infocert - marca4\",\"Set-Cookie\":\"JSESSIONID=A9FCAAAFFF1320E96F19AD43F7B590A2.marca4; Path=\\/; Secure\",\"ICTSA-UCTTime\":\"20200911092720Z\",\"ICTSA-SN\":\"428957893\",\"ICTSA-TSAName\":\"CN=ICEDTS02202009, OU=TSA, O=INFOCERT SPA, C=IT\",\"Content-Disposition\":\"attachment; filename=\\\"test.tsr\\\"\",\"Content-Type\":\"application\\/timestamp-reply; name=\\\"test.tsr\\\"\",\"Content-Length\":\"3584\"}", "timestamp_body": "https://dev.ws.marchetemporali.com/MARCATURE/7fc398e761e35b0c766698b27b4e7430/test.tsr", "transaction": "7fc398e761e35b0c766698b27b4e7430" }, "message": "Documento Marcato Correttamente", "success": true, "error": null }



Curl
curl -X POST 'baseUrl/marca' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"file":"\u003cstring\u003e","username":"\u003cstring\u003e","password":"\u003cstring\u003e","mime":"\u003cboolean\u003e","type":"\u003cstring\u003e"}'

ENDPOINTS