DTM docs
HomeDor Traffic MinerMetagraphDTM AppMarketingAPI
API
API
  • Overview
  • Authentication
    • Basic Auth
    • Manually Creating Basic Auth Headers
  • Response Format
    • Successful Responses
    • Error Responses
  • Pagination
  • Datetimes
    • Datetime Formats
    • Datetimes Grouped by Local Time Zone
  • Rate Limiting
  • Syncing Data
    • Asynchronous Data
    • Querying by Update Timestamp
  • Data Validity
    • Validity
    • Completeness
  • Endpoints
    • Organizations
      • GET /organizations
      • GET /organizations/{org_id}
    • Locations
      • GET /locations
      • GET /locations/{location_id}
      • GET /locations/{location_id}/devices
      • POST /locations
      • DELETE /locations/{location_id}
    • Devices
      • GET /devices
      • GET /devices/{serial_number}
      • PUT /devices/{serial_number}
      • POST /devices/{serial_number}/install
      • POST /devices/{serial_number}/uninstall
      • GET /uninstalled-devices
    • Foot Traffic
      • GET /foot-traffic/locations
      • GET /foot-traffic/devices/{serial_number}
    • Schemas
      • Organization
      • Location
      • Address
      • Device
      • LocationMetric
      • Foot Traffic
Powered by GitBook
On this page
  1. Authentication

Basic Auth

PreviousAuthenticationNextManually Creating Basic Auth Headers

Last updated 1 year ago

Basic Auth Request using cURL

curl https://api.getdor.com/dtm-api/v1/locations \
-u tm_8hHhG7gf9shhd:0ShG8gLReppO9Vm74PUSyesec87EhH;

Or...

curl https://tm_8hHhG7gf9shhd:0ShG8gLReppO9Vm74PUSyesec87EhH@api.getdor.com/dtm-api/v1/locations

The DTM API requires authentication on every endpoint using over HTTPS.

Basic auth credentials should be sent in the format of ORG_ID:API_Key in place of Username:Password. Credentials must be sent with every request.

Cross-Organization Endpoints

Some endpoints are cross-organization and do not require the ORG_ID value. Authentication for these endpoints should be sent with an empty string value for ORG_ID in the format :API_KEY

HTTP Basic Auth