Do you want an overview of our solutions, customer cases and contact details?


Skip to end of metadata
Go to start of metadata

This article describes how to use the PDF Signing API to get the status for a specific signing request and to fetch the actual PDF document. 


Expand/Collapse All

Get information for specific request

To get information for one specific request, use the method GET /request/{id}.

 Example: Get information for specific request
Example: Get information for specific request including documents
Authorization: Bearer <access token>
GET /request/123?includeDocs=true
Response
{
  "id": "123",
  "name": "Request 1",
  "description": "First request",
  "created": 1525843503909,
  "state": "IN_PROGRESS",
  "signatures": [{
    "signer" : "signer.second@example.com",
    "signed": false,
    "method": "SE_BANKID"
  }],
  "documents": [{
    {
      "name": "API.pdf",
      "data": "string"
 }]
}
Example: Get information for specific request, no documents included
Authorization: Bearer <access token>
GET /request/123?includeDocs=false
Response
{
  "id": "123",
  "name": "Request 1",
  "description": "First request",
  "created": 1525843503909,
  "state": "IN_PROGRESS",
  "signatures": [{
    "signer" : "signer.bankid@example.com",
    "signed": false,
    "method": "SE_BANKID"
  }]
}

Get information for all requests

To get information for all requests created by the current client ID, use the method GET /request.

 Example: Get information for all requests
Example: Get information for all requests
Authorization: Bearer <access token>
GET /request
Response
[{
  "id": "123",
  "name": "Request 1",
  "description": "First request",
  "created": 1525843503909,
  "state": "IN_PROGRESS",
  "signatures": [{
    "signer" : "signer.second@example.com",
    "signed": false,
    "method": "SE_BANKID"
  }]
}, {
  "id": "124",
  "name": "Request 2",
  "description": "Second request",
  "created": 1525843503919,
  "state": "COMPLETED",
  "signatures": [{
    "signer" : "signer.second@example.com",
    "signed": true,
    "signedAt": 1525843503929,
    "method": "PM"
  }]
  }
]