Overview#
Request a temporary data token before uploading data. The token remains temporary until data is exchanged, and will expire if not used within the specified time-to-live (TTL).Reserve Token Space#
Endpoint: POST /data-token/reserve-token-spaceContent-Type: application/x-www-form-urlencodedRequest Parameters#
| Parameter | Type | Required | Description |
|---|
context | string | Yes | Organizational context for the token (path, namespace, or classification) |
ttl | integer | No | Time-to-live in minutes. Default: 5 minutes |
meta | string | No | Additional metadata for the token |
Context Parameter#
The context parameter is a flexible organizational identifier used to categorize and group tokens. It can represent:File paths: /home/username/documents/financial
Namespaces: project.module.component
Classifications: top-secret, confidential, internal
Organizational units: department.team.project
Custom hierarchies: Any string that helps organize and identify tokens
The context does not affect token functionality but provides a logical grouping mechanism for token management and retrieval.Use Case#
This is the first step in the data token workflow. Reserve a token before you have data ready to upload. The temporary token allocates space in the system and provides a unique identifier for the subsequent data exchange. If the token is not used to exchange data within the TTL period, it will expire and be automatically removed from the system.Tokens are temporary until data is exchanged
Unused tokens expire after the specified TTL
The context parameter helps organize and identify token purposes
Reserve tokens only when you're ready to exchange data within the TTL window