Generate Review Link (Create Project)
Written By Team BugSmash
Last updated 6 days ago
METHOD: POST
URL: https://api.bugsmash.io/api/v2/project/generate-review-link
HEADERS:
X-API-Key: YOUR_API_KEY
----------------------------------------------------------------------
For Websites:
Content-Type: application/json
REQUEST BODY:
{
"projectName": "Website Review",
"projectType": "website",
"websiteUrl": "https://example.com",
"anonymousComments": true, // If enabled, guests can leave comments without logging in
"privateComments": false // If enabled, guests see only their own comments (requires anonymous_comments: false)
}
CURL:
curl --location 'https://api.bugsmash.io/api/v2/project/generate-review-link' \
--header 'X-API-Key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"projectName": "Website Review",
"projectType": "website",
"websiteUrl": "https://example.com",
"anonymousComments": true
}'
RESPONSE:
{
"status": true,
"message": "Success",
"project": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Website Review",
"review_link": "https://app.bugsmash.io/review/AbCdE"
}
}
----------------------------------------------------------------------
For Files (PDF / Video / Audio):
Content-Type: multipart/form-data
FORM DATA:
{
"projectName": "Home Screen Design",
"projectType": "pdf", // Accepts: pdf / video / audio
"file": YOUR_FILE_HERE,
"anonymousComments": true, // If enabled, guests can leave comments without logging in
"privateComments": false // If enabled, guests see only their own comments (requires anonymous_comments: false)
}
CURL:
curl --location 'https://api.bugsmash.io/api/v2/project/generate-review-link' \
--header 'X-API-Key: YOUR_API_KEY' \
--form 'projectType="pdf"' \
--form 'anonymousComments="true"' \
--form 'file=@"/path/to/your/file.pdf"' \
--form 'projectName="Home Screen Design"'
RESPONSE:
{
"status": true,
"message": "Success",
"project": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Home Screen Design",
"review_link": "https://app.bugsmash.io/review/FgHiJ"
}
}
----------------------------------------------------------------------
For Images:
Content-Type: multipart/form-data
FORM DATA:
{
"projectName": "Q2 Social Creatives",
"projectType": "image",
"files[]": YOUR_FILE_ARRAY_HERE, // Accepts up to 25 images at once
"anonymousComments": false,
"privateComments": false
}
CURL:
curl --location 'https://api.bugsmash.io/api/v2/project/generate-review-link' \
--header 'X-API-Key: YOUR_API_KEY' \
--form 'projectType="image"' \
--form 'files[]=@"/path/to/thumbnail.png"' \
--form 'files[]=@"/path/to/poster.png"' \
--form 'files[]=@"/path/to/background.png"' \
--form 'projectName="Q2 Social Creatives"' \
--form 'anonymousComments="false"'
RESPONSE:
{
"status": true,
"message": "Success",
"project": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Q2 Social Creatives",
"review_link": "https://app.bugsmash.io/review/KlMnO"
}
}