Skip to main content

Client Applications

A client application is what your integration signs in as. Each one has a Client ID, a credential, and a set of roles that decide what it can do in the API. The credential is one of:

  • Key files (ZITADEL, ClaimRev's new identity platform): JSON files holding a private key. Your integration signs a short-lived token request with one.
  • Client secrets (Azure AD B2C): a password-like string sent with each token request.

Authentication explains how to get a token with each. The portal adapts to the application: its buttons say key for one and secret for the other.

You manage your applications yourself in the portal. ClaimRev never sends a key or secret by email, and no one at ClaimRev sees the ones you generate.

Where to find it​

In the portal, open Practice Admin, then API Integrations, then Client Applications.

Your portal role needs API integration access to see this page. If API Integrations is missing from Practice Admin, ask your practice administrator to add it to your role, or contact ClaimRev support.

Test and production are separate. Applications, Client IDs and secrets created in testportal.claimrev.com only work against the test environment, and the same is true for production. Repeat these steps in each portal you integrate with.

The page lists each application with its Client ID (with a copy button), the status of its key or secret, how many roles it has, and an actions menu.

Getting a client application​

If your account already has one​

ClaimRev usually sets up the first application when your account is provisioned. If it appears in the list:

  1. Click the copy button next to the Client ID.
  2. If it has nothing yet, click Generate key or Generate secret and follow Generating a key or Generating a secret below.
  3. If it already has a key or secret but you do not have it, it cannot be shown again. Click Add key or Rotate secret to issue a new one.

Requesting a new application​

Use a separate application for each system that calls the API (for example, your EMR integration and a reporting tool), so you can rotate or disable one without affecting the other.

  1. Click Request application at the top of the page.
  2. Enter an Application name you will recognize later, such as the vendor or system name.
  3. Optionally add a Description and what the application will be used for. This is shown to the ClaimRev reviewer.
  4. Click Submit request.

What happens next depends on the environment:

  • Test: requests are normally approved immediately. The application appears in the list straight away with No secret yet.
  • Production: ClaimRev reviews the request first. Until then it is listed under Requests below the table as Pending. Once approved, it moves into the main list. If a request is declined, the reason is shown on the request.

A new application has no key or secret. Generate one next.

Generating a key​

For applications that use key files:

  1. Click Generate key on the application's row and confirm.
  2. Click Download key file. The file is named after the Client ID (cr-...-key.json) and can be downloaded once. Store it in your secret manager or deployment configuration.
  3. Click Done.

If you lose the file, it cannot be recovered. Add a new key and revoke the lost one from Manage keys.

The dialog shows when the key expires, or that it does not expire. A key with no expiry date stays valid until you revoke it, so revoke keys you no longer use.

Using your own public key​

For applications that use keys, you can register a public key you generated yourself instead of downloading a key file. Use this when your security policy requires private keys to be created and kept in your own key vault or HSM: the private key never leaves your system, and there is nothing to download.

  1. Generate an RSA key pair of 2048 bits or more in your own system, and export the public key in PEM format (-----BEGIN PUBLIC KEY-----). Authentication shows how with OpenSSL.
  2. On the application's row, open the actions menu (⋮) and choose Use your own public key.
  3. Paste the public key and click Register key. Never paste the private key: the portal refuses it.
  4. Copy the User ID and Key ID from the result. Your integration needs them to sign its token request: the Key ID is the kid, and the User ID is the iss and sub.
  5. Click Done.

The key does not expire. It is listed under Manage keys with your other keys, and is rotated and revoked the same way: register a new public key, switch your integration to it, then revoke the old one.

Generating a secret​

For applications that use client secrets:

  1. Click Generate secret on the application's row and confirm.
  2. The new secret is shown once. Click Copy and store it in your secret manager or deployment configuration before closing the dialog.
  3. Click Done.

If you close the dialog without copying the secret, it cannot be recovered. Generate another one and revoke the lost one from Manage secrets.

Secrets are valid for two years. The expiry date is shown under the secret status.

Setting the application's roles​

Roles decide which endpoints and data the application can reach. They are the same roles you can assign to a person on your account.

  1. Open the actions menu (⋮) on the application's row and choose Manage roles.
  2. Pick one or more roles and click Add role(s). Remove a role with the delete button next to it.

An application with no roles authenticates successfully but receives 403 from most endpoints. Grant only what the integration needs.

AI agents

An application used by an AI agent on the signed-in MCP endpoint (/mcp/account) also needs AI connections turned on for the account. A practice admin turns them on in the portal under Practice Admin, then AI Connections. The application cannot turn them on itself, even with the right role. See AI connections.

Rotating a key​

Adding a key does not invalidate the existing one, so you can switch over with no downtime.

  1. On the application's row, click Add key and confirm.
  2. Download the new key file. It can be downloaded once.
  3. Deploy the new key file to your integration.
  4. Verify it: request a token with the new key and make a call such as GET /api/UserProfile/v1/GetDefaultAccount with the x-auth-tenant: zitadel header (see Authentication). Or, without writing any code, open Practice Admin, then API Checks, choose A client application and A key file, and select the new file. Your browser signs with the key; the file is never uploaded.
  5. Back in the portal, open the actions menu (⋮) and choose Manage keys.
  6. Click Revoke on the old key. Compare the key ids: the one in your new key file (keyId) is the one to keep.

Until you revoke the old key, both work. Do not skip step 6: an old key left in place is still a valid credential.

Rotating a secret​

Rotation issues a new secret without invalidating the old one, so you can switch over with no downtime.

  1. On the application's row, click Rotate secret and confirm.
  2. Copy the new secret from the dialog. It is shown once.
  3. Deploy the new secret to your integration.
  4. Verify it: request a token with the new secret and make a call such as GET /api/UserProfile/v1/GetDefaultAccount (see Authentication).
  5. Back in the portal, open the actions menu (⋮) and choose Manage secrets.
  6. Click Revoke on the old secret. Secrets generated in the portal are named with the date they were created, and the new one expires two years from today, so the old one has the earlier dates.

Until you revoke the old secret, both work. Do not skip step 6: an old secret left in place is still a valid credential.

Revoking can take a few minutes to take effect everywhere, so a token request with the revoked secret may briefly still succeed.

Expiry reminders​

The Secret column shows Expires in N day(s) once a secret is within 30 days of expiring, and Expired after that.

During that window, users on your account see a reminder when they sign in to the portal. Users with API integration access get a Manage secrets button that takes them to this page. Other users are asked to contact your IT administrator.

When a secret expires, token requests using it fail with 401 (invalid_client) and your integration stops working until you deploy a new one. Rotate before the expiry date.

If a key or secret is compromised​

  1. Add a key or rotate the secret, and deploy the new one.
  2. Revoke the compromised one right away in Manage keys or Manage secrets. Do not wait for the full rollout if the old one may be in the wrong hands.
  3. Contact ClaimRev support so we can review activity on the application.

If you need to stop the application entirely while you investigate, use Disable application (below).

Disabling an application​

Choose Disable application from the actions menu to stop an application from calling the API immediately. Its Client ID, secrets and roles are kept, and Re-enable application turns it back on with its existing secret.

You cannot generate or rotate a key or secret while an application is disabled. To remove an application permanently, contact ClaimRev support.

Client Connect​

The Client Connect page also shows a Client ID and secret. It shows only one application for the account, so if you have more than one, use Client Applications to see and manage all of them.