Developer Integration Guide
If a term is unfamiliar, open the Glossary.
This guide covers how product teams embed Dralvia into their pipelines (CI, ticketing, custom dashboards, browser tooling).
1. Provision credentials
- Generate a workspace-scoped API key in the portal:
https://dralvia.tech/#/api-keys(it is shown once). - Grant the appropriate Dralvia workspace role for engineers. If you need elevated scopes, open a support ticket.
- Store keys in your secret manager and map them to the environments that call Dralvia (CI, staging, prod).
2. Choose an integration path
Option A: REST + SDKs
Use the SDK guides for the concrete client setup path:
- Sign in and create a workspace API key at
https://dralvia.tech/#/api-keys. - Store it as
DRALVIA_API_KEYand setDRALVIA_BASE_URL=https://dralvia.tech/api/tenant. - Install from the public GitHub source at
https://github.com/Dralvia/dralvia-sdk. - Run a first scan before wiring the client into CI or scheduled jobs.
Start with Python SDK or JavaScript SDK. The examples below show the target shape after setup:
from dralvia_sdk import DralviaClient
client = DralviaClient(base_url="https://dralvia.tech/api/tenant", api_key=os.environ["DRALVIA_API_KEY"])
result = client.scan_url("https://example.com", flags={"save_evidencepack": True})
import { DralviaClient } from "@dralvia/sdk";
const client = new DralviaClient({ baseUrl: process.env.DRALVIA_BASE_URL, apiKey: process.env.DRALVIA_API_KEY });
const swgDecision = await client.evaluateSwg("https://example.com/social");
For copy-paste examples that match the strongest first-user workflows, start with First-User Workflows.
Option B: Postman/Newman
Download the Dralvia Postman collection from the Docs portal and import it into Postman or Newman. Set baseUrl + apiKey, then wire Newman into CI for smoke tests.
Option C: TicketBridge + Webhooks
Use the workspace TicketBridge case-ingest API to POST EvidencePack (Dralvia's exportable evidence report) metadata into your case management tooling. Webhook delivery is supported for customer case-management and source-control integrations.
3. Embed in workflows
| Workflow | Recommended calls |
|---|---|
| CI/CD gate | POST /scan for every domain in your release allowlist; fail the build if risk_level ≥ medium. |
| Browser extension | Use the #/pre-sign APIs to surface DOM intent and Tx simulator data before signing transactions. |
| SWG inline coaching | Call the workspace Web Access Protection evaluate API when the proxy sees an uncategorized URL, then respect action (allow/warn/block) and coaching_message. |
| Email review bots | Feed suspicious content into /email/protect with attachments + HTML body. |
4. Operational tips
- Rate limits: default 5 req/min for anonymous, 60 req/min for authenticated workspaces. Burst via header
X-RateLimit-Remaining. - Retries:
429and5xxresponses are safe to retry with exponential backoff. - EvidencePacks: download via
/evidencepacks/<id>or export CSVs from the admin console for analytics.
5. Sample policy
pipelines:
web2:
command: curl -sS -H "Authorization: Api-Key $DRALVIA_KEY" \
-H "Content-Type: application/json" \
-d "{\"url\": \"${TARGET_URL}\"}" \
"$DRALVIA_BASE/scan"
fail_on_risk_levels: ["high", "critical"]
The SDK package names are not published on the public npm or PyPI registries today. Install from the public GitHub source at https://github.com/Dralvia/dralvia-sdk, or mirror the SDK into your internal package registry, so every team shares the same retries, timeouts, and auth headers.
Who this is for
This guide is for workspace owners, workspace admins, and security operators who need clear, repeatable steps without support intervention for day-to-day execution.
Role-based start here
- Workspace Owner: Start with Before you start, then complete Step-by-step and Known limits and rate limits.
- Workspace Admin: Focus on Step-by-step, What each button does, and API and automation.
- Security Analyst: Start at Day-2 operations and Troubleshooting, then use API error quick reference.
- Integrator/Engineer: Start at API and automation, then validate with Step-by-step and FAQ.
Before you start
Use this short checklist before making changes:
- Confirm you are signed into the correct workspace account.
- Confirm your role includes the permissions needed for this page.
- Confirm your browser session is fresh (if pages behave unexpectedly, sign out/in once).
- Confirm required prerequisites (API keys, agent enrollment, license, upstream integrations) are already in place.
Step-by-step
Follow this sequence for predictable results:
- Open the workspace from the workspace menu.
- Review current status/health/last update indicators before making changes.
- Apply one change at a time and save.
- Run the available validate/probe/refresh action.
- Confirm the expected output appears (status change, new event, successful result).
- If behavior is not as expected, use Troubleshooting below before repeating actions.
Day-2 operations
After initial setup, keep this surface healthy with a simple routine:
- Daily: verify data freshness and error banners.
- Weekly: review trends, limits, and failed actions.
- Monthly: review permissions, keys/tokens, and stale entities.
- After any incident: capture evidence and update your internal operating notes.
What each button does
Button labels can vary by module, but behavior is consistent:
- Refresh: reloads the latest data from backend APIs without changing configuration.
- Save: persists workspace-scoped configuration changes.
- Run/Probe/Validate: executes a non-destructive health or verification action.
- Download: fetches workspace-scoped artifact(s) (for example bundle, checksum, signature, or report).
- Verify: checks integrity/consistency and returns pass/fail details.
- Enable/Disable: toggles module behavior for your workspace; audit evidence should be recorded.
If a button appears disabled, check role permissions, required fields, and workspace license/feature entitlement first.
Self-check playbook
Use this 5-step isolation flow before escalating:
- Configuration: confirm required inputs are present and formatted correctly.
- Permission: confirm your role can perform the action (
401/403usually indicates authz/authn mismatch). - License/feature: confirm the feature is enabled for your workspace plan and module toggles.
- Quota/rate limit: check for
429responses and cooldown windows. - Service health: if you see
5xx, retry once after 30-60 seconds and capture exact error text.
If still failing, escalate with workspace ID, UTC timestamp, route, action, payload shape (no secrets), and screenshot/error response.
Troubleshooting
Use this quick triage order to reduce time-to-fix:
- Auth/session: refresh token by signing out/in.
- Workspace context: confirm you are in the correct workspace.
- Inputs/config: verify required fields and formats.
- Quota/license: confirm limits and feature entitlement.
- Service health: retry after short delay if backend is transiently degraded.
For escalation, include workspace ID, timestamp (UTC), route name, action attempted, and full error message.
API and automation
Everything in this page should remain workspace-scoped. If your team prefers automation, use the corresponding API endpoints with the same guardrails as the UI:
- Use authenticated requests bound to your workspace context.
- Use idempotency/retry controls where available.
- Validate outcomes in the UI after automated runs.
If your endpoint mapping is not obvious, start from Help Center and follow the linked API docs.
Next best actions
After finishing this page, continue with related workflows so your workspace setup stays end-to-end complete:
- EDR response and host actions
- Web Access Protection and dry-run events
- Identity risk and OAuth response
- EvidencePack verification and transparency log
- Risk economics and plan recommendation
FAQ
Q: I clicked save but nothing changed. A: Refresh once, confirm permissions, and verify required fields.
Q: Why do I see missing API key/unauthorized errors? A: Confirm your workspace API key/session is valid and mapped to the correct workspace scope.
Q: Can non-admin users use this page? A: Usually read-only access is possible; write actions require workspace-admin or equivalent roles.
Next steps
After finishing this guide:
- Validate the result in the related dashboard/workspace.
- Export or capture evidence if this affects compliance/incident operations.
- Share the same runbook internally so other operators follow identical steps.
- Return to Help Center for adjacent workflows.
API error quick reference
Use this matrix when a UI action fails with an HTTP/API error.
| Error | Meaning | What to do now |
|---|---|---|
401 Unauthorized | Session token is missing/expired or request is not authenticated. | Sign out/in, refresh once, then retry. Confirm your session is active in the correct workspace. |
403 Forbidden | You are authenticated but your role is not allowed to perform this action. | Confirm your role includes the required permission for this button/action. Ask workspace admin to grant access. |
404 Not Found | The route/resource does not exist in current workspace context (or feature not enabled). | Confirm URL/route, workspace context, and feature availability. Refresh and retry; if persistent, capture timestamp and route and contact support. |
429 Too Many Requests | Rate limit/quota window was exceeded. | Wait for cooldown/reset window, retry once, then reduce burst traffic/backoff if automated. |
500 Internal Server Error | Backend failed unexpectedly while processing the request. | Retry after 30-60 seconds. If still failing, escalate with workspace ID, UTC time, route, action, and full error text. |
Known limits and rate limits
These limits can vary by plan and feature, but behavior is consistent:
- Burst traffic can trigger
429 Too Many Requests. - Workspace quotas apply per feature/module and reset on configured windows.
- Repeated retries without backoff can extend recovery time during saturation.
Recommended operator behavior:
- Retry once after cooldown for 429 responses.
- Use exponential backoff in automation.
- Monitor usage/quota dashboards for sustained high utilization.
- Request quota review when normal workload regularly approaches limits.