Account setup and authentication
How to get Vantage API access, authenticate your requests, and configure the webhook endpoint that receives order and result updates.
Vantage API onboarding is currently done manually. In short:
Contact the Terra API team (or your existing Terra contact) to request access.
Vantage is enabled on your Terra credentials - sandbox first. (New to Terra API? You'll receive a
dev-idand API key as part of onboarding.)Configure your webhook endpoint (below) and start building in sandbox. Commercial terms and production access are arranged when you are ready to go live (see Going to production).
Authentication
Vantage API uses your standard Terra API credentials - the same dev-id and API key you use with other Terra API products (visible in your Terra dashboard). You can present them in either of two ways:
Option 1 - HTTP Basic auth (recommended). Username = your dev-id, password = your API key:
curl 'https://vantage-sandbox.tryterra.co/api/v1/products' \
-u 'YOUR_DEV_ID:YOUR_API_KEY'curl -u builds the header for you. If your HTTP client does not, base64-encode dev-id:api-key yourself and send it as Authorization: Basic <encoded>:
echo -n 'YOUR_DEV_ID:YOUR_API_KEY' | base64
# then send: Authorization: Basic <output of the command above>Option 2 - header pair. The same dev-id + x-api-key headers used across Terra API:
curl 'https://vantage-sandbox.tryterra.co/api/v1/products' \
--header 'dev-id: YOUR_DEV_ID' \
--header 'x-api-key: YOUR_API_KEY'Both are accepted on every authenticated endpoint. A wrong or unknown credential returns 401; a suspended account or an account without Vantage access returns 403. See Errors.
Configure your webhook endpoint
Order and result progress is delivered to a single HTTPS webhook URL per environment (sandbox and production each hold their own). Set it once during setup:
Notes:
The URL must be HTTPS. Sending an empty string (
"") clears it, which stops webhook delivery.GET /api/v1/clients/webhook-urlreturns the currently registered URL for the environment you call it on.Webhooks are signed; verify the signature on every delivery. See Webhooks.
Once your webhook endpoint is configured, you are ready for Ordering your first test.
Last updated
Was this helpful?