tosCreate Tos Link

Create Tos Link

Mint a hosted-acceptance link.

Untargeted it precedes the customer, pass the signed_tos_id its acceptance yields into POST /api/customers. Pre-targeting a customer_id serves RE-acceptance after a terms-version bump (creation already required an agreement, so the customer exists): acceptance binds straight onto that customer with no follow-up call, the hosted twin of tos_acceptance on PATCH /api/customers/{id}, and refused the same way (409) when that customer is already on the current version.

curl -X POST "https://sandbox.rasto.co/api/tos_links" \
  -H "Content-Type: application/json" \
  -H "Api-Key: example_string" \
  -H "Api-Version: example_string" \
  -H "Idempotency-Key: example_string" \
  -H "Api-Key: YOUR_API_KEY" \
  -d '{
  "redirect_url": "example_string",
  "customer_id": "example_string"
}'
{
  "id": "example_string",
  "object": "example_string",
  "url": "example_string",
  "tos_version": "example_string",
  "status": "example_string",
  "signed_tos_id": "example_string",
  "customer_id": "example_string",
  "created_at": "2024-12-25T10:00:00Z"
}
POST
/api/tos_links
POST
Base URLstring

Target server for requests. Edit to use your own host.

API Key (header: Api-Key)
Api-Keystring
Required

API key (sent in header)

Content-Typestring
Required

The media type of the request body

Options: application/json
header
Api-Versionstring

The /api contract to serve this request under, as an ISO date. Omit to use the default (2026-08-01), omitting it always keeps today's behaviour, so a future breaking change cannot move you. Supported: 2026-08-01.

header
Idempotency-Keystring
Required

Unique per request; a retry with the same key replays the stored response byte-for-byte.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Api-Keystring
Required

API Key for authentication. Provide your API key in the header.

Headers

Api-Versionstring

The /api contract to serve this request under, as an ISO date. Omit to use the default (2026-08-01), omitting it always keeps today's behaviour, so a future breaking change cannot move you. Supported: 2026-08-01.

Idempotency-Keystring
Required

Unique per request; a retry with the same key replays the stored response byte-for-byte.

Responses