Integrating Gravity with Your Application
Integrating Gravity into your application is a quick 3-step process:
- Get Your API Keys: Obtain your correspondent-specific API keys on the Gravity portal.
- Generate an Access Token: With your API keys in hand, generate an access token for your correspondent. After generation, include it in the HTTP header for all subsequent requests.
- Make Requests: Make a test request to make sure everything is set up correctly.
Example Request
POST
/v1/auth/tokencurl -X POST 'https://api.sandbox.gravity.markets/v1/auth/token' \
-H 'Content-Type: application/json' \
-d '{ "apiKey": "YOUR-API-KEY" }'
Success Response
JSON
200 OK{
"token": "eyJhbG"
}