Privicore
  1. Data Token
Privicore
  • Privicore API
  • Utility
    • Utility
    • Check server health
      GET
    • Request command id status
      GET
  • Profile
    • Profile Model and Authentication Workflow
    • Register new profile
      POST
    • Authenticate
      POST
    • Retrieve profile id
      GET
    • Change password
      POST
    • Generate qr token for authorization
      POST
    • Reauthorize authorization token
      POST
    • Revoke authorization token
      POST
    • Retrieve token expiry
      POST
  • OAuth Application
    • OAuth Application Management
    • Register OAuth Application
      POST
    • Retrieve OAuth app configuration
      POST
    • Request OAuth app authorization code
      GET
    • Retrieve OAuth app authorization code
      POST
    • Obtain OAuth app access token
      POST
    • OAuth application list
      GET
    • Retrieve OAuth application scope
      GET
    • Refresh OAuth app access token
      POST
  • Public key
    • Public and Private Key Management
    • Generate your private and public keys
    • Register public key
    • Retrieve public key
    • Retrieve CAB public key
  • Data Token
    • Data Token Management
    • Reserve token space
      POST
    • Retrieve temporary data token
      GET
    • Exchange data for token
      POST
    • Upstream file via stream auth
      POST
    • Request data via token
      POST
    • Download data
      GET
    • Configure information security risk meta
      POST
    • Configure file meta
      POST
    • List data tokens
      GET
    • Update data token
      POST
    • Delete data
      POST
  • Device
    • Device Management
    • Request unique identifier (i.e. Register new device)
    • Retrieve unique identifier
    • Retrieve profile devices
    • Configure device meta
    • Approve device
    • Reject device
    • Retrieve device configuration
    • Remove device
  • Storage
    • Storage Device Management
    • Register storage device
    • List storage devices
    • Synchronize device
    • Remove storage
  • Verified authenticator
    • Authenticator and Voting Management
    • Register authenticator
    • List verified authenticators
    • Retrieve voting strategy
    • Set quorum size
    • Set quorum strategy
    • Set voting time limit
    • Set maximum voting attempts
    • Remove authenticator
    • Register voting configuration
    • Update voting configuration
    • List voting configurations
    • Retrieve voting configuration
  • Policy
    • List policy templates
    • Register policy
    • List active policies
    • List inactive policies
    • Activate policy
    • Deactivate policy
    • Delete policy
    • List registered policies
    • Retrieve registered policy
  • Directory
    • Register Directory
    • Retrieve owned Directories
    • Retrieve assigned directories
    • Retrieve Directory
    • Create Directory User
    • Update user information
    • Invite Profile
    • Set profile password
    • List Directory Invites
    • Process Invitation
    • Retrieve directory profile
    • List directory users
    • Directory profiles info
    • Create profile device
    • Add storage device to profile
    • List directory devices
    • Create directory voting pool
    • Store directory meta information
  • Voting
    • Create voting
    • Check pool status
  • Schemas
    • Response
      • CommandAccepted
      • Unauthorized
      • ValidationErrors
    • Schemas
    • profileId
    • deviceIdentifier
    • directoryId
    • directoryName
    • directoryShortName
    • givenName
    • familyName
    • createdAt
    • meta
  1. Data Token

Upstream file via stream auth

POST
/

Overview#

Upload large files or data streams to a separate streaming server using authenticated streaming. This method is suitable for large payloads that are impractical to send via direct data exchange.

Upstream File via Stream Auth#

Endpoint: POST /
Authentication: Required (Stream authentication token as query parameter)

Query Parameters#

ParameterTypeRequiredDescription
authstringYesUpstream authentication token obtained from retrieve temporary data token

Request#

The request body contains the file or data stream to upload.
Full URL Format:
{stream_server_id}:{stream_server_port}/?auth={stream_authentication_token}

Use Case#

Use this endpoint for streaming large files directly to the storage infrastructure. The streaming server details (stream_server_id, stream_server_port) and authentication token (auth) are provided in the response from the retrieve temporary data token endpoint.
This method supports progressive upload without loading entire files into memory, making it efficient for large files or bandwidth-constrained environments. After successful upload, the data is encrypted by Privicore and routed to devices, completing the token exchange process.
Stream authentication token is single-use and tied to the specific token reservation
Upload must complete before the token's TTL expires
The streaming server may be separate from the main Privicore API server
After successful upload, the temporary token becomes permanent

Request

Query Params

Body Params application/octet-stream
Not configured

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift

Responses

🟢200Success
application/json
Upload status for each chunk of the file.
Body

Example
[
    {
        "chunk": 0,
        "streamSize": 0,
        "received": 0,
        "name": "string",
        "context": "string",
        "started": "2019-08-24T14:15:22Z",
        "current": "2019-08-24T14:15:22Z",
        "delta": 0
    }
]
🟠400400
Modified at 2025-12-12 14:17:08
Previous
Exchange data for token
Next
Request data via token
Built with