API

Authentication

Overview

All API requests must include a valid API key sent in the X-API-Key HTTP header.

$ curl -H 'X-API-Key: {api_key}' \
       https://api.dropmark.com/v1/ping

All requests must be made over HTTPS. Calls made over plain HTTP will be ignored.

User authentication

Most API requests also require user authentication, which is performed via HTTP Basic Auth. Provide your the user ID as the basic auth username value, and user’s auth token as the password. Auth tokens can be obtained via the /auth endpoint.

$ curl -H 'X-API-Key: {api_key}' \
       -u '{user_id}:{user_token}' \
       https://api.dropmark.com/v1/collections