cURL
curl --request POST \ --url https://grid.squads.xyz/api/compliance/v1/entities/{id}/tos \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'x-grid-environment: <x-grid-environment>' \ --data ' { "acceptance_method": "<string>", "client_ip": "<string>", "client_user_agent": "<string>" } '
{ "data": { "accepted": true, "accepted_at": "2023-11-07T05:31:56Z", "providers": [ { "provider": "<string>", "signed_agreement_id": "<string>", "version": "<string>" } ] }, "metadata": { "request_id": "<string>", "timestamp": "2023-11-07T05:31:56Z" } }
Your Grid API key from the Grid Dashboard
Solana network environment (sandbox, devnet, mainnet)
Entity ID
How the user accepted: checkbox, click, link, or api
End user's IP address (captured by your frontend)
End user's browser user agent
TOS accepted successfully
Show child attributes
Was this page helpful?