# Using Basic Auth
curl https://api.middesk.com/v1/businesses \
  -u mk_live_50e41b726c05c15cbf8bc13f:

# Using Bearer Auth
curl https://api.middesk.com/v1/businesses \
  -H 'Authorization: Bearer mk_live_50e41b726c05c15cbf8bc13f'

Authentication to the API using API keys is generally performed via HTTP Basic Auth. Provide the API key as the basic auth username value. No password is required.

Bearer authentication is supported as well, in which case you can pass a header value as Authorization: Bearer mk_live_4eC39HqLyjWDarjtT1zdp7dc.

All API requests should be made over HTTPS.