Retrieve data collected

Now that you have received your Access_token, you are ready to start using the Product endpoints of the Deck API. As an example let us explore the /identity/get endpoint. which returns all account holder information on file with the data source including names, emails, phone numbers and addresses.

Sandbox Request

curl -X POST "https://sandbox.datadeck.co/api/v1/identity/get" \
 -H "accept: application/json"\
 -H "content-type: application/json"\
 -H 'x-datadeck-client-id: ***Your client id***' \
 -H 'x-datadeck-secret: ***Your secret***' \
 -d '{ "access_token": "access-sandbox-11d7f130-7588-4a31-753c-08dc0b1caad7" }' 

Response

{
  "accounts": [
    {
      "owners": [
        {
          "names": [
            "John Doe"
          ],
          "emails": [
            {
              "data": "[email protected]",
              "type": "primary",
              "primary": true
            }
          ],
          "phone_numbers": [
            {
              "data": "1112223333",
              "type": "mobile",
              "primary": false
            }
          ],
          "addresses": [
            {
              "city": "MONTREAL",
              "country": "CA",
              "postal_code": "H0H 0H0",
              "region": "QC",
              "street": "123 MAIN STREET"
            }
          ]
        }
      ],
      "account_number": "987654321",
      "account_id": "30e8dabe-dd51-4b90-84ea-ec66bc9cd2ff"
    }
  ],
  "source_name": "Hydro Québec",
  "source_type": "Energy",
  "source_country": "CA",
  "user_number": "123456789"
}

And this brings us to the end of the Quickstart. You are ready to start exploring the rest of the endpoints and be sure to check out the rest of the documentation.