Skip to main content

agreements

GoDaddy Domains v1 API. Accepts a Personal Access Token (Bearer) or a classic sso-key credential.

Overview

Nameagreements
TypeResource
Idgodaddy.registration.agreements

Fields

The following fields are returned by SELECT queries:

Request was successful

NameDatatypeDescription
agreement_keystringUnique identifier for the legal agreement (wire: agreementKey)
contentstringContents of the legal agreement, suitable for embedding
titlestringTitle of the legal agreement
urlstring (url)URL to a page containing the legal agreement

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselecttlds, privacyx_market_id, for_transferReturns the TLD-specific legal agreements that must be accepted before purchase or transfer. The agreementKeys from this response are required in the consent object.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
privacybooleanWhether or not privacy has been requested
tldsarraylist of TLDs whose legal agreements are to be retrieved
for_transferbooleanWhether or not domain tranfer has been requested (wire: forTransfer)
x_market_idstring (bcp-47)Unique identifier of the Market used to retrieve/translate Legal Agreements (wire: X-Market-Id)

SELECT examples

Returns the TLD-specific legal agreements that must be accepted before purchase or transfer. The agreementKeys from this response are required in the consent object.

SELECT
agreement_key,
content,
title,
url
FROM godaddy.registration.agreements
WHERE tlds = '{{ tlds }}' -- required
AND privacy = '{{ privacy }}' -- required
AND x_market_id = '{{ x_market_id }}'
AND for_transfer = '{{ for_transfer }}'
;