Profile APIs

The Profile APIs allow users to manage their Hedera account credentials, DID documents, and policy keys.

Base URL: /api/v1/profiles

Authentication: All endpoints require a valid JWT Bearer token (Authorization: Bearer <token>). Obtain a token via POST /accounts/login.


Endpoints

Method
Endpoint
Description
Auth Required

GET

/profiles/{username}/

Returns user account info

Yes

PUT

/profiles/{username}

Sets Hedera credentials for a user (synchronous)

Yes

PUT

/profiles/push/{username}

Sets Hedera credentials for a user (asynchronous)

Yes

GET

/profiles/{username}/balance

Returns the Hedera account balance for the specified user

Yes

PUT

/profiles/restore/{username}

Restores user data (policy, DID/VC documents) from Hedera topics

Yes

PUT

/profiles/restore/topics/{username}

Returns list of available recovery topics for a user's Hedera account

Yes

POST

/profiles/did-document/validate

Validates the format and structure of a DID document

Yes

POST

/profiles/did-keys/validate

Validates the keys within a DID document

Yes

GET

/profiles/keys

Returns a paginated list of existing policy signing keys

Yes

POST

/profiles/keys

Creates a new policy signing key

Yes

DELETE

/profiles/keys/{id}

Deletes a signing key by ID

Yes


Endpoint Details

Was this helpful?