Get started with Esus: from your account to your first API call

Create your console account, configure an application, and save your first test patient. A walkthrough to start building with Esus.

A scheduling tool, a patient portal, or an application for a care team needs a shared foundation: somewhere to store information, identify users, and define what each person can do.

Esus is a platform for developing and integrating those applications. It provides an API based on FHIR R4 and a console for managing your organization, apps, and access.

This guide walks through a first working flow: create your account, configure an application, then save and retrieve a fictional patient through the API. You can follow along before choosing a framework for your application.

1. Create your account and organization

Open the Esus console. If you sign up with email and password, enter your first name, last name, email address, and organization name. The form shows the password requirements.

After registering, verify your email with the code you receive and sign in. You can also choose to sign up with Google.

It helps to distinguish three things from the start:

  • Your account identifies you as someone who uses the console.
  • Your organization brings together your team’s data, applications, and access.
  • An app is the application you configure and integrate with Esus.

Use a test organization and fictional data for this walkthrough. You can find more detail in Your account and team.

2. Configure your first app

In the console, open Apps. You can use the onboarding wizard to create your first application.

You’ll provide three details:

  • Internal name: a name your team can recognize, such as demo-portal.
  • Display name: the name your users will see, such as Test Portal.
  • Site URL: the address where your application runs.

When you’re done, the console shows the App ID and examples in curl and JavaScript. Inside the app, you’ll also find Connect → Use it, with examples for registration, email verification, sign-in, and API access.

The App ID identifies your application; it isn’t a secret credential and doesn’t grant access on its own. It’s used, for example, in the X-App-Id header for your app’s user authentication flows.

Your console account and the accounts of people using your application follow separate flows. Creating an app doesn’t automatically create patients, either.

3. Set up access from your server

We’ll use an API key for this first test. This credential is intended for calls from your server or a development terminal. It must not be included in JavaScript sent to the browser.

Inside your app, go to Access → API keys and choose New key. Give it a recognizable name, such as Patient test, and replace the broad permission with these two permissions, separated by commas:

Patient.create, Patient.read

These let you create, read, and search for patients. This test doesn’t need permission to update or delete them.

Save the clientId and secret returned by the console. The secret is shown only once. If you lose it or it becomes exposed, generate a new one by rotating the key.

Requests authenticate through the X-API-Key header, using the format clientId:secret. See Authentication for available permissions and guidance on when to use a user session or SMART on FHIR instead of an API key.

4. Save your first test patient

In FHIR, Patient represents a person receiving care. We’ll start with a minimal record that doesn’t contain a real person’s information.

Replace YOUR_CLIENT_ID and YOUR_SECRET with your test credentials and run this request in your terminal:

curl -X POST https://api.esus.health/fhir/Patient \
  -H 'X-API-Key: YOUR_CLIENT_ID:YOUR_SECRET' \
  -H 'Content-Type: application/fhir+json' \
  -d '{
    "resourceType": "Patient",
    "active": true,
    "name": [{ "family": "Example", "given": ["Patient"] }]
  }'

If creation succeeds, the API responds with 201 Created and the saved resource. Copy its id field: you’ll use it to retrieve the record.

Don’t publish the request with your real credentials or commit them to your repository. In your application, keep them in your server’s secure configuration.

Your first Patient resource explains how to add identifiers, contact details, and other fields.

5. Retrieve what you just saved

Replace PATIENT_ID with the id from the previous response:

curl https://api.esus.health/fhir/Patient/PATIENT_ID \
  -H 'X-API-Key: YOUR_CLIENT_ID:YOUR_SECRET'

The response lets you confirm that you’re reading the same resource you created. It also includes version information in meta, which becomes useful when you start working with updates and history.

From here, you can continue with Searching for patients or Updating and deleting patients.

To look up an operation, open the console’s Catalog. It shows the routes, parameters, and request and response structures published by the API.

6. Connect your users’ sign-in flow

You’ve tested the connection from your server. What comes next depends on what you’re building.

If your app needs people to register and sign in, use the examples under Connect → Use it and configure its access options. Before testing email verification or password recovery, configure your app’s own SMTP, its sender details, and the relevant URLs. Third-party applications need their own email transport.

An app user and a Patient resource are different things. Creating one doesn’t automatically create or link the other. Define that relationship and the permissions around your application’s flow.

To continue with a specific use case, explore Practitioners and Scheduling.

Before working with real data

A successful first request is a starting point. Before moving to production, review your key permissions, people’s roles, session handling, and the information written to your application’s logs.

Esus provides access controls, encryption, and auditing. Your integration also needs to protect credentials and apply those controls to its context. The security guide covers the areas worth reviewing.

Start with a small flow you can verify from end to end. Then add the resources and connections your application needs.

If you get stuck, write to hello@esus.health.

Juan Manuel Panozzo Zenere

Founder of ESUS. Building the future of healthcare interoperability. FHIR enthusiast and backend architect.

Keep exploring