Skip to main content
POST
/
v1
/
query
/
get-tos-acceptance-link
Get Bridge ToS link
curl --request POST \
  --url https://api.byzantine.fi/v1/query/get-tos-acceptance-link \
  --header 'Content-Type: application/json' \
  --header 'X-Pubkey: <api-key>' \
  --header 'X-Signature: <x-signature>' \
  --header 'X-Timestamp: <x-timestamp>' \
  --data '{
  "redirectUri": "https://app.example.com/tos/callback"
}'
{
  "hostedUrl": "https://bridge.xyz/tos/accept?token=..."
}

Authorizations

X-Pubkey
string
header
required

Integrator's ECDSA public key (P-256 curve, compressed SEC1 format). Example: 0x038fedef7c12f93bbf342ad8943b7a825a3b41f61c9dc118b2c718efebabbf62fd

Headers

X-Timestamp
string
required

Unix timestamp in seconds (UTC). Must be within tolerance window (1 minute) to prevent replay attacks. Example: 1760375826

X-Signature
string
required

ECDSA signature (DER-encoded, hex with 0x prefix). Signs the message: {timestamp}{METHOD}{path_and_query}{json_body}. Example: 0x3045022100...

Body

application/json
redirectUri
string | null

Optional redirect URI to append to the hosted URL returned by Bridge

Example:

"https://app.example.com/tos/callback"

Response

Hosted ToS acceptance URL received

hostedUrl
string
required
Example:

"https://bridge.xyz/tos/accept?token=..."