Approve earn provider terms of service

Approves the lending provider's terms of service for this workspace. When isTermsApprovalRequired is true on the provider (see list providers), call this once before creating or executing earn actions with that provider. After success, GET /earn/providers reflects isTermsOfServiceApproved.

Note: This endpoint is currently in beta and might be subject to changes.

Path Params
string
enum
required

Stable protocol identifier for the earn provider (MORPHO or AAVE).

Allowed:
Headers
string

A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.

Responses

Language
URL
LoadingLoading…
Response
Choose an example:
*/*
application/json