Authentication
Who Even are You 🤨
Most of our API request, queries, and mutations require authentication. Authentication is how we identify your user account to ensure that you can access certain resources. NatML relies on API access keys for authentication:
To start, you can retrieve your access key from your Profile page on NatML Hub:
Profile - NatML
Retrieve your access key.
With your access key, you can now authenticate any request to our API:
Our API supports several different authentication schemes for convenience. The all rely on using your access key:
Queries and mutations to our Graph and REST APIs are authenticated using your access key as the bearer token:
curl https://api.natml.ai/graph
-H "Authorization: Bearer {ACCESS_KEY}"
Requests to our REST APIs can also be authenticated using your access key with basic authentication:
curl https://api.natml.ai/user
-u {ACCESS_KEY}:
The Graph API does not support BASIC authentication.
Last modified 6mo ago