Discovering X-Road services with metaservices

Teams building an API catalog or onboarding developers need to know which providers and services exist on X-Road. Metaservices answer those questions and return OpenAPI descriptions, and this page explains how to use them and what to confirm first.

On this page

How teams find X-Road services with metaservices before they write a client

Catalog and developer onboarding teams need one answer before they write any code: which members, providers and services can their Security Server reach right now. X-Road covers that question with four metaservices, each sent as a request through the calling Security Server. listClients returns the member clients that the target Security Server can list, listMethods returns the services a member offers, allowedMethods returns the services the calling client is permitted to use, and getOpenAPI returns the OpenAPI description of a REST service so a developer can read it or generate a client from it. The first three describe the network from different angles, and getOpenAPI describes a single service. The exact scope of each response depends on how the provider has configured access, so test it rather than assume it.

Discovery pays off in three places. A catalog built from metaservice output tracks what the network actually offers more closely than a spreadsheet maintained by hand. Developers can see which services their client may call before they open a ticket with a service owner, which shortens the access request cycle. A discovery pass before the first client is written also shows whether a provider's OpenAPI description is present and readable. Run that pass from a test Security Server that holds the same access rights production will hold, because a call that succeeds with broader test rights tells the team little about production. Record the member codes queried and the date of each run, so the catalog can be refreshed when a provider changes a service.

Exact request and response formats, parameter names and error handling must be confirmed in the documentation for the X-Road release in use. The current release is 7.8.3, and 7.7.4 and 7.6.5 are also supported, so the team should first establish which release its own Security Server runs and which releases the providers it depends on run. Ask each provider for its release before building a parser, and confirm that the metaservice behavior is the same across those releases. Decide also how often the catalog refreshes, who owns the stored results, and how changes to a provider's services reach the team. Those decisions belong in the onboarding plan before the first client is written.

How a discovery request travels between Security Servers

The diagram starts in the consumer's network, where the catalog tool asks the consumer information system to send a metaservice request. That request passes through the consumer's Security Server to the provider's Security Server, which sits in a separate network. The answer returns along the same path to the catalog tool. The Central Server sits outside both networks as the source of global configuration. Before you build, confirm the exact request paths and message fields in the current documentation.

Discovery request and answer between Security Servers, with Central Server outside.

Which X-Road metaservices answer which discovery questions

The table compares the four metaservices by the discovery question each answers, the catalog or onboarding task it supports, and what to verify before a team depends on its output. Read each row as a boundary: a metaservice answers its own question and no other, so a catalog usually combines several. The main takeaway is that exact parameters and response fields come from the X-Road documentation for your release, and the team should test each call against a non-production Security Server first.

MetaserviceDiscovery question it answersCatalog or onboarding taskConfirm before relying on it
listClientsWhich member classes and member codes can this instance see as possible providers or consumers?Building a provider directory or confirming a member code before onboarding a consumerWhether the list reflects global configuration or only the caller's view, and which filters and fields the release supports
listMethodsWhich services does a given provider publish, and under which service codes?Populating a catalog entry per provider and mapping service names to their ownersWhether it lists both REST and SOAP services, and the request parameters and response fields defined for your release
allowedMethodsWhich services is the calling client permitted to use from a given provider?Onboarding a consumer and checking that access rights match the data sharing agreement before the first callWhether it reflects only rights granted to the caller, and how it responds for services with no rights granted
getOpenAPIWhat is the OpenAPI description for a specific REST service a consumer wants to call?Publishing API documentation to a developer portal or generating client code for consumersWhether the service has an OpenAPI description attached, which service identifier format the release expects, and what access check applies

Setting up metaservice discovery for developer onboarding

This sequence takes a team from the metaservice names in their X-Road release to a reconciled catalog of members, providers, services and OpenAPI descriptions that developers can use. Each step ends with a check against the provider's own configuration, so the catalog reflects what providers actually publish. The team owns the output and keeps every entry tied to the release it came from.

  1. Confirm release and metaservice names

    Start by reading the documentation for the X-Road release your members run, and note the metaservice names it uses for listClients, listMethods, allowedMethods and getOpenAPI. The current release is 7.8.3, but your Security Servers may run another supported line (7.7.4 or 7.6.5), so check the version on each server before assuming the names match. Done when the team has a short table of release, server version and metaservice names, reviewed by the platform lead.

  2. Confirm access rights for metaservice calls

    Ask each provider operator whether the discovering client needs an access right to call each metaservice. Do not assume the answer from the rights the client already holds for business services, because the provider's configuration decides it. Confirm this in your own environment, grant any rights that are needed, and record the decision for each metaservice. Done when a test call from the discovering client returns a result for every metaservice the team plans to use, and any refused call is logged as an open item with an owner.

  3. Map members with listClients

    Call listClients from the discovering client's Security Server to get the members visible to it. Compare the returned member identifiers with the member list your X-Road operator publishes, and record any member that is missing or unexpected. Done when every returned member has been matched to a known organization in the member inventory, and each mismatch has an owner and a written question for the operator.

  4. Retrieve methods for each provider

    For each provider in the member inventory, call listMethods to get the services that provider publishes. Compare the returned service names with the services listed in the provider's own Security Server configuration, which the provider's administrator can confirm. Done when every provider's service list matches its own configuration, and any service present in only one of the two lists is recorded with the release and the date of the check.

  5. Check allowed methods per provider

    For each provider, call allowedMethods to see which methods the discovering client is permitted to call. Compare that result with the access rights confirmed in the second step. Done when each provider has a record of permitted methods that matches the rights its operator confirmed, and any gap, such as a service returned by listMethods that the client cannot call, is assigned to the provider's operator for a decision before the service appears in the catalog.

  6. Retrieve OpenAPI descriptions for publication

    For each REST service the team plans to document, call getOpenAPI to retrieve its OpenAPI description. Save each description in a file named for the provider, the service and the X-Road release it came from, so later changes can be traced. Done when each saved description opens without error in your OpenAPI tooling, and the team can state, for every file, which release and which provider it came from.

  7. Reconcile and record the developer catalog

    Compare the full set of discovered providers, services and descriptions with each provider's own configuration one final time. Record the release each description came from in its catalog entry, along with the source call and the date of the check. Developer onboarding should use only entries that passed the earlier checks. Done when every catalog entry carries its release, its source call and its check date, and each provider operator has confirmed the entries that describe its services.

Keeping a discovery catalog current as providers change

A catalog built from listClients, listMethods, allowedMethods and getOpenAPI is a snapshot of one moment, and it goes stale as soon as a provider adds a service, changes a method or description, or removes an endpoint. Plan on the catalog learning about these changes only when it asks again. The gap is easy to miss because old entries keep looking valid: a removed service can still appear with its last description, and a consumer who builds against it learns the truth at the first failed call. Before you design the refresh, confirm with your X-Road operator and the Security Server documentation which of these metaservice results depend on the querying member's access rights, since a catalog built from one member's view may differ from another's.

Keep the catalog current with three mechanisms working together. First, a refresh schedule that polls each provider's metaservice output at an interval your team sets, checked against what your operator permits, plus a manual refresh whenever a provider announces a change. Second, cached results stored with the time they were fetched, so consumers read the last known state and a failed poll does not silently erase a service. Third, a source record for every description: which Security Server answered, which metaservice call produced the entry, when it was retrieved, and a version or hash of the OpenAPI document. With that record, any mismatch between the catalog and a provider's own publication can be traced to its origin. Mark a service as withdrawn when it disappears and keep its record for the period your compliance lead confirms your audit needs require.

Ownership should be written down and split by party. The consuming platform or integration team owns the catalog itself: the refresh job, the cache, retention, and the decision to show or hide an entry. Each provider owns its own services and descriptions, including the accuracy of the OpenAPI or WSDL it publishes and the notice it gives consumers before a change or removal. The catalog team cannot correct a provider's description, so entries should show the provider's name and source record, with questions routed to the provider's contact. For the provider-side steps, use the sibling topics: publishing REST APIs through X-Road with OpenAPI and publishing SOAP services on X-Road with WSDL cover how descriptions are added and refreshed, and managing X-Road service access rights covers who may call a service after a change. Agree a notice period for removals with each provider before the catalog depends on them.

What discovery exposes and how to limit it

Metaservice answers describe who runs services on your Security Server and how they are called, so they deserve the same care as the services themselves. The five cards below cover what those answers reveal, which controls decide who sees them, and what to review before a catalog or developer portal reads them.

Member and service lists

A complete list of members, subsystems and services shows an outsider which organizations you exchange data with, which systems sit behind them and how they are grouped. Treat that list as sensitive architecture information, even though each entry matters mainly to callers who hold access. Before you expose listClients or listMethods to a catalog or a partner, decide who should see the full inventory and who should see only the services they are allowed to call. Record that decision so the catalog team and the security team review the same scope.

Caller-dependent answers

Confirm whether listClients, listMethods, allowedMethods and getOpenAPI return the same answer to every member, or only what the calling member can use. The behavior can depend on your X-Road version and configuration, so test it instead of assuming it. Run each call from a client with full access, a client with partial access and a client with none, then compare the responses field by field and record any difference you did not expect.

HTTPS and allowed hostnames

Discovery calls travel the same path as service calls, so the transport settings on that path matter. The hardening guide recommends the allowed-hostnames setting to guard against host header injection, and it recommends publishing global configuration over HTTPS from version 7.4. Check allowed-hostnames and HTTPS on every Security Server that answers metaservice requests, and confirm how the internal leg from your applications to the Security Server is protected in your deployment.

Hardening guide

Logging and review of discovery traffic

Metaservice requests are calls like any other, so they can show who is enumerating your members and services. Confirm that these requests reach the logs you keep by checking which logging mode your Security Server uses and what it records. Then set a review routine that looks for callers requesting full inventories more often than their own services need, and agree who receives alerts. Keep the review scope within what your retention and privacy rules allow.

OpenAPI descriptions as design documents

An OpenAPI description can reveal field names, internal paths, example values and error behavior, which is often more detail than a consumer needs. Treat each description as an internal design document until it has been reviewed. Remove internal hostnames, debug endpoints, sample data copied from production and notes about unreleased behavior. Then decide which audience receives it, and republish whenever the service changes so the catalog does not keep an outdated version.

What does X-Road metaservice discovery cost and take to build?

What makes a metaservice catalog cost more or less?

The four main drivers are the number of members, providers and services in scope, whether the catalog is generated automatically or assembled by hand, and how many service descriptions need human review. Cost splits into two parts. Your staff time covers reading the metaservice output, deciding what goes into the catalog, and checking each description against what the provider intends to publish. A partner's fee follows from a written scope, so it is set by the same counts. Ask for the cost of the initial build separately from the cost of keeping the catalog current, because membership and service lists change over time. DeployOpen does not publish a price list, and a quote follows from the written scope.

How long does a service catalog build take to finish?

This page does not give a duration, because the time depends on the environment and the scope you agree. A written scope sets the timeline, including which members and services are in the catalog, how many descriptions need review, and the test window before anything is published. Ask the partner to show the milestones, the points where your team must respond (for example, approving description changes or granting access), and the assumptions behind each date. If a partner gives you a date before it has seen your member and service counts, ask what it assumed. Your own timeline depends on how quickly your Security Server administrator and catalog owner can respond, which can be the longest wait.

What access and people does the client need to provide?

Three things come from your side: access, a Security Server administrator and a catalog owner. Access means an admin account with the roles the work needs, such as Service Administrator, as described in the Security Server user guide, plus a non-production environment where the catalog can be built and checked without touching live consumers. The Security Server administrator runs the metaservice calls, confirms which provider services are published and keeps the server configured. The catalog owner decides what the catalog lists, approves description changes and signs off each release to consumers. Name both people in the written scope and agree how long each review takes. If one person holds both roles, say so in the scope, because the review then has no second check.

Can our own engineers build the catalog without a partner?

Yes, a team with Security Server experience can build it alone, provided it has the official documentation and a test environment where it can change the catalog without affecting live consumers. Start with the Security Server user guide and the metaservice calls the topic covers, then build the catalog in test, compare the output with the member and service list you expect, and only then publish. Plan for one engineer to own the scripts and one administrator to own the Security Server. The harder part is keeping the catalog accurate after the first version works. Decide before you start who reviews new services and changed descriptions, on what schedule, and where each review is recorded. If your team has not run a Security Server before, consider a partner for the first install or the first review cycle.

Which parts of the work are worth paying a partner for?

A partner earns its fee most on the parts that are hard to repeat in-house or easy to get wrong under time pressure. Common candidates are:

  • Designing the catalog model, including how members, providers and services are named and grouped.
  • Automating the collection of metaservice output and the check that flags new or changed descriptions.
  • Reviewing OpenAPI descriptions for gaps before they reach consumers.
  • Testing results for representative client identities, so you know what each client can see.
  • Hardening the Security Server that serves the catalog, following the hardening guidelines.

Keep the decisions your business already makes well in-house, such as approving what gets published. Ask the partner which of these it will deliver and which remain with your team.

What should a written quote for this work include?

A useful quote describes the scope it prices and lists the items below, not just a total. Ask for:

  • The counts it assumes: members, providers, services, descriptions to review, and whether the catalog is automated.
  • The deliverables, such as the catalog model, scripts, documentation and a handover session.
  • The test environment, who provides it, and the test plan before publication.
  • Your responsibilities, including access, the named administrator and catalog owner, and review turnaround.
  • What is one-time, such as the initial build, and what recurs, such as catalog updates or a retainer for changes.
  • Exclusions, and the change process if the member or service count grows.

DeployOpen does not publish a price list. Its quotes follow from a written scope, and scope, deliverables and timelines are agreed in writing before work starts.

What goes wrong when a service catalog drifts out of date?

Stale catalogs cause the most problems. Consumers build against descriptions that a provider has changed, or they miss services published after the last run. Teams usually notice this through failed integrations and support tickets before anyone looks at the catalog itself. Guard against drift by recording who reviews each description, the date of the last check, and the trigger for a new run, such as a new member, a new provider or a changed OpenAPI file. Test one call per representative client identity after each change, so a permission change is caught before a consumer finds it. Ask who maintains these records, because an unowned catalog is usually the first to go stale.

What to confirm in your environment before you publish a catalog

Five points decide whether a metaservice catalog stays accurate and available after it goes live. Each one depends on your environment: the X-Road release you run, the Security Servers that answer requests, and the descriptions your providers publish.

Metaservice parameters for your release

Confirm the exact parameters and response fields of listClients, listMethods, allowedMethods and getOpenAPI on the release you run. X-Road 7.8.3 is the current release, and 7.7.4 and 7.6.5 are also supported, so a catalog built against one line may parse fields differently on another. Record the release of every Security Server that answers metaservice calls, then test each one against your catalog's parser before you publish.

X-Road releases

How X-Road 8 Spaceship changes discovery

X-Road 8 Spaceship is in beta, with 8.0.0 Beta 2 available for testing and a production release scheduled for December 2026. It is positioned as a data space solution with improved monitoring and cloud compatibility. Ask NIIS whether the metaservice contract stays the same in 8.0, including call names and response fields, and plan a catalog migration step if either changes.

X-Road GitHub repository

Visibility of services a caller cannot use

Discovery tells a caller what exists. Whether that caller may invoke a service is a separate question, governed by access rights. Test the catalog with a client that holds no rights to a given service, and check what the metaservice responses expose for that client. Then decide whether your catalog should show every service to every reader or only the services each reader is allowed to use.

OpenAPI accuracy depends on providers

The OpenAPI description returned by getOpenAPI is only as accurate as the provider's own description. A missing endpoint, a stale schema or a wrong example passes through your catalog unchanged. Ask each provider how it maintains its descriptions, agree a refresh step with them, and test a sample of descriptions against live calls before developers rely on them.

Catalog uptime depends on Security Servers

A catalog is only as available as the Security Servers that answer for it. If the server a consumer uses is down, discovery and service calls fail for that consumer, regardless of where the catalog itself is hosted. This page states no service level for catalog uptime. Map which Security Servers serve metaservice requests in your environment, identify single points of failure, and agree an availability target before you publish.

Installation guide

How DeployOpen scopes a metaservice discovery and catalog build

DeployOpen scopes metaservice discovery as a written piece of work on your own X-Road deployment, so the catalog reflects what your Security Servers actually expose. We plan which provider and service data the catalog needs, build the lookup layer and OpenAPI retrieval, then test and document it for developer onboarding. Engagements are fixed-scope, with ongoing support available as a retainer.

How we scope

  • The written scope names which providers, services and client Security Servers the catalog must cover before any build starts.
  • Scope sets which metaservice calls, such as listClients, listMethods, allowedMethods and getOpenAPI, the catalog will use.
  • Access rules are reviewed up front, so catalog output matches what each consumer may call.

How we build

  • The build starts with a discovery client that calls the metaservices from a test Security Server.
  • Retrieved provider and service lists are normalized into the catalog model agreed during scoping.
  • OpenAPI descriptions from getOpenAPI are fetched, validated and stored alongside each catalog entry.

How we hand over

  • Handover covers the discovery client source, configuration, catalog data model and run instructions.
  • Test results show which metaservice responses were checked and which environments were covered.
  • Runbooks explain how to refresh the catalog when providers, services or access rights change.

How we support

  • Ongoing support can cover catalog refreshes as new providers join or service descriptions change.
  • Retainers can include retesting after X-Road upgrades, since metaservice behavior should be confirmed per release.
  • Confirm with your team which X-Road version and metaservice endpoints your Security Servers expose before scoping.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.