Skip to content

Accept terms and conditions

Record acceptance of the currently-in-effect terms and privacy version for this account. All three consents must be true or the request is a 400. Requires a read_write key.

POST
/api/v1/tnc/accept
Try it

Every endpoint, in one place: the full Try it.

Signing happens in your browser with WebCrypto. Your private key is never sent anywhere; Send request sends your key ID and the signature to the demo host above. Only demo hosts are offered. The key ID and private key are saved in this browser's local storage, per jurisdiction, until you click Clear saved key. Use a demo key here, never a production one.

Field Type Required Description
accept_house_rules boolean,null no Acceptance of the house rules. Defaults to accept_terms AND accept_privacy when omitted.
accept_privacy boolean yes Acceptance of the privacy policy. Must be true.
accept_terms boolean yes Acceptance of the terms of use. Must be true.
device_id string yes Identifier for the device recording the acceptance.
Status Description Schema
200 Success object
400 A parameter was missing or invalid. Error
401 Missing, malformed or unrecognized signature, or a timestamp outside the 30-second window. Body: {“error”:“Missing or invalid API key credentials”} Error
403 This API key does not have write access. The account behind this key is not active, for example it is pending approval or suspended. Body: {“error”:“Your account is suspended. Contact support.”}, the message naming the account’s status. With a member’s OAuth token it means an app cannot accept the terms for the member: error is terms_not_delegable, with a terms_url to send the member to. ForbiddenError
422 The acceptance was not recorded: no terms are in effect, the terms changed since you read them, or a consent value was refused. The body’s error says why. Error
503 The terms in effect are still loading. Nothing was recorded; send again. Error

Request:

curl --request POST \
--url 'https://demo.stxapp.io/api/v1/tnc/accept' \
--header 'X-STX-ACCESS-KEY: <key-id>' \
--header 'X-STX-ACCESS-TIMESTAMP: <unix-ms>' \
--header 'X-STX-ACCESS-SIGNATURE: <base64-ed25519>' \
--header 'Content-Type: application/json' \
--data '{
"accept_house_rules": true,
"accept_privacy": true,
"accept_terms": true,
"device_id": "my-device-001"
}'

Response 200:

{
"message": "Success"
}
Field Type Description
message string Always "Success" when the acceptance was recorded.

STX is operated by XV Exchange, LLC, a Designated Contract Market regulated by the U.S. Commodity Futures Trading Commission (CFTC). Contracts traded on STX are cleared by XV Clearing, LLC, a CFTC-registered Derivatives Clearing Organization. Trading involves substantial risk of loss and may not be appropriate for everyone. Members risk losing the cost to enter any transaction, including fees. Consider whether trading is appropriate for you in light of your experience and financial resources. Nothing on this site is investment advice or a recommendation to trade. Past performance is not indicative of future results.

© 2026 STX. All rights reserved.llms.txtllms-full.txtView as Markdown
Docs version v1.10.5