Skip to content

Your starting point

The team has a namespace for the supplier certificate service and a first tenant to work with: Costa Frames. Before any code runs, the team needs a short list of facts from Danube Cloud’s platform team. It also needs a way to prove to the platform which workload is calling.

ItemExampleYou use it for
Participant context IDcosta-framesThe path of every Management API call for this member
DIDdid:web:identity.danube-cloud.example:costa-framesThe identity that other participants see
Management APIhttps://danube-cloud.example/api/management/v5/participants/costa-framesOffers, negotiations, and transfers
DSP addresshttps://danube-cloud.example/api/dsp/costa-frames/bike-dataspaceThe address at which counterparties reach this member’s connector
Profile namebike-dataspaceThe profile field of catalog, contract, and transfer requests
Token endpointhttps://danube-cloud.example/api/auth/tokenExchanging the token of your workload
Siglet token APIhttps://danube-cloud.example/api/sigletThe access tokens of data flows
Event streamA NATS JetStream stream with the subjects events.>State changes of negotiations and transfers

A participant context is the part of a shared connector that belongs to one member. This path writes readable IDs such as costa-frames. Real IDs are generated by the platform. Store them, and never derive them from a company name.

The supplier certificate service has no password for the Management API. It runs under a Kubernetes service account, and the platform accepts the token of that service account as proof of the workload’s identity. The application exchanges this token for a short-lived access token that is valid for one participant context. The mechanism is OAuth 2.0 token exchange.

Terminal window
curl -X POST "https://danube-cloud.example/api/auth/token" \
--data-urlencode "grant_type=urn:ietf:params:oauth:grant-type:token-exchange" \
--data-urlencode "subject_token=$SERVICE_ACCOUNT_TOKEN" \
--data-urlencode "subject_token_type=urn:ietf:params:oauth:token-type:jwt" \
--data-urlencode "resource=costa-frames" \
--data-urlencode "scope=management-api:assets:read" \
--data-urlencode "audience=edcv"
ParameterMeaning
subject_tokenThe service account token of your workload
resourceThe participant context you act for
scopeWhat the next call needs, in the form management-api[:resource]:action with the actions read, write, and admin
audienceThe audience that the platform’s APIs expect. The operator tells you the value. edcv is the default of the platform chart.

The response contains access_token and expires_in. Send the access token as a bearer token with your API calls.

The exchange succeeds only if the operator registered your service account for that participant context. The registration lists the scopes you may request. Treat it as a ceiling, and ask for the one narrow scope that a call needs.

A multi-tenant application repeats the exchange per member. The resource parameter selects the tenant, and the resulting token works for that participant context only.

Management API bodies are JSON-LD. In practice this means two fixed fields in every body:

  • @context with the value https://w3id.org/edc/connector/management/v2;
  • @type with the kind of object, for example Asset or CatalogRequest.

You do not need a JSON-LD library to write or read these bodies. The connector checks each body against a JSON schema and lists the problems when a field is missing or misspelled.

List the assets of the participant context. On a new context the list is empty. An empty list with status 200 proves that the address, the token, and the scope are right.

POST /api/management/v5/participants/costa-frames/assets/request HTTP/1.1
Host: danube-cloud.example
Authorization: Bearer <access token>
Content-Type: application/json
{
"@context": ["https://w3id.org/edc/connector/management/v2"],
"@type": "QuerySpec",
"limit": 10
}
StatusMeaning
200The call worked.
400The body does not match the schema.
401The token is missing, expired, or not accepted.
403The token is valid and lacks the scope that this endpoint requires.

Brandt Batteries runs a connector for one participant. Its developers follow the same lectures with these differences.

Managed platformOwn connector
API version, at the time of writingv5v4
Path/v5/participants/costa-frames/assets/v4/assets
AuthenticationBearer token from the token exchangeAn API key in the X-Api-Key header, or tokens of your own identity provider
Request bodiesThe sameThe same
  • The operator gives you a participant context ID, a DID, the API addresses, and the profile name of the dataspace.
  • A workload exchanges its service account token for a short-lived token that is scoped to one participant context.
  • Request the narrowest scope that a call needs. The operator’s registration is the ceiling.
  • Every Management API body carries the same @context and a @type.
  • A self-hosted connector uses version 4 of the API and an API key. The request bodies are the same.