Skip to main content

Publish Bundle

  • Method: POST
  • URL: https://api.tokportal.com/bundles-publish
  • Auth: X-API-Key

Body:

{ "bundle_id": "<uuid>" }

Success response example:

{ "success": true, "bundle_id": "<uuid>", "debited": 42.0 }

Example:

curl -s -X POST -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \
-d '{"bundle_id":"'$BUNDLE_ID'"}' \
https://api.tokportal.com/bundles-publish

Errors:

  • invalid_api_key (401)
  • not_owner_or_not_found (403)
  • already_published (400)
  • insufficient_funds (402/422)

Notes:

  • Wallet is charged exactly once at publish time based on the bundle total_price (account, videos, and selected options).