Skip to main content
Before TruEnroll can deliver events, you register the HTTPS endpoint that should receive them. You can do this yourself through the Partner API. Once an endpoint is registered, TruEnroll posts an event to it each time a processing stage completes or fails. For the shape of the events you’ll receive and how to handle them, see Webhooks.

Register an endpoint

This endpoint is also available at /v1/webhook-config. Both paths accept the same request; use whichever fits your integration. The examples below use the Partner API path.

Request fields

string
required
The HTTPS URL TruEnroll will POST events to. Must be reachable from the public internet.
string
required
A secret you choose, at least 20 characters. TruEnroll sends it back as the x-api-key header on every delivery, so your endpoint can confirm each request genuinely came from TruEnroll. Treat it like a password and store it in a secret manager.
string
default:"partner"
On the Partner API this defaults to partner, so the endpoint receives case events. You normally don’t need to set it.
string
An optional human-readable label for the endpoint, useful when you register more than one.

Response

string
The unique ID of the registered webhook configuration.

How the secret is used

The apiKey you supply is a shared secret between you and TruEnroll. On every webhook delivery, TruEnroll includes it as the x-api-key request header. Your endpoint should compare that header against the value you registered and reject the request if it doesn’t match. See Authenticating webhook requests for the verification snippet.

Managing endpoints

List, inspect, update, and remove your registered endpoints with the same x-api-key auth. The shared apiKey secret is never returned in any response.

List endpoints

Fetch a single endpoint with GET /partner/v1/webhook-config/{id}.

Update or rotate the secret

Send only the fields you want to change. To rotate the shared secret, pass a new apiKey (remember to update your endpoint’s stored value at the same time).

Delete an endpoint

A deleted endpoint stops receiving events immediately and returns 204 No Content. Its URL becomes available to register again.

Notes

  • HTTPS is required. The header is sent on every request, so the endpoint must be served over TLS to keep the secret private.
  • One active URL per organization. Each endpoint URL can be registered once. Registering a URL that is already active returns 409.
  • Multiple endpoints are allowed. Register different URLs (for example, separate staging and production endpoints) by calling the endpoint once per URL.

Errors

Webhook events

Every event name, payload, delivery behavior, and how to verify incoming requests.