1
Get your credentials
In the Portal, create a client and copy its client ID and client secret. See
API credentials.
2
Exchange them for an access token
POST to the token endpoint with grant_type=client_credentials. Request the scopes you need —
result report to read results.Response
3
Call the API with the token
Your account context (customer and clinic) is resolved from the credentials — you never pass those
ids in a request body. Access tokens are short-lived (about 1 hour); request a new one when it
expires (cache and reuse it until then rather than fetching one per request).
Webhook management and delivery verification
Webhooks are enabled per account. Manage your webhook endpoints with your existing OAuth client; you do not need a second client. Request the access token withalgorithm=RS256: the webhook management API rejects tokens signed with any other algorithm with
401. An endpoint covers every order of your clinic, including all its providers and
Portal-created orders.
When you create an endpoint, Vibrant returns its signing secret (whsec_…) once. Store it
securely and use it to verify the signature on incoming events. The secret grants no API access, is
never sent in event requests, and is independent of access-token renewal; rotate it through the
management API when needed.
Continue using an access token with the result report scopes when you retrieve the report for an
event. See Authentication for the management API
and Verify the signature.
Third-party payment authorization
WIP — coming soon. Platform-paid orders use an additional signed payment authorization.
This contract may change; confirm environment availability with Vibrant before testing.
POST /orders with chargeIndicator: "T", keep the provider’s access token in
Authorization. Add a fresh RS256 JWT signed by your platform in X-Payment-Authorization
and your issued platformId in the body. The provider token identifies whose order it is;
the platform JWT authorizes payment by the platform.
The platform JWT goes directly on each order request. There is no platform client secret or
platform token exchange. See Third-party payment for setup,
JWT claims, and a complete request example.
Scopes
Catalog, quote, patient, and order calls don’t require a scope; request
result report when you’ll
retrieve results — on the same client. Scopes are permissions of your one client, managed in
API credentials; you never need a separate credential to read results.
Environments
A token issued by one environment is not valid in the other. See Environments.
Keep your secret safe
- Store the client secret in a secret manager — never in source control or client-side code.
- Use staging credentials for development; reserve production for live orders.
- Rotate credentials periodically and immediately if one may be exposed. See API credentials.