Clients
The currently registered webhook destination for this environment ("" when none).
Authenticate with your Terra API credentials: username = your Terra
dev-id, password = your Terra API key — the same credentials used for
every other Terra API. The header pair dev-id + x-api-key is also
accepted. Suspended credentials receive 403; accounts without the
Vantage entitlement receive 403 once entitlement enforcement is
enabled.
Current destination
client_abc123cust_xyz789https://your-domain.com/webhooks/terraInternal server error
GET /api/v1/clients/webhook-url HTTP/1.1
Host: vantage.tryterra.co
Authorization: Basic username:password
Accept: */*
{
"client_id": "client_abc123",
"customer_id": "cust_xyz789",
"webhook_url": "https://your-domain.com/webhooks/terra"
}Update or clear the webhook URL for the authenticated client. The webhook URL must use HTTPS if provided, or can be empty to clear it. Note this means webhooks will no longer be sent to your previous endpoint.
Deliveries to your endpoint carry an X-Terra-Signature header of the form t=<timestamp>,v1=<hex-hmac> where t is the send time in Unix seconds and v1 is HMAC-SHA256(secret, t + "." + payload) — the same scheme as all Terra webhooks. Verify by recomputing the HMAC from the received t and the raw body.
Authenticate with your Terra API credentials: username = your Terra
dev-id, password = your Terra API key — the same credentials used for
every other Terra API. The header pair dev-id + x-api-key is also
accepted. Suspended credentials receive 403; accounts without the
Vantage entitlement receive 403 once entitlement enforcement is
enabled.
https://your-domain.com/webhooks/terraWebhook URL updated successfully
client_abc123cust_xyz789https://your-domain.com/webhooks/terraBad request - invalid URL format or validation error
Unauthorized - invalid client credentials
Client not found
Internal server error
PATCH /api/v1/clients/webhook-url HTTP/1.1
Host: vantage.tryterra.co
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 56
{
"webhook_url": "https://your-domain.com/webhooks/terra"
}{
"client_id": "client_abc123",
"customer_id": "cust_xyz789",
"webhook_url": "https://your-domain.com/webhooks/terra"
}Last updated
Was this helpful?