Syntage entity onboarding
Implement, review, or troubleshoot Syntage entity onboarding in a customer application. Use for the hosted onboarding URL, embedded onboarding script, organization slug, SAT or Buró de Crédito onboarding, sandbox onboarding, browser events, error handling, Content Security Policy, React or Next.js integration, script lifecycle, or production onboarding readiness.From its SKILL.md
npx -y skills add syntagecom/skills --skill syntage-entity-onboardingAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
5.0 KB, as published. Nobody here has run it
Integrate Syntage Entity Onboarding
Embed Syntage's entity onboarding flow in an application and validate it with sandbox before enabling live credential or authorization collection.
Apply the safety boundary
- Default to
https://onboarding.sandbox.syntage.com/script.min.jsand simulated sandbox flows. - Select the environment with the script URL. Do not assume an optional
data-sandboxattribute, display flag, or API configuration changes the onboarding script's backend environment. - Do not enter, request, record, or expose real end-user credentials or authorizations in sandbox, chat, fixtures, screenshots, telemetry, or logs.
- During development, use only an
onboardingUrlreturned by the sandbox API. Before opening it, verify that its origin matches the documented sandbox onboarding origin, currentlyhttps://onboarding.sandbox.syntage.com; reject unexpected origins and do not rewrite URLs to switch environments. - Only configure the production script when the user explicitly asks for production preparation. Verify a production
onboardingUrlagainst the documented production origin, currentlyhttps://onboarding.syntage.com, and get explicit confirmation immediately before opening it, opening another live onboarding flow, or submitting real data. - Treat the
data-keyorganization slug as configuration, not as an API key. Keep actual secrets out of browser code.
Follow the integration workflow
1. Choose the onboarding experience
- Use the entity's documented
onboardingUrlwhen a Syntage-hosted redirect is sufficient. Obtain it from the explicitly selected API environment; never reuse it across environments. - Use the embedded script when onboarding must stay inside the customer's application.
- Confirm whether the application needs SAT, Buró de Crédito, or both before implementing the launch action.
2. Verify the current contract
- Read Embedding Entity Onboarding before writing the integration.
- Confirm the current script URL,
initoptions, event names, errors, and CSP requirements from that guide instead of relying on a copied example. - If using API-created entities or
onboardingUrl, also consult Entities and the relevant API reference page.
3. Load the sandbox script
- Add one asynchronous script with ID
syntage-onboarding-id, the sandbox source URL, and the organization's slug indata-key. - In React, Next.js, or another single-page application, prevent duplicate script elements and subscriptions. Remove dynamically injected scripts and listeners when their owning component is disposed.
- If
window.syntage.onboardingis not ready, wait forentityOnboardingLoadedbefore initializing. Do not use an unbounded retry timer. - When CSP is present, ensure the guide's documented
https://*.syntage.comsource expression is allowed byscript-srcwhen that directive exists, or bydefault-srcwhen it is the script fallback. Allow the source inframe-srcfor the onboarding frame. Preserve every unrelated directive and source.
4. Initialize and observe the flow
- Call
window.syntage.onboarding.init()with booleansatand/orburoDeCreditooptions matching the requested flow. - Subscribe to
syntage.onboarding.successandsyntage.onboarding.errorbefore the user begins onboarding. - Treat the success callback's
stepas the completed datasource step, not as proof that unrelated requested steps also completed. - Handle the documented error codes
credentialDisabled,credentialInvalid,error, andunknownErrorwithout exposing credential details. - Make repeated launches and event delivery idempotent in the host application's UI state.
5. Prove behavior in sandbox
- Confirm the visible test-mode warning and verify the network requests stay on sandbox hosts.
- Exercise every enabled step, success handling, each recoverable UI error path, script-not-yet-loaded behavior, route remounting, and CSP enforcement.
- Verify the host application records only the minimum operational metadata needed for support.
- Keep screenshots, test fixtures, and logs free of credentials, authorizations, and real taxpayer data.
6. Prepare production handoff
- Make the sandbox and production script URLs explicit environment configuration; do not derive one by ad hoc string replacement at runtime.
- Recheck the current guide, organization slug, CSP, event monitoring, privacy behavior, and customer-facing error copy.
- State the exact live browser action or data submission that remains gated on user confirmation.