Skip to main content

Environments & Credentials

Configure partner environments and server-side credentials securely.

Audience: Partner developers, platform engineers, security teams, and QA teamsLast Updated: October 2, 2026

Travel Insured provides account-specific environment values, access policy, and credentials through the secure onboarding channel. Use only the values assigned to your account and environment.

Configuration Values

ValuePurposeSourceHandling
graphqlBaseUrlGraphQL service endpointTravel InsuredConfigure the assigned HTTPS value separately per environment
productQuoteApiBaseUrlProduct Quote Card token and quote API base URLTravel InsuredUse only for an enabled embedded quote integration
productQuoteCardScriptUrlVersioned Product Quote Card browser bundleTravel InsuredLoad only from the assigned HTTPS origin and apply the approved CSP
paymentAppBaseUrlEmbedded payment session API and hosted widget base URLTravel InsuredUse only for an enabled staged embedded-payment integration
agencyNumberPartner agency attributionTravel InsuredKeep in environment-specific server configuration
agentIdAgent attribution for applicable requestsTravel InsuredTreat as optional unless assigned and required for the account
Allowed partner originsBrowser origins authorized for an enabled embedded componentPartner and Travel InsuredRegister exact HTTPS origins; do not use wildcard production origins

Do not infer production hosts from sandbox names. Travel Insured supplies each enabled endpoint, component URL, origin policy, and account capability through onboarding.

Partner Credentials

CredentialContractHandling
apiTokenAuthorization: ApiKey {apiToken} for server-to-server partner API callsSensitive; approved server-side secret store only
accessKeyx-api-key: {accessKey} for server-to-server partner API callsSensitive; approved server-side secret store only

Product Quote Card browser requests use only the short-lived embedToken issued by the partner backend. The long-lived partner credentials must never be returned to the browser. Separate sandbox and production credentials, restrict access by environment, and rotate them through the approved Travel Insured process.

Runtime Identifiers

Runtime identifiers come from successful API responses or approved browser handoffs; they are not environment configuration.

IdentifierSourceUse
embedTokenEmbed-token endpointShort-lived authorization for the enabled browser component
quoteNumberQuote responseRe-rate, selection, purchase, and support correlation
productId, productCodeQuote responseSelect only a product returned for the current quote
productCoverageId, productCoverageLimitIdQuote responseSubmit only response-derived coverage selections supported by the downstream contract
planGuidPurchase staging responseCreate an embedded payment session for the staged purchase
modificationPlanGuidModification staging responseFinalize only an enabled zero-amount staged modification; do not use with the purchase payment-session endpoint
paymentSessionIdEmbedded payment-session responseMount the widget and poll authoritative purchase status from the backend
planNumberDirect result or Bound payment-session statusSearch, display, and servicing after authorization

Persist identifiers on the trusted server only for their documented lifetime and purpose. Scope them to the authenticated user, partner tenant, environment, and workflow. Browser-provided identifiers remain untrusted.

Sample Data

Use synthetic names, contact details, addresses, trips, policies, and payment values approved for the target environment. Documentation dates are examples, not configuration. Replace them with valid future ISO YYYY-MM-DD dates while preserving the required ordering. Never copy production customer or card data into sandbox requests, logs, screenshots, or evidence packages.

Configure and Connect

  1. Obtain sandbox access from Travel Insured.
  2. Store apiToken and accessKey in an approved server-side secret store.
  3. Configure only the assigned sandbox API and enabled component URLs; keep production configuration separate.
  4. Prepare synthetic data with valid future ISO YYYY-MM-DD dates.
  5. Send the documented connectivity request from your backend or preferred API client.
  6. Confirm the response without logging credentials or sensitive payloads.
  7. Continue through the prescribed online workflow using synthetic data.

Validation

  • Confirm the endpoint uses HTTPS.
  • Confirm secrets are absent from source, browser bundles, logs, analytics, and test artifacts.
  • Confirm failures do not echo header values.
  • Confirm each environment has separate configuration.
  • Escalate any credential exposure through the approved security incident process.

Continue with Quote to Purchase and Testing & Certification Readiness.

Still need help?

Reach out to your account manager for support.