CLI
# Requires: npm i -g @infinite_dev/cli && export INFINITE_API_KEY=sk_sandbox_...
# Escape hatch for any endpoint: infinite api <METHOD> <path>
infinite api GET /v1/tos/<id>/hosted-contextGet hosted ToS page context (<id>).import requests
url = "https://sandbox.api.infinite.dev/v1/tos/{id}/hosted-context"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sandbox.api.infinite.dev/v1/tos/{id}/hosted-context', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.api.infinite.dev/v1/tos/{id}/hosted-context",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.api.infinite.dev/v1/tos/{id}/hosted-context"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.api.infinite.dev/v1/tos/{id}/hosted-context")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.api.infinite.dev/v1/tos/{id}/hosted-context")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "tos_abc123",
"organizationId": "org_abc123",
"customerId": "cus_abc123",
"countryCode": "US",
"customerType": "BUSINESS",
"isEreborEnabled": false,
"isOneMoneyEnabled": true,
"isDueEnabled": false,
"isRelatedPersonAcceptance": false,
"acceptedAt": null
}Terms Of Service
Get hosted ToS page context
Returns non-PII context for the verify-web hosted ToS acceptance page.
GET
/
v1
/
tos
/
{id}
/
hosted-context
CLI
# Requires: npm i -g @infinite_dev/cli && export INFINITE_API_KEY=sk_sandbox_...
# Escape hatch for any endpoint: infinite api <METHOD> <path>
infinite api GET /v1/tos/<id>/hosted-contextGet hosted ToS page context (<id>).import requests
url = "https://sandbox.api.infinite.dev/v1/tos/{id}/hosted-context"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sandbox.api.infinite.dev/v1/tos/{id}/hosted-context', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.api.infinite.dev/v1/tos/{id}/hosted-context",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.api.infinite.dev/v1/tos/{id}/hosted-context"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.api.infinite.dev/v1/tos/{id}/hosted-context")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.api.infinite.dev/v1/tos/{id}/hosted-context")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "tos_abc123",
"organizationId": "org_abc123",
"customerId": "cus_abc123",
"countryCode": "US",
"customerType": "BUSINESS",
"isEreborEnabled": false,
"isOneMoneyEnabled": true,
"isDueEnabled": false,
"isRelatedPersonAcceptance": false,
"acceptedAt": null
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
ToS acceptance ID
Response
200 - application/json
Hosted page context
ToS acceptance ID
Example:
"tos_abc123"
Organization ID
Example:
"org_abc123"
Customer ID when known
Example:
"cus_abc123"
ISO 3166-1 alpha-2 country for partner agreement gating
Example:
"US"
BUSINESS or INDIVIDUAL
Example:
"BUSINESS"
Whether Erebor account agreements must be shown
Example:
false
Whether customer onboarding partner disclosures apply
Example:
true
Whether Due platform terms apply (EUR payout capability requested)
Example:
false
When set, acceptance is for a related person (UBO) session
Example:
false
When fully accepted, ISO timestamp; otherwise null
Example:
null
Was this page helpful?