Gift links
Upload a large source import in parts
For a source import too large for POST /campaigns/{id}/distribution/imports: send the UTF-8 import JSON as base64 parts (up to 384, 150,000 bytes each before encoding). Keep uploadId, partCount, totalBytes and each part's bytes identical on retries. complete turns true once every part is saved and the import is validated; while another request assembles it the response carries retryAfterMs (resend the same last part after it). Uploads expire after 6 hours. Accepts an MCP OAuth token with gifts:write.
post/campaigns/{id}/distribution/import-chunks
Request
- Base URL: https://gtmswag.com/api/v1
- URL: https://gtmswag.com/api/v1/campaigns/{id}/distribution/import-chunks
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL https://gtmswag.com/oauth/authorize, token URL https://gtmswag.com/oauth/token, scopes: gifts:write)
Path parameters
idstring required
Campaign or playbook ID (cmp_).
Request body
Response
Success: {"data": SourceUploadProgress}.
Changes
No recorded changes to this operation across all 1 revision of this API.