š Authentication
All request categories that process uploads or trigger generations must authenticate using a private API key.
To authorize your request, include the following custom header in your HTTP payloads:
You can generate, retrieve, and manage your API keys inside the SnapIt Developer Console (sdk.snapmydesign.com).
Required Header
X-API-Key: smd_live_your_api_key_hereSecurity Notice
Keep your API key secure. Do not share it publicly or expose it in client-side code (browsers/mobile apps). Always route API calls through your backend service to keep the API key safe.Authenticated Request Example
Here is a typical cURL request demonstrating where to insert the header token:
cURL Header Template
curl -X POST "https://apigcp.snapmydesign.com/api/v1/vton/generate" \
-H "X-API-Key: smd_live_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"model_name": "medium",
"inputClothesImageUrls": ["https://assets.url/..."]
}'