Never expose your Secret Key in client-side code, a public repository, or a mobile app bundle. Anyone holding it can edit your PitchPrint account. Use it only from your server.
Generate a signature
Append your API Key + Secret Key + timestamp and take the MD5 hash of the resulting string. That hash is your signature. The timestamp is a UNIX timestamp (seconds since the epoch) and is valid for a one-hour window, so generate a new signature for each request.Sending the request
SendapiKey, timestamp and signature, plus any endpoint-specific fields, as a JSON body. The endpoint for all runtime calls is https://api.pitchprint.io/runtime/.
Pass the parameters as a JSON string, not query-string pairs. For example:
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($opts));Related articles
Fetch Design
Retrieve the source data for a single design by its designId.
Fetch Designs
List all designs under a given category.
Fetch Project
Retrieve the source data for a single project by its projectId.
Clone Project
Clone an existing project associated with your domain.