Développeurs
La qualité de vos données, via une API.
Lisez les scores, les problèmes, les contrats et les verdicts de BeryX (anciennement DataVault) depuis vos pipelines, votre CI ou un agent. REST, JSON, OpenAPI 3.1 — et des jetons qui ne peuvent que lire.
261 endpoints · version 1.178.0 · mis à jour le 25 novembre 2026
Pour commencer
Du compte à la première requête en trois étapes.
Créer un jeton
Un administrateur de l'espace de travail le crée dans Paramètres → Jetons d'API (offre Team et supérieures). La valeur dvk_… n'est affichée qu'une seule fois — conservez-la dans un coffre à secrets.
Appeler l'API
Envoyez le jeton dans l'en-tête Authorization: Bearer. Chaque réponse est en JSON (sauf les exports .yml, .sql et .md).
Automatiser
Branchez le verdict d'un jeu de données dans votre CI, alimentez des tableaux de bord ou générez un client typé à partir du contrat OpenAPI.
export BERYX_TOKEN="dvk_…"
curl -s "https://api.beryx.tech/api/v1/datasets?limit=20" \
-H "Authorization: Bearer $BERYX_TOKEN"import os
import httpx
client = httpx.Client(
base_url="https://api.beryx.tech/api/v1",
headers={"Authorization": f"Bearer {os.environ['BERYX_TOKEN']}"},
timeout=30,
)
resp = client.get("/datasets", params={"limit": 100})
resp.raise_for_status()
print("total:", resp.headers["X-Total-Count"])
for ds in resp.json():
print(ds["name"], ds["latest_score"])const res = await fetch(
"https://api.beryx.tech/api/v1/issues?severity=critical&status=open",
{ headers: { Authorization: `Bearer ${process.env.BERYX_TOKEN}` } },
);
if (!res.ok) throw new Error(`BeryX ${res.status}`);
const issues = await res.json();
for (const issue of issues) {
console.log(issue.dataset_name, issue.title);
}# pip install beryx-sdk
# export BERYX_TOKEN="dvk_…"
from beryx import BeryX
dv = BeryX(base_url="https://api.beryx.tech")
for ds in dv.catalog.iter():
print(ds.name, ds.latest_score)
verdict = dv.verdict.get("<dataset_id>")
print(verdict.verdict, verdict.score, [r.rule_type for r in verdict.failed])// npx openapi-typescript https://beryx.tech/developers/openapi.json -o beryx.d.ts
// npm i openapi-fetch
import createClient from "openapi-fetch";
import type { paths } from "./beryx";
const dv = createClient<paths>({
baseUrl: "https://api.beryx.tech",
headers: { Authorization: `Bearer ${process.env.BERYX_TOKEN}` },
});
const { data, error } = await dv.GET("/api/v1/datasets/{dataset_id}/verdict", {
params: { path: { dataset_id: "…" } },
});Authentification
Jetons d'API : lecture seule par conception.
Chaque jeton appartient à un espace de travail et hérite de ses droits de lecture. Il ne peut pas ouvrir la Console, modifier des données ni voir les identifiants des sources.
- Format dvk_ suivi de 48 caractères hexadécimaux. Nous ne stockons que le hachage SHA-256 — si vous le perdez, créez-en un nouveau.
- GET, HEAD et OPTIONS uniquement, plus les quelques écritures indiquées dans la référence (RAG gate, déclenchement de scans, exécutions de l'orchestrateur, data-diff et décisions de confiance par lot). Toute autre méthode renvoie 403, même si l'endpoint existe.
- Révocation immédiate dans Paramètres → Jetons d'API ; la dernière utilisation est visible pour l'audit.
- La création et la révocation sont consignées dans le journal d'activité de l'espace de travail.
Pagination
Les listes acceptent limit et offset. Le catalogue (GET /datasets) renvoie le total dans l'en-tête X-Total-Count.
En-tête d'authentification
Authorization: Bearer dvk_3f9c…Codes d'erreur
- 401
- Jeton absent, invalide ou révoqué.
- 402
- La fonctionnalité n'est pas incluse dans l'offre de l'espace de travail (par ex. le dossier AI Act).
- 403
- Méthode d'écriture avec un jeton, ou espace de travail suspendu.
- 404
- La ressource n'existe pas ou appartient à un autre espace de travail.
- 422
- Paramètres invalides — le corps indique le champ et le motif.
Chaque réponse porte l'en-tête X-Request-ID. Les erreurs 4xx portent detail (le motif, en portugais), code (stable, pour que votre code s'y appuie ; null lorsque l'erreur n'en a pas) et request_id, identique à l'en-tête. Indiquez le request_id au support pour que nous retrouvions la requête dans nos journaux.
HTTP/1.1 403 Forbidden
Content-Type: application/json
X-Request-ID: 7b0c1e4e-3f7a-4c1b-9a51-2d0f7f1e9c11
{
"detail": "Tokens de API são read-only — usa uma sessão de utilizador para mutações.",
"code": "token_read_only",
"request_id": "7b0c1e4e-3f7a-4c1b-9a51-2d0f7f1e9c11"
}Cas d'usage
Un contrôle de qualité dans votre CI.
GET /datasets/{id}/verdict renvoie pass, warn, fail ou unknown avec les règles en échec. Faites échouer le déploiement quand une règle critique échoue ou que le contrat de données n'est plus valide.
Migrez vos suites Great ExpectationsSDK Python officiel et clients générés à partir du contrat
En Python, utilisez le SDK officiel, beryx-sdk : un client typé pour le catalogue, les problèmes, les verdicts et le gate de CI, qui relance avec backoff les requêtes en échec. Dans les autres langages, générez un client à partir d'openapi.json, produit à partir du code à chaque version et qui ne diverge donc pas de l'API : l'exemple TypeScript utilise openapi-typescript, et tout générateur OpenAPI 3.1 convient.
Avant le commit : CLI et hook pre-commit
Le SDK Python installe la commande beryx avec verdict, contract check, diff et policy check, en texte ou en JSON, avec les codes de sortie 0, 1 et 2 du contrôle. Un hook pre-commit exécute contract check et policy check sur les contrats ODCS et les fichiers schema.yml de dbt que le commit modifie. Le commit s'arrête lorsqu'une colonne du contrat manque dans le jeu de données ou en cas de violation critique d'une politique de données.
Guide de la CLI et du hook (en portugais)# .github/workflows/data-gate.yml → passo antes do deploy
verdict=$(curl -sf "https://api.beryx.tech/api/v1/datasets/$DATASET_ID/verdict" \
-H "Authorization: Bearer $BERYX_TOKEN" | jq -r .verdict)
echo "BeryX: $verdict"
[ "$verdict" != "fail" ] || exit 1# .pre-commit-config.yaml → contract check e policy check antes do commit
repos:
- repo: local
hooks:
- id: beryx-contract-check
entry: beryx contract check
language: python
additional_dependencies: ["beryx-sdk>=0.1.0"]
files: '(\.odcs|\.datacontracts?)\.ya?ml$|(^|/)models/.+\.ya?ml$'
- id: beryx-policy-check
entry: beryx policy check
language: python
additional_dependencies: ["beryx-sdk>=0.1.0"]
files: '(\.odcs|\.datacontracts?)\.ya?ml$|(^|/)models/.+\.ya?ml$'Stabilité
Ce qui arrive à votre intégration quand l'API change.
Le contrat est ce que présente ce portail. Une version mineure ne fait qu'ajouter ; un changement incompatible n'est livré que dans une version majeure, après une dépréciation annoncée. Résumé de la politique de versionnement — la version en vigueur est 1.178.0.
180 jours
de préavis minimum avant qu'une opération dépréciée cesse de répondre
30 jours
de préavis avant de réduire les limites de débit ou les quotas
2 versions mineures
du SDK Python prises en charge en même temps, avec correctifs
What the contract is
Everything in this portal: the
/api/v1operations an API token can call, with their parameters, fields and status codes. The rest of the API (the web app, account and token management, internal areas) is not covered and may change without notice.Compatible changes (minor)
A minor version only adds: operations, optional parameters, response fields, new enum values and new codes. Your client should ignore fields it does not know and handle unknown enum values. The
codeof reasons and blockers (trust decision, readiness) are stable; envelopes withschema_version(trust facts, BI feeds) only changeschema_versionin a breaking change.What a breaking change is (major)
Removing or renaming an operation, a parameter or a field; changing its type or format; making something optional required or rejecting a request that used to be accepted; changing the meaning of a field, a
codeor an HTTP status. A breaking change only ships in one of two ways: under a new path version (/api/v2), leaving/api/v1unchanged, or in a major version announced in the changelog after a deprecation. Our CI compares every change with the published contract and rejects a breaking change that is not announced.Deprecation
Announced in the changelog (type
deprecated) at least 180 days before the end, with direct communication to the admins of workspaces with active API tokens. During the window the operation keeps responding, with theDeprecation(RFC 9745 — since when),Sunset(RFC 8594 — when it stops responding) andLinkwithrel="deprecation"(the migration note) headers. Exception: a security fix may shorten the window and is logged in the changelog with typesecurity.SDK
The Python SDK (
beryx-sdk) has its own versions. We support the two most recent minors (N and N-1): they get fixes and track the API. Older versions keep working while the API has no breaking changes, but get no fixes.Rate limits and quotas
Request limits (per token and per IP) and plan quotas may change; a reduction is announced at least 30 days in advance, except anti-abuse measures. The values in force come with the responses (
X-RateLimit-Limit,X-RateLimit-Remaining,X-RateLimit-Reset); above the limit the API responds429withRetry-Afterand, above a plan quota,402.Reporting a problem
A response that contradicts this contract is our bug. Write to support@beryx.tech with the method and path, the HTTP status, the time (UTC), the
X-Request-IDof the response (errors also carry it inrequest_id) and the response ofGET /version(version,build_sha,api_version) — never the token. Vulnerabilities: the contact in /.well-known/security.txt.
Comment savoir que quelque chose va disparaître
Une opération dépréciée continue de répondre pendant la période, mais commence à envoyer ces en-têtes — et apparaît dans le journal des modifications ci-dessous avec le type « Déprécié ». Surveillez-les dans vos clients : CORS les expose aussi dans le navigateur.
Lire la politique complèteLa politique est en portugais, avec une version anglaise à la fin.
Exemple de réponse d'une opération dépréciée
HTTP/1.1 200 OK
Deprecation: @1790812800
Sunset: Thu, 01 Apr 2027 00:00:00 GMT
Link: <https://beryx.tech/developers#estabilidade>; rel="deprecation"; type="text/html"Journal des modifications de l'API
Ce qui a changé dans le contrat.
Les changements incompatibles sont annoncés ici avant d'arriver en production. Pour les nouveautés du produit en général : voir le journal des modifications de BeryX.
v1.178.0
- Modifié
The public contract's
servers(openapi.json) becomeshttps://api.beryx.tech, the main domain, and the developer portalhttps://beryx.tech/developers. Thehttps://api.beryxtech.comfrom 1.88.0 never answered and goes away. The address your installation uses today keeps answering, until the end date announced in the domain change guide. The contact for a contract error becomessupport@beryx.tech. Identifiers do not change: theproducerof the OpenLineage events and the MCP_metakeyberyxtech.com/provenancestay as they are. Card #1413.
- Modifié
v1.177.0
- Sécurité
The drill-down of volume and null anomalies no longer carries the value of the segment. In
impact.drilldownofGET /issues(and in the other responses with the issue),segmentisnullin the drill-down and in each ofsegments(or__null__/__other__, the empty dimension and the rest, which are not values), andsegment_idcarries the hash of the value, with the installation's key, the workspace and the dataset; the counts and the shares stay. Thedescriptionnames the dimension. The value is read inGET /issues/{issue_id}/explanation, from the scan's profile, and comes masked on a sensitive column for anyone without clearance; before, the explanation did not mask it. If the profile no longer has it,segments[].segmentcarries the hash andlabelonly the dimension. The issues that already existed change with the migration. Card #1379. - Sécurité
A
distribution_shiftno longer carries values of the column. InimpactofGET /issues(and in the other responses with the issue), the drift by categories now hascategories, with thebeforeandaftershares (0–1) and thesegment_id(the hash of the value, with the installation's key, the workspace and the dataset) of the three largest, andsegmentonly with__other__(the rest, which is not a value); the one of the quantiles now haschange_pct, the change of each one as a percentage (null when the previous one is zero).beforeandafterare gone in both, andbefore_minandbefore_maxin the quantiles one; in the hour of day and the other drifts they stay. Thedescriptionstates the shares or the change.GET /issues/{issue_id}/explanationnow also answers for these issues (it returned 422 before), withdistribution: the categories or the quantiles, before and after, read from the profile of the two compared scans and masked on a sensitive column for anyone without clearance (masked); of the quantiles, only the change stays. If the profile no longer has them,categories[].segmentcarries the hash and the quantiles come null. The issues that already existed change with the migration. Card #1399. - Sécurité
The rules proposed on a sensitive column (classified
piiorconfidential, or with personal data detected) no longer carry the observed values. InGET /suggestionsand insuggestionsofGET /datasets/{dataset_id}, the title,description_mdandtext_paramsdo not state the minimum, the maximum, the categories, the sentinels, the delay or the means (reasonends in_withheld), andproposed_rulecarriesfrom_profile(the family) andparamswithoutmin,max,regex,treat_as_nullorexpression. Accepting the suggestion reads them from the latest profile; if the profile no longer yields the rule,PATCH /suggestions/{suggestion_id}answers 409. Classifying the column takes them out of the suggestions that already existed, and no new interval is proposed for arangeof a sensitive column.
- Sécurité
v1.176.0
- Ajouté
GET /compliance/ai-agents/{agent_id}/model-version: the model version the cloud serves against the one the record declares (declared_version,observed), with the upgrade option (upgrade:OnceNewDefaultVersionAvailable,OnceCurrentVersionExpired,NoAutoUpgradeorpinned), the lifecycle (lifecycle,end_of_life_at), what was left unread (unread), the findings (version_mismatch,end_of_life_passed,end_of_life_soon,model_legacy,auto_upgrade,version_undeclared; thefixonly for admins), the last change seen (previous_version,changed_at) and the drills and impact assessment from before it (drills_other_version,impact_assessment_other_version).POST …/model-version/collect(admin): «Read now», queued with the who-can-invoke read (202).GET /compliance/ai-model-versions(admin): the list of Azure OpenAI and Bedrock records. New task kindai_model_versionand audit actionai_agent_model_version_changed. In the posture report (GET /workspace/data-posture), each agent inai_security.model_access.itemscarriesversion_status(read,not_readornot_supported),version_declared,version_observed,version_end_of_life_atandversion_findings. Card #1339. - Ajouté
GET /compliance/ai-agents/{agent_id}/mcp-servers: the agent's other MCP servers, besides BeryX's, as the record declares them (servers:name,version,package_sha256,remote_url,reads_private_data,receives_untrusted_content,communicates_externallyand, inregistry, the last check in the official MCP registry:statusactive,deprecated,deletedorunchecked, with the reason inreason,hash_statematch,mismatchorabsent, thehashesof the version's packages,latest,messageandchecked_at), the tools fingerprint (tools_fingerprint), thetools_enforcedoption, the open divergence (tools_mismatch_at,tools_mismatch_hash,blocks_classified) and the three capabilities added up (capabilities). With the "AI & Data Security" add-on (without it, 404) and in the plan with compliance. Card #1275. - Ajouté
X-Beryx-Tools-Fingerprintheader: the SHA-256 of the tool definitions of all the MCP servers on the record, with the canonicalisation of the BeryX tool manifest.GET /compliance/ai-agents/usagecarriestools_state(match,mismatchorabsent;nullwhen the request was not compared) andtools_hash, and filters bytools_state. With thetools_enforcedoption, a divergence refuses classified data with 403agent_tools_mismatch.GET /tasks: theai_agent_tools_mismatchkind, for the agent owner (or the admins). Card #1275.
- Ajouté
Pas encore d'espace de travail ?
Commencez avec l'offre gratuite et passez à Team quand vous avez besoin de jetons d'API.