Request All Documents for Your Account


Sometimes, you'd want to capture all of the documents requested by your API. This endpoint would allow you to search and get a list of all documents and their document_id. We would recommend not using this more than once or twice a day.


Endpoint

Method URI Headers
GET /client/search/document api_token

{success} If the API has been authenticated, the response are all the document that business account has uploaded.

Sample Response

{info} Possible responses are success, unauthenticated or fail.

Code 200

{
  "data": [
    {
      "uuid": "F6B9CA30-0EEB-11EB-A303-2FB266D890C1",
      "file": "77f87a5e791bc4e8c577e4757e026441.pdf",
      "title": "ps1583.pdf",
      "notarized_url": null,
      "completed": false,
      "conference": false,
      "completed_on": null,
      "signers": {
        "notary_url": "https://app.onlinenotary.net/sign/u/check-system-requirements/F7D37E00-0EEB-11EB-A9C8-09DDB2EF5200",
        "fullname": "John Doe",
        "email": "[email protected]",
        "turn": 1,
        "tech_check": 0,
        "signer_verified": 0,
        "signature_picked": 0,
        "id_scan": 0
      }
    }
  ]
}

{danger} Error response Unauthenticated

Please check your API Key.

Code 400

{
    "success": false,
    "error": {
        "code": 0,
        "message": "Unauthenticated."
    }
}

PHP Code Sample

    $client = new Client();
    $api_key = 'api_key';
    $url = 'https://production.onlinenotary.net/api/v1/client/search/document';        
    $response = $client->request('GET', $url , 
        ['auth' => [
            null,
            $api_key
        ],
    ]);

Live Demo