curl --request POST \
--url https://api.voice-agents.miraiminds.co/v2/workspace/onboard/shopify \
--header 'Content-Type: application/json' \
--header 'x-private-key: <api-key>' \
--header 'x-public-key: <api-key>' \
--data '
{
"name": "The Leather Co.",
"currencyCode": "INR",
"timezone": "Asia/Kolkata",
"supportContacts": {
"phoneNumber": "+91-9876543210",
"email": "support@brand.com"
},
"trustSignals": {
"valuePropositionOneLiner": "Handcrafted in Jaipur using 100% sustainable vegan leather.",
"customersTillDate": 15400,
"totalOrdersFulfilled": 50000,
"storeRating": 4.8
},
"policyFramework": {
"returnPolicy": {
"windowDays": 7,
"processingFee": {
"amount": 50
},
"refundTimelineDays": 3
},
"shippingPolicy": {
"deliveryTimeline": {
"minDays": 3,
"maxDays": 5
},
"freeShippingMinOrderValue": 999
},
"codPolicy": {
"enabled": true,
"additionalFee": {
"amount": 50
}
}
}
}
'{
"workspace": "4524239459234",
"status": "active",
"billing": {
"type": "prepaid",
"creditBalance": 100,
"negativeCreditAllowance": 100
}
}Uploads the store’s identity, trust metrics, and policies. Returns the Workspace ID and Billing Configuration (Prepaid/Overdraft limits).
curl --request POST \
--url https://api.voice-agents.miraiminds.co/v2/workspace/onboard/shopify \
--header 'Content-Type: application/json' \
--header 'x-private-key: <api-key>' \
--header 'x-public-key: <api-key>' \
--data '
{
"name": "The Leather Co.",
"currencyCode": "INR",
"timezone": "Asia/Kolkata",
"supportContacts": {
"phoneNumber": "+91-9876543210",
"email": "support@brand.com"
},
"trustSignals": {
"valuePropositionOneLiner": "Handcrafted in Jaipur using 100% sustainable vegan leather.",
"customersTillDate": 15400,
"totalOrdersFulfilled": 50000,
"storeRating": 4.8
},
"policyFramework": {
"returnPolicy": {
"windowDays": 7,
"processingFee": {
"amount": 50
},
"refundTimelineDays": 3
},
"shippingPolicy": {
"deliveryTimeline": {
"minDays": 3,
"maxDays": 5
},
"freeShippingMinOrderValue": 999
},
"codPolicy": {
"enabled": true,
"additionalFee": {
"amount": 50
}
}
}
}
'{
"workspace": "4524239459234",
"status": "active",
"billing": {
"type": "prepaid",
"creditBalance": 100,
"negativeCreditAllowance": 100
}
}