GRG X-Road for developers
This site has everything a developer needs to connect a system to GRG X-Road: how addresses are structured, how to call a service, how to publish your own service, and how to read errors.
Preparation stage
Member onboarding and the test environment have not opened yet. The examples on this site are written according to the official X-Road protocol, but have not yet been tested in the real GRG environment. All code and addresses in the examples are fictitious.
In one sentence
Your system does not contact other organisations directly. It sends a plain HTTP request to your own Security Server. The two Security Servers handle signing, encryption, address lookup and record keeping.
Your system → Your Security Server ⇄ Provider's Security Server → Provider's system
(internal network) (internet, mTLS, signatures) (internal network)You do not need any special library or SDK. Any language that can send an HTTP request is enough.
Where to start
| What you want to do | Page |
|---|---|
| Make a first call | First call |
Understand what GRG/COM/1234567/ZEEL means | Identifiers and addressing |
| Call someone else's REST service | REST |
| Call someone else's SOAP service | SOAP |
| Find out which services exist and what is open to me | Metadata services |
| Ready-made code in Python, JavaScript and Go | Code examples |
| Open your own service to others | Publishing steps |
| Design the API you publish properly | API design recommendations |
| Interpret an error response | Error reference |
| TLS and ports between your system and the Security Server | Connection, TLS, ports |
What must be in place before you start
Before you write any code, your organisation must have completed the following. These are tasks for the organisation, not for the developer.
- Joined GRG X-Road as a member, and installed and registered its Security Server. Joining steps
- Registered a subsystem for your information system. Registration and obtaining a certificate
- The owner of the service you want to call has granted your subsystem access rights.
If any of these is missing, your request will stop at the Security Server with an error. Use the error reference to see which one is missing.
If you have questions
Send technical questions through the contact page. The original X-Road protocol documentation: docs.x-road.global.