Organizations
An organization is the party that issues credentials and sends verification requests in your ecosystem. Each organization has its own templates, credentials, webhooks and identifiers (DIDs), kept separate from other organizations. For example, a fintech company could create one organization for each department (HR, Finance) or region (North America, Europe), so each one issues and verifies on its own and follows its own regional rules.
Before you start
Make sure you have an API key for your ecosystem.
Steps
This example creates an organization in the EU Digital Identity ecosystem. The steps are the same in every ecosystem.
- Open the API Reference and select the EU Digital Identity Ecosystem API under Hovi Connect API.

- Go to the Organization section.

- Open POST - Create Organization and click Test Request.

- Enter your API key as a Bearer Token, fill in the body parameters and click Send.

The request body needs a name, a label, a secret and an imageUrl (the organization's logo). You can also pass webhook URLs and existing DIDs. For EU Digital Identity, add authorization servers after you create the organization; see Connect your own sign-in system.
Keep the organization secret safe. You need it to delete the organization, and Hovi can't recover it for you.
What the response contains
| Field | What it is |
|---|---|
organizationId | The organization's ID. Send it in the x-organization-id header on every request for this organization. |
accessToken | The organization's access token. |
dids | The organization's DIDs (decentralized identifiers). |
webhooks | The webhooks you passed in the request, each with a webhookId. |
x509Certificate | EU Digital Identity only. The organization's X.509 certificate. |
Webhooks passed when you create an organization don't return a signing secret. To verify webhook signatures, add your webhooks with the Webhooks endpoints instead.
Use your own X.509 certificate
EU Digital Identity only. Hovi gives each organization an X.509 certificate to sign credentials and verification requests. To use your own certificate instead, import it with POST - Import Certificate (/organization/certificate/import) in the Organization section, with your API key and x-organization-id:
{
"certificate": "-----BEGIN CERTIFICATE-----\n…\n-----END CERTIFICATE-----",
"privateKey": "-----BEGIN PRIVATE KEY-----\n…\n-----END PRIVATE KEY-----",
"isDefault": true
}
certificate: a PEM-encoded certificate with an EC P-256 key. It must have a country (C) in its subject, the digitalSignature key usage, and current validity dates. CA certificates aren't accepted.privateKey: the matching private key, as unencrypted PKCS#8 PEM.isDefault:trueto start using it straight away. Otherwise Hovi keeps using the current default certificate.
The same section has endpoints to list your certificates, get one, set one as the default, and delete one.
Connect your own sign-in system
EU Digital Identity only. To issue credentials with the authorization code flow, connect your own sign-in system, for example your company or university login. This is an authorization server: any OAuth 2.0 or OpenID Connect identity provider. The holder signs in there before they receive the credential, and details such as their name and email can be filled into the credential from the sign-in.
-
At your identity provider, create a client for your organization and note its client ID and client secret.
-
Add the server with POST - Add Authorization Server (
/organization/authorization-server) in the Organization section, with your API key andx-organization-id:{
"issuer": "https://login.example.com",
"clientAuthentication": {
"clientId": "<CLIENT_ID>",
"clientSecret": "<CLIENT_SECRET>"
},
"scopes": ["profile", "email"]
}issuer: the server's issuer, exactly as theissuervalue in its/.well-known/openid-configuration. It must use https.clientAuthentication: the client ID and secret from step 1. Hovi never returns the secret.scopes(optional): the scopes asked for when the holder signs in. They decide which details the server sends back, for exampleprofileforgiven_nameandfamily_name, andemailforemail.openidis always added. Values can't contain spaces, double quotes or backslashes.walletRedirectUris(optional): the wallet redirect URIs allowed for the sign-in. A wallet whose redirect URI isn't in the list is refused. Leave it out to allow any.
-
The response includes an
authorizationServerId, which you use in credential offers, and acallbackUrl. Register thecallbackUrlas a redirect URI in the client from step 1. If you don't, the sign-in fails.
Each organization can have up to 5 authorization servers, and each issuer only once. The same section has endpoints to list your servers, change a server's default scopes or walletRedirectUris (send walletRedirectUris: null to allow any), and remove one. You can't change a server's issuer or client details: remove it and add it again instead.
POST /organization/create no longer accepts authorizationServerConfigs. Servers registered that way can't be used in offers: add them again with POST - Add Authorization Server.
What happens next
The Organization endpoints also let you list, update and delete organizations and get their public DIDs; see the Organization endpoints. Next, create a credential template or a verification template.