Skip to main content
← HaaS Developer Resources

Admin API (HaaS)

Admin API (0.0.1-alpha.18)

Download OpenAPI specification:Download

Biza.io: hello@biza.io URL: https://biza.io/ License: Commercial

The Admin API gives a Data Holder access for back-office tooling with the intent over time to delivery everything available within HaaS Manager. Initially the focus is on delivering the metadata required to describe Grant's, particularly those pertaining to CDR Sharing Arrangements.

The caller of this API is strictly a machine to machine client intended to be an internal application.

Vocabulary

NOTE: The authoritative definition of these terms sits within Biza Guides.

A Grant is the term used by Biza to describe an established set of tokens providing permissions to designated APIs and is essentially a record of the permission given by the customer to use their information to execute actions. Every Grant has a grantType that describes what type of Grant it is.

Amending a Grant terminates the current consent and creates a new one. Grant history is the event stream describing how the Grant changed.

A Principal is the core-system customer the Grant is held against - the grant's owner, identified by the holder's core-system customer identifier. In the context of the CDR this is the CDR Consumer: a Non-Individual (Business, Trust, Non-profit) or Individual CDR Consumer.

A User is an authenticated person who can act on the Principal's behalf. In the context of the CDR this is someone who can authorise CDR data sharing for the CDR Consumer: the Consumer themselves, or another person named on the Grant, such as a joint account holder or an User. A Grant always relates to both. The identifiers for these Principal and Users align to the principalId and userId utilised by the Data Adapter for the specified realmName.

API Scope

This version represents every Grant as CDR_SHARING_ARRANGEMENT_V1 which defines a CDR Consumer's Sharing Arrangement (GrantV1.grantType). Machine-to-machine Grants and consumer dashboard logins are a different kind of authorisation artifact and are not members of this collection, so a total never counts a Grant you cannot retrieve, and naming one directly returns 404.

CDR Data Sharing Arrangement

In addition to the reading of CDR Arrangement details this API supports issuing a single state change, revoking a grant. Amending a CDR Sharing Arrangement otherwise requires the CDR Consumer to reauthorise the data disclosure, which happens outside this API entirely.

Other systems can still change a Grant available here, for instance, a joint-account owner withdrawing their account. These events create a CDR_SHARING_ARRANGEMENT_V1_AMENDED history entry carrying its amendmentCause.

Versioning

Every operation is versioned independently of every other, in both request and response, so a new version of one endpoint never forces a client to uplift the rest. Send the desired response version in x-haas-v; the served version is echoed in the x-haas-v response header and is also carried in the payload itself as the version discriminator. Call GET /{realmName}/meta/endpoints to discover which versions this deployment supports for each operation - the same path, operationId and x-haas-max-v request header as the HaaS Data Adapter specification's own endpoint discovery.

Responses this document does not describe

Not every response you receive on this host comes from this API. A proxy or load balancer sits in front of it and generates its own responses - on an outage, a route miss, a rate limit, or a TLS or protocol fault - and those are deliberately not described here, because this document describes what the application generates. While we try to document as many of the responses as possible it is entirely predictable that some errors may occur that cannot be described.

Grants

Listing, retrieving and revoking any Grant in the realm.

List Grants

List every Grant in the realm's consent store.

Authorizations:
AdminApiOAuth
path Parameters
realmName
required
string
Example: sandbox-holder

Realm name to bound the request to. A client is entitled to the realms of the space its token was issued for.

query Parameters
principalId
string
Example: principalId=08c31a2a9016d6c517a95562228a37c0

Narrow the visible Grants to those held against this Principal in addition to the path parameters specified.

userId
string
Example: userId=21a5472a3fd1467a901f8c86221c7ad9

Narrow the visible Grants to those held against this User in addition to the path parameters specified.

status
Array of strings (EnumGrantStatusV1)
Items Enum: "ACTIVE" "EXPIRED" "REVOKED"
Example: status=ACTIVE

Restrict results to Grants with the input status.

Supports multiple types using exploded form style.

If not present will return Grants in all statuses.

page
integer <int32> >= 1
Default: 1
Example: page=1

Page of results to request, 1-based.

page-size
integer <int32> [ 1 .. 1000 ]
Default: 25
Example: page-size=25

Number of records to return per page.

header Parameters
x-haas-v
required
string
Example: V1

The response version requested for this operation. The version actually served is returned in the x-haas-v response header and in the payload's version property.

x-fapi-interaction-id
string <uuid>
Example: 6ba7b814-9dad-11d1-80b4-00c04fd430c8

Caller-supplied correlation identifier, echoed on the response and recorded for the interaction.

Responses

Response samples

Content type
application/json
{
  • "version": "V1",
  • "data": [
    ],
  • "meta": {
    },
}

Get Grant

Resolve a Grant identifier to the Grant it names, anywhere in the realm.

A Grant identifier is unique within the realm, so no User or Principal is needed to address one. Use this when you hold an identifier and nothing else - from a log line, a support ticket or a notification - and need to discover whose Grant it is, or administer it directly.

Authorizations:
AdminApiOAuth
path Parameters
realmName
required
string
Example: sandbox-holder

Realm name to bound the request to. A client is entitled to the realms of the space its token was issued for.

grantId
required
string <uuid>
Example: dd488573-510f-42c1-82b7-e6ecaa735545

The identifier of the grant. Unique within the realm, so a Grant is addressable without naming its User or Principal.

header Parameters
x-haas-v
required
string
Example: V1

The response version requested for this operation. The version actually served is returned in the x-haas-v response header and in the payload's version property.

x-fapi-interaction-id
string <uuid>
Example: 6ba7b814-9dad-11d1-80b4-00c04fd430c8

Caller-supplied correlation identifier, echoed on the response and recorded for the interaction.

Responses

Response samples

Content type
application/json
{
  • "version": "V1",
  • "data": {
    }
}

Revoke Grant

Revoke a Grant by identifier alone. Unlike the Consent API's user-grounded revoke, it does not require the name of the User who created the Grant because this endpoint is intended for internal administrative tooling rather than a consumer facing dashboards.

The request payload identifies the initiator of the call: SYSTEM, for revocations triggered by automated actions, or USER, for identification of Holder personnel who trigger a revocation. The operation acts only on a Grant whose reported status is ACTIVE. For any other status it still returns 200 with the Grant unchanged, and writes no history entry.

CDR Arrangement V1

In the CDR Arrangement scenario, the Data Recipient is notified using the prescribed method. In addition a CDR_SHARING_ARRANGEMENT_V1_REVOKED history entry is written with a revocationCause of ADMIN.

Authorizations:
AdminApiOAuth
path Parameters
realmName
required
string
Example: sandbox-holder

Realm name to bound the request to. A client is entitled to the realms of the space its token was issued for.

grantId
required
string <uuid>
Example: dd488573-510f-42c1-82b7-e6ecaa735545

The identifier of the grant. Unique within the realm, so a Grant is addressable without naming its User or Principal.

header Parameters
x-haas-v
required
string
Example: V1

The response version requested for this operation. The version actually served is returned in the x-haas-v response header and in the payload's version property.

x-fapi-interaction-id
string <uuid>
Example: 6ba7b814-9dad-11d1-80b4-00c04fd430c8

Caller-supplied correlation identifier, echoed on the response and recorded for the interaction.

Request Body schema: application/json
required
version
required
string

Discriminator for the request envelope version.

required
any (ActorV1)

Who or what triggered this call. Written as audit metadata onto the resulting history entry; it is never an authorization input.

Responses

Request samples

Content type
application/json
{
  • "version": "V1",
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "version": "V1",
  • "data": {
    }
}

Get Grant History

Read a grant's history based purely on the Grant Identifier.

History is the consent lifecycle: how the Grant was created, every amendment to it, changes to its composition and its revocation. It does not cover token or authorisation-code issuance; that is security telemetry rather than consent history.

Entries are returned oldest first, so replaying them in order reconstructs the grant's state. This endpoint is ungrounded: every entry on the Grant is returned and no entry is redacted, whichever User initiated it.

Authorizations:
AdminApiOAuth
path Parameters
realmName
required
string
Example: sandbox-holder

Realm name to bound the request to. A client is entitled to the realms of the space its token was issued for.

grantId
required
string <uuid>
Example: dd488573-510f-42c1-82b7-e6ecaa735545

The identifier of the grant. Unique within the realm, so a Grant is addressable without naming its User or Principal.

query Parameters
page
integer <int32> >= 1
Default: 1
Example: page=1

Page of results to request, 1-based.

page-size
integer <int32> [ 1 .. 1000 ]
Default: 25
Example: page-size=25

Number of records to return per page.

header Parameters
x-haas-v
required
string
Example: V1

The response version requested for this operation. The version actually served is returned in the x-haas-v response header and in the payload's version property.

x-fapi-interaction-id
string <uuid>
Example: 6ba7b814-9dad-11d1-80b4-00c04fd430c8

Caller-supplied correlation identifier, echoed on the response and recorded for the interaction.

Responses

Response samples

Content type
application/json
{}

Discovery

What this deployment supports.

Get Endpoint Meta

Report what this deployment supports for each operation, and which request and response versions it will accept and serve. Because every operation is versioned independently, this is how a client discovers whether an uplift it wants is available without attempting the call.

This follows the HaaS Data Adapter specification's /meta/endpoints shape and naming - the same operationId, the same path, and the same x-haas-max-v request header - rather than this service's own x-haas-v/payload-discriminator pattern. The two specifications now describe their own capabilities the same way.

Authorizations:
AdminApiOAuth
path Parameters
realmName
required
string
Example: sandbox-holder

Realm name to bound the request to. A client is entitled to the realms of the space its token was issued for.

header Parameters
x-haas-max-v
required
string
Example: V1

The highest response version your client understands. This is a ceiling, not an exact match and is a bound rather than a single value. This deployment serves the highest version it supports that is at or below the ceiling provided, and never a version above it. If it supports no version at or below the provided ceiling the response is 406 Header/UnsupportedVersion.

x-fapi-interaction-id
string <uuid>
Example: 6ba7b814-9dad-11d1-80b4-00c04fd430c8

Caller-supplied correlation identifier, echoed on the response and recorded for the interaction.

Responses

Response samples

Content type
application/json
{
  • "version": "V1",
  • "data": {
    }
}