Skip to main content

Authentication

You need to authenticate your requests to access any of the endpoints in the Datamagnet API. This guide explains how authentication works. Datamagnet uses bearer tokens to authenticate your API requests.

Authentication with bearer token

The recommended way to authenticate with the Datamagnet API is by using OAuth2. When you establish a connection using OAuth2, you need your access token — you can find it in the Datamagnet dashboard → API Keys. Here’s how to add the token to the request header using cURL:
Example request with bearer token
Always keep your token safe and reset it if you suspect it has been compromised.