Get the latest version of an agreement if unaccepted

This endpoint returns the latest version of an agreement if the organization did not accept it yet.

GET /agreements/latest-unaccepted

Permissions Required

  • Agreements:Acceptance:Read

Query string parameters

Query string parameter
Required/Optional
Description
Type

agreementType

Required

The type of the agreement to return its latest version

String

Response

When the latest version of the given agreement type is already signed, this endpoint returns NULL

{
    "latestAgreement": null
}

Otherwise, it will return the agreement data to be read and sign.

{
    "latestAgreement": {
        "id": "88adc4fb-2e98-4679-9a10-cb1b8d44c1ac",
        "agreementUrl": "https://support.uniswap.org/hc/en-us/articles/30934457771405-Uniswap-Labs-Privacy-Policy",
        "details": "Uniswap Privacy Policy",
        "agreementType": "UniswapPrivacyPolicy"
    }
}

Last updated