Help Center
Login Sign up
  1. Home
  2. API reference
  3. API documentation (JSON/XML)
  4. Tasks
  5. Contact document tasks

Contact document info (download)

API reference (XML/JSON) · Updated 2023-09-27

Function

The ContactDocumentInfo task determines the data and content of a document for a given contact and document type.

Description

Route:  GET /contact/{id}/document/{type}
No body needs to be sent with.

{
}
{
    "stid": "20210520-app-9059",
    "status": {
        "code": "S0364",
        "text": "The document for the contact has been successfully inquired.",
        "type": "SUCCESS"
    },
    "data": [
        {
            "created": "2021-05-20T12:30:00.000+0200",
            "updated": "2021-05-20T14:30:00.000+0200",
            "contact": {
                "id": 6346
            },
            "document": {
                "created": "2021-05-20T12:30:00.000+0200",
                "updated": "2021-05-20T12:30:00.000+0200",
                "id": 23433,
                "comment": "owner:1",
                "type": "contactDocument",
                "mimeType": "application/pdf",
                "data": "PGNvbnRlbnQ+Sl ... 9PC9jb250ZW50Pg==",
                "size": 112,
                "name": "document.pdf"
            },
            "type": "IDCARD",
            "verification": "NOT_SET",
            "expire": "2023-05-20T12:30:00.000+0200"
        }
    ]
}

cUrl example

curl -v --request GET 'https://gateway.autodns.com/v1/contact/12345678/document/id_card' --header 'X-Domainrobot-Context: 4' --header 'Content-Type: multipart/form-data' --user 'exampleuser:examplepassword'