Contracts

get

Gets Consent Flow Contract Details

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
uristringRequired
Responses
200

Successful response

application/json
get
/consent-flow-contract

Create Consent Flow Contract

post

Creates a Consent Flow Contract for a profile

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
namestringRequired
subtitlestringOptional
descriptionstringOptional
reasonForAccessingstringOptional
needsGuardianConsentbooleanOptional
redirectUrlstringOptional
frontDoorBoostUristringOptional
imagestringOptional
expiresAtstringOptional
writersstring[]Optional
Responses
200

Successful response

application/json
Responsestring
post
/consent-flow-contract
delete

This route deletes a Consent Flow Contract

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
uristringRequired
Responses
200

Successful response

application/json
Responseboolean
delete
/consent-flow-contract

Get Consent Flow Contracts

post

Gets Consent Flow Contracts for a profile

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
limitnumberOptionalDefault: 25
cursorstringOptional
sortstringOptional
Responses
200

Successful response

application/json
post
/consent-flow-contracts

Get the data that has been consented for a contract

post

This route grabs all the data that has been consented for a contract

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
limitnumberOptionalDefault: 25
cursorstringOptional
sortstringOptional
uristringRequired
Responses
200

Successful response

application/json
post
/consent-flow-contract/data-for-contract

Get the data that has been consented by a did

post

This route grabs all the data that has been consented by a did

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
limitnumberOptionalDefault: 25
cursorstringOptional
sortstringOptional
didstringRequired
Responses
200

Successful response

application/json
post
/consent-flow-contract/data-for-did

Get the data that has been consented for all of your contracts

post

This route grabs all the data that has been consented for all of your contracts

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
limitnumberOptionalDefault: 25
cursorstringOptional
sortstringOptional
Responses
200

Successful response

application/json
post
/consent-flow-contract/data

Writes a boost credential to a did that has consented to a contract

post

Writes a boost credential to a did that has consented to a contract

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
didstringRequired
contractUristringRequired
boostUristringRequired
credentialany ofRequired
or
Responses
200

Successful response

application/json
Responsestring
post
/consent-flow-contract/write

Write credential through signing authority for a DID consented to a contract

post

Issues and sends a boost credential via a registered signing authority to a DID that has consented to a contract.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
didstringRequired
contractUristringRequired
boostUristringRequired
Responses
200

Successful response

application/json
Responsestring
post
/consent-flow-contract/write/via-signing-authority

Consent To Contract

post

Consents to a Contract with a hard set of terms

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
contractUristringRequired
expiresAtstringOptional
oneTimebooleanOptional
recipientTokenstringOptional
Responses
200

Successful response

application/json
post
/consent-flow-contract/consent

Gets Consented Contracts

post

Gets all consented contracts for a user

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
limitnumberOptionalDefault: 25
cursorstringOptional
sortstringOptional
Responses
200

Successful response

application/json
post
/consent-flow-contracts/consent

Updates Contract Terms

post

Updates the terms for a consented contract

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
uristringRequired
expiresAtstringOptional
oneTimebooleanOptional
Responses
200

Successful response

application/json
Responseboolean
post
/consent-flow-contract/consent/update
delete

Withdraws consent by deleting Contract Terms

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
uristringRequired
Responses
200

Successful response

application/json
Responseboolean
delete
/consent-flow-contract/consent/withdraw

Gets Transaction History

post

Gets the transaction history for a set of Consent Flow Contract Terms

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
limitnumberOptionalDefault: 25
cursorstringOptional
sortstringOptional
uristringRequired
Responses
200

Successful response

application/json
post
/consent-flow-contract/consent/history
get

Checks if a profile has consented to the specified contract

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
uristringRequired
profileIdstringRequired
Responses
200

Successful response

application/json
Responseboolean
get
/consent-flow-contract/verify

Sync credentials to a contract

post

Syncs credentials to a contract that the profile has consented to

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
termsUristringRequired
Responses
200

Successful response

application/json
Responseboolean
post
/consent-flow-contract/sync

Get credentials issued via a contract

post

Gets all credentials that were issued via a contract

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
limitnumberOptionalDefault: 25
cursorstringOptional
sortstringOptional
termsUristringRequired
includeReceivedbooleanOptionalDefault: true
Responses
200

Successful response

application/json
post
/consent-flow-contract/credentials

Get all credentials written to any terms

post

Gets all credentials that were written to any terms owned by this profile

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
limitnumberOptionalDefault: 25
cursorstringOptional
sortstringOptional
includeReceivedbooleanOptionalDefault: false
Responses
200

Successful response

application/json
post
/consent-flow-contracts/credentials

Add autoboosts to a contract

post

Adds one or more autoboost configurations to an existing consent flow contract. The caller must be the contract owner or a designated writer. The signing authority for each autoboost must be registered to the caller.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
contractUristringRequired
Responses
200

Successful response

application/json
Responseboolean
post
/consent-flow-contracts/autoboosts/add

Remove autoboosts from a contract

post

Removes one or more autoboosts from an existing consent flow contract, identified by their boost URIs. The caller must be the contract owner or a designated writer.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
contractUristringRequired
boostUrisstring[]Required
Responses
200

Successful response

application/json
Responseboolean
post
/consent-flow-contracts/autoboosts/remove

AI Insights, consent flow notifcation request

post

Sends the targeted user an AI insights consent flow request via a notification

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
contractUristringRequired
targetProfileIdstringRequired
shareLinkstringRequired
Responses
200

Successful response

application/json
Responseboolean
post
/consent-flow-contracts/ai-insights/request

AI Insights, consent flow share-notifcation request

post

Sends the targeted user an AI insights share notification

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
childProfileIdstringOptional
targetProfileIdstringRequired
shareLinkstringRequired
Responses
200

Successful response

application/json
Responseboolean
post
/consent-flow-contracts/ai-insights/share-request
get

Gets a list of users and their request statuses for a given contract.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
contractUristringRequired
Responses
200

Successful response

application/json
get
/consent-flow-contracts/sent-requests
get

Returns the request status and read status for a given profile in a specific contract.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
contractIdany ofOptional
stringOptional
or
nullOptional
contractUriany ofOptional
stringOptional
or
nullOptional
targetProfileIdstringRequired
Responses
200

Successful response

application/json
Responseany of
or
nullOptional
get
/consent-flow-contracts/request-status

Marks a contract request as seen

post

Updates the read status of a contract request to "seen" for the specified target profile. Only contract writers are authorized to perform this action.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
contractUristringRequired
targetProfileIdstringRequired
Responses
200

Successful response

application/json
Responseboolean
post
/consent-flow-contracts/mark-request-as-seen

Cancels/removes a contract request

post

Removes a REQUESTED_FOR relationship, cancelling the request sent to the specified target profile. Only contract writers are authorized to perform this action.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
contractUristringRequired
targetProfileIdstringRequired
Responses
200

Successful response

application/json
Responseboolean
post
/consent-flow-contracts/cancel-request
get

Gets all contract requests from all contracts for a specified target profile. Users can query their own requests.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
targetProfileIdstringRequired
Responses
200

Successful response

application/json
get
/consent-flow-contracts/all-requests-for-profile

Forward a contract request

post

Forwards a contract request to another profile

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
parentProfileIdstringRequired
targetProfileIdstringRequired
contractUristringOptional
Responses
200

Successful response

application/json
Responseboolean
post
/consent-flow-contracts/forward-request-to-profile

Last updated

Was this helpful?