Get Mock Data
Changed onRetrieve the mock data (input payload, recipient, tenant, actor settings) for a template. Used for previewing and testing.
get/v2/{workspace}/template/{template_slug}/mock_data/
Request
- Base URLhttps://management-api.suprsend.com
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
workspacestring required
template_slugstring required
Query parameters
mode'draft' | 'live'
Response
Mock data retrieved. Returns both the raw data (what the user configured) and the transformed_data (resolved values including tenant, recipient, actor properties, and batched events).
Changes
- breaking
response property
detaillist-of-types was widened by adding typesarray and objectto media typeapplication/jsonof response401 - breaking
response property
detaillist-of-types was widened by adding typesarray and objectto media typeapplication/jsonof response404
- breaking