Link

Authentication

All API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication will also fail.

Clientside

APIs are CORS enabled and can be called from Client side. API calls are authenticated by account key, when called from valid domains. You can view and manage your Account keys and whitelist domains in the Accesstype Dashboard at Settings -> General.

$ curl -H "Origin: https://example.com" "https://www.accesstype.com/api/v1/subscription_groups.json?key=<account-key>"

Serverside

The Accesstype APIs use API keys to authenticate requests. You can view and manage your API keys in the Accesstype Dashboard.

Your API keys carry many privileges, so be sure to keep them secure! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.

Authentication to the APIs is performed using HTTP header X-SUBAUTH. Provide your API key as the value to X-SUBAUTH header.

$ curl -H "X-SUBAUTH: <api-auth-key>" https://www.accesstype.com/api/v1/subscription_groups.json