{"openapi":"3.0.0","info":{"description":"Web service that allows you to purchase or renew Infocert or Aruba digital signatures, and to obtain digital identities.","version":"1.0.0","title":"Firma Digitale","termsOfService":"https://openapi.it/en/terms-and-conditions","contact":{"url":"https://openapi.it/en/support","name":"Support"},"license":{"name":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"}},"servers":[{"url":"https://ws.firmadigitale.com","description":"Production"},{"url":"https://test.ws.firmadigitale.com","description":"Sandbox"}],"tags":[{"name":"Firma elettronica","description":"Methods that allows you to digitally sign PDF document with REST APIs."}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"FesBaseResponse":{"allOf":[{"$ref":"#/components/schemas/FesCallbackContent"},{"type":"object","properties":{"callback_status":{"type":"string"},"callback":{"type":"object","properties":{"method":{"type":"string"},"field":{"type":"string"},"url":{"type":"string"}}}}}]},"FesStatus":{"type":"string","description":"The request will return one of the following statuses.","enum":["created","started","finished","refused","expired","request failed","file validation failed","error"]},"FesCallbackContent":{"type":"object","properties":{"id":{"type":"string"},"filename":{"type":"string","default":"fes_{timestamp}.pdf"},"title":{"type":"string"},"description":{"type":"string"},"members":{"type":"array","items":{"type":"object","properties":{"firstname":{"type":"string"},"lastname":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"status":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"sign_link":{"type":"string"}}}},"status":{"$ref":"#/components/schemas/FesStatus"},"download_link":{"type":"string","nullable":true}}}}},"paths":{"/firma_elettronica":{"get":{"tags":["Firma elettronica"],"summary":"List all your past and pending requests","description":"","responses":{"200":{"description":"A PDF file","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/FesBaseResponse"}},"success":{"type":"boolean"},"message":{"type":"string"},"error":{"type":"string"}}}}}},"400":{"description":"Bad Request","content":{"text/plain":{"schema":{"type":"string","example":"Invalid id"}}}}},"security":[{"bearerAuth":[]}]}},"/firma_elettronica/{id}":{"get":{"tags":["Firma elettronica"],"summary":"Get information on a sign request","description":"","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","example":"923j90n02n1w51504b6ea145"}}],"responses":{"200":{"description":"A PDF file","content":{"application/pdf":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/FesBaseResponse"},"success":{"type":"boolean"},"message":{"type":"string"},"error":{"type":"string"}}}}}},"400":{"description":"Bad Request","content":{"text/plain":{"schema":{"type":"string","example":"Invalid id"}}}}},"security":[{"bearerAuth":[]}]}},"/firma_elettronica/{id}/download":{"get":{"tags":["Firma elettronica"],"summary":"Download your signed document","description":"Once the signing process is compleated you can use this endpoint to get a the base64-encoded output of you pdf file.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","example":"923j90n02n1w51504b6ea145"}}],"responses":{"200":{"description":"A base64-encoded PDF file","content":{"application/json":{"schema":{"type":"object","properties":{"content":{"type":"string","example":"aHR0cHM6Ly93d3cueW91dHViZS5jb20vd2F0Y2g/dj1kUXc0dzlXZ1hjUQ==","description":"A base64 encoding of your SIGNED pdf file."},"success":{"type":"boolean"},"message":{"type":"string"},"error":{"type":"string"}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","example":"Invalid id"}}}},"404":{"description":"Wrong ID or file not ready","content":{"application/json":{}}}},"security":[{"bearerAuth":[]}]}},"/firma_elettronica/{id}/audit":{"get":{"tags":["Firma elettronica"],"summary":"Retrieve Audit Trail for Signed Document","description":"Retrieve the audit trail for the specified electronic signature.\n\n### Parameters\n- **id** (path parameter): The unique identifier of the signed document.\n\n### Example\n```bash\n# Download audit trail in JSON format\ncurl -X GET https://ws.firmadigitale.com/firma_elettronica/923j90n02n1w51504b6ea145/audit\n\n\nThe response will contain the audit trail information for the electronic signature.\n","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","example":"923j90n02n1w51504b6ea145"}}],"responses":{"200":{"description":"status ok","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"object","properties":{"firstname":{"type":"string","description":"First name of the individual initiating the electronic signature."},"lastname":{"type":"string","description":"Last name of the individual initiating the electronic signature."},"email":{"type":"string","format":"email","description":"Email address of the individual initiating the electronic signature."},"phone":{"type":"string","description":"Phone number of the individual initiating the electronic signature."},"status":{"type":"string","description":"Status of the electronic signature procedure."},"position":{"type":"integer","description":"Position of the individual in the signing order."},"createdAt":{"type":"string","format":"string","description":"Timestamp when the electronic signature request was initiated."},"updatedAt":{"type":"string","format":"string","description":"Timestamp when the electronic signature request was last updated."},"sign_link":{"type":"string","format":"uri","description":"Link for the individual to access and sign the electronic document."},"audit_trail":{"type":"object","properties":{"files":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the electronically signed file."},"name":{"type":"string","description":"Name of the electronically signed document."},"sha256":{"type":"string","description":"SHA256 hash of the electronically signed document."},"revisions":{"type":"array","items":{"type":"object","properties":{"reason":{"type":"string","description":"Reason for the revision of the electronically signed document."},"sha256":{"type":"string","description":"SHA256 hash of the revision."},"timestamp":{"type":"boolean","description":"Indicates whether the revision has a timestamp."},"certificate":{"type":"object","properties":{"dn":{"type":"string","description":"Distinguished Name in the electronic signature certificate."},"content":{"type":"string","description":"Content of the electronic signature certificate."},"country":{"type":"string","description":"Country in the electronic signature certificate."},"lastname":{"type":"string","description":"Last name in the electronic signature certificate."},"firstname":{"type":"string","description":"First name in the electronic signature certificate."},"generatedAt":{"type":"string","format":"string","description":"Timestamp when the electronic signature certificate was generated."}}},"reason_source":{"type":"string","description":"Source of the reason for the revision in the electronic signature."}}}},"contentType":{"type":"string","description":"Content type of the electronically signed document."},"consentProcesses":{"type":"array","items":{"type":"string","description":"Consent processes related to the electronically signed document."}}}}},"member":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the member involved in the electronic signature."},"ip":{"type":"string","description":"IP address of the member involved in the electronic signature."},"email":{"type":"string","description":"Email address of the member involved in the electronic signature."},"phone":{"type":"string","description":"Phone number of the member involved in the electronic signature."},"lastname":{"type":"string","description":"Last name of the member involved in the electronic signature."},"signedAt":{"type":"string","description":"Timestamp when the member signed the electronic document."},"firstname":{"type":"string","description":"First name of the member involved in the electronic signature."},"operationLevel":{"type":"string","description":"Operation level of the member in the electronic signature (custom in this case)."},"authentications":{"type":"array","items":{"type":"object","properties":{"mode":{"type":"string","description":"Authentication mode used by the member (sms in this case)."},"sha256":{"type":"string","description":"SHA256 hash of the authentication details."},"channel":{"type":"string","description":"Communication channel used for authentication (text in this case)."},"content":{"type":"string","description":"Content of the authentication message."},"validatedAt":{"type":"string","description":"Timestamp when the authentication was validated."}}}}}},"procedure":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the electronic signature procedure."},"name":{"type":"string","description":"Name of the electronic signature procedure."},"createdAt":{"type":"string","format":"string","description":"Timestamp when the electronic signature procedure was created."},"expiredAt":{"type":"string","description":"Timestamp when the electronic signature procedure expired (null if not expired)."},"startedAt":{"type":"string","format":"string","description":"Timestamp when the electronic signature procedure started."},"workspace":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the workspace associated with the procedure."},"name":{"type":"string","description":"Name of the workspace associated with the procedure."}}},"description":{"type":"string","description":"Description of the electronic signature procedure."},"organization":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the organization associated with the procedure."},"ip":{"type":"string","description":"IP address of the organization associated with the procedure."},"name":{"type":"string","description":"Name of the organization associated with the procedure."}}},"coolingOffPeriodEndsAt":{"type":"string","description":"Timestamp when the cooling-off period ends (null if not applicable)."}}},"consentProcesses":{"type":"array","items":{"type":"string","description":"Consent processes related to the electronic signature procedure."}}}}}}}},"success":{"type":"boolean","description":"Indicates whether the electronic signature operation was successful."},"message":{"type":"string","description":"A message related to the electronic signature operation."},"error":{"type":"object","description":"Error details related to the electronic signature operation."}}},"examples":{"json":{"summary":"Audit trail in JSON format","value":{"data":{"111111e9-a48d-4a59-b256-111111fc7e6b":{"firstname":"franco","lastname":"rossi","email":"prova@gmail.com.com","phone":"+39333333333","status":"done","position":1,"createdAt":"2024-02-13T11:03:40+01:00","updatedAt":"2024-02-13T11:04:13+01:00","sign_link":"https://staging-app.yousign.com/procedure/sign?members=/members/173900e9-a48d-4a59-b256-66843afc7e6b&signatureUi=/signature_uis/1111111-****-4fee-994b-2222222222","audit_trail":{"files":[{"id":"111111111-25c2-481e-8156-********","name":"The best name for my file.pdf","sha256":"akjsgafakjsfakjfaldhgaslòdfkagòfag141ògfaòfsgasfk","revisions":[{"reason":"Signed by Franco Rossi","sha256":"54e150d9030a4ba8f2f4a2f33e46c916a3ecc6e7ecc55c81bfefcce975273b17","timestamp":false,"certificate":{"dn":"CN=[TEST] YOUSIGN cachet, C=FR, O=YOUSIGN, 2.5.4.97=NTRFR-794513986, OU=002 794513986, serialNumber=2023-10-02 09:28:10:989","content":"-----BEGIN CERTIFICATE-----\nMIIHGTCCBQGgAwIBAgIIDPL2eNqLfaowDQYJKoZIhvcNAQELBQAwgYExKTAnBgNV\nBAMMIFlPVVNJR04gU0FTIC0gUVVBTElGSUVEIFNFQUwyIENBMRcwFQYDVQQLDA4w\nMDAyIDc5NDUxMzk4NjEUMBIGA1UECgwLWU9VU0lHTiBTQVMxGDAWBgNVBGEMD05U\nUkZSLTc5NDUxMzk4NjELMAkGA1UEBhMCRlIwHhcNMjMxMDAyMDcxODExWhcNMjYx\nMDAyMDcxODExWjBZMR4wHAYDVQQDDBVbVEVTVF0gWU9VU0lHTiBjYWNoZXQxEDAO\nBgNVBAoMB1lPVVNJR04xGDAWBgNVBGEMD05UUkZSLTc5NDUxMzk4NjELMAkGA1UE\nBhMCRlIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDr5vXSGOS7ulB7\nY3JsL3lvdXNpZ25zYXNxdWFsaWZzZWFsY2EuY3JsMDugOaA3hjVodHRwOi8vY3Js\nMy55b3VzaWduLmZyL2NybC95b3VzaWduc2FzcXVhbGlmc2VhbGNhLmNybDAdBgNV\nHQ4EFgQUPoTlZv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pZ25z\nYXNyb290MmNhLmNybDAdBgNVHQ4EFgQUZcQVpO5GVb7OvXVHwDRARhwa+5EwDgYD\nVR0PAQH/BAQDAgEGMA0GCSqGSIb3DQEBCwUAA4ICAQCuxOXQDSYF0RpYQWonRDlU\nZ64IaGJ5buU4tGzf7rAgIQdXbO/VjjfF9UsjnLopNwWkuSJvINm21obYHcoSwvpz\nlwS/3uJCLxaw5q4SVJ4x5rajh/2qtFzcThSh48rcXcqoxAmc6BzQuIOm9cFUD2Ri\nqUJmg5O+CoLuE1b4i+CsCFL3AoWnBHFZ4YtInQBFIRBhMNPICvYOCF6jjgmMxkWU\nM8SEp7FSFfsy/oPI1dt+k9JjHCXhtWO9ndLvvwvLcjqRO3ItiF9IazsNcNLhaIMA\nlvYiQ+jLpckAuTxj7XHQyJSEofTMPr+ZSgQwUc337MJyxPhTDkch5cQBfnC20Usk\nyjdwwaeiwnNMhESwgDa4Oqw5IOmq+VmqtR+9F9yxACrpyph593F1zYwv7ikik5dI\nIYACb2fKLQrcnCfhm0k1Nt9UXoc9mQzFUK0DWJNLeGJo0rfRQh5ZqhcBG2U0KZFQ\nRtQQEf3zXJxQJGlCn1UMZMJswAzfhMTdGPNzyDI2u+9Q8WT7M2f59Idiae2m79uG\nuStRwN7Vnrpa399YXixOpNTz6d0NFBOAq1Nfwy5cnQDCnT9JkrKidrFKyA21b67m\nSfJIpMSPfFbt3g0h7JPWK7OC4Ydydh92e7/IUhtkudKMoazlwSJ7484dE7NyTpol\n62H0sW/1gmFzE6/QmCUR+w==\n-----END CERTIFICATE-----\n","country":"IT","lastname":null,"firstname":null,"generatedAt":"2023-10-02T09:28:11+02:00"},"reason_source":"Default value added by Yousign"}],"contentType":"application/pdf","consentProcesses":[]}],"member":{"id":"111111111-25c2-481e-7156-********","ip":"00.111.111.111","email":"prova@gmail.com.com","phone":"+39333333333","lastname":"ROSSI","signedAt":"2024-02-13T11:04:13","firstname":"Franco","operationLevel":"custom","authentications":[{"mode":"sms","sha256":"adfaDFADFASDFASDFASDFASDFWEEWQFSDAFADSFASafaedvafafeae","channel":"text","content":"eSIGNATURE: {{code}} is your security code to confirm the signature of your documents.","validatedAt":"2024-02-13T11:04:12"}]},"procedure":{"id":"6f89bd7d-2409-4e4a-8676-942834249539","name":"A test prova","createdAt":"2024-02-13T11:03:40","expiredAt":null,"startedAt":"2024-02-13T11:03:40","workspace":{"id":"/workspaces/d27e41f8-24f1-439d-a0ef-be6aae15fa44","name":"openapi.it"},"description":"A test description","organization":{"id":"/organizations/0a85ecfa-cfad-4290-af81-1c68c0222c99","ip":"1.11.111.111","name":"openapi.it"},"coolingOffPeriodEndsAt":null},"consentProcesses":[]}}},"success":true,"message":"","error":null}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","example":"Invalid id"}}}},"404":{"description":"Wrong ID or file not ready","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"error":{"type":"integer"},"data":{"type":"object"},"trace":{"type":"string"}},"example":{"success":false,"message":"missing or invalid ID, required","error":470,"data":null,"trace":"WyJpbmRleC5waHBAMTE3OCIsImNsYXNzLkF2V3MucGhwQDI0MiIsImluZGV4LnBocEAxNDM5Il0="}}}}}},"security":[{"bearerAuth":[]}]}},"/firma_elettronica_ui":{"post":{"tags":["Firma elettronica"],"deprecated":true,"summary":"[DEPRECATED] Create a custom UI for e-signatures","description":"**This endpoint is deprecated and no longer supported**.","requestBody":{"content":{"application/json":{}}},"responses":{"200":{"description":"","content":{}},"400":{"description":""}},"security":[{"bearerAuth":[]}]},"get":{"tags":["Firma elettronica"],"deprecated":true,"summary":"[DEPRECATED] List all your custom UIs","responses":{"200":{"description":"","content":{"application/json":{}}},"400":{"description":""}},"security":[{"bearerAuth":[]}]}}},"externalDocs":{"description":"First time here? Generate a new access token","url":"https://console.openapi.com/oauth"}}