Authentication
To access the Ungage API and initiate requests successfully, you'll need to reference your API Token with each API call you make to our servers. Your API Token serves as a unique identifier, allowing our system to authenticate and authorize your requests.
Your API Key is a sensitive piece of information that should be handled like a password. In the event that your API Key is compromised or you suspect unauthorized access, please IMMEDIATELY perform a reissue of the key from the Ungage Dashboard
RECOMMENDED METHOD ↓
Adding an Authorization Header to the Request
The recommended way to authenticate your API requests is to pass an Authorization Header to the request. An example of this is shown below using cURL:
Example cURL Request using Query String ↓
curl https://api.ungage.io/v1/marketdata/stocks \
-H "Authorization: Bearer {token}"
SECONDARY METHOD ↓
Passing the Token in a Query String
If you're unable to provide an Authorization Header, you can also pass your API key in the query string as follows:
Example cURL Request using Authorization Header ↓
curl https://api.ungage.io/v1/marketdata/stocks?ungageToken={token}