Deletes a project by its ID. The project must belong to the organization. Requires an organization admin API key (ASA_ prefix). No OTP verification is required for admin API key callers.
curl --request DELETE \
--url https://api.autosend.com/v1/account/projects/60d5ec49f1b2c72d9c8b1234 \
--header 'Authorization: Bearer ASA_your-admin-api-key'
{
"success": true,
"message": "Project deleted successfully"
}
ASA_ prefix). Standard project API keys cannot access this endpoint.curl --request DELETE \
--url https://api.autosend.com/v1/account/projects/60d5ec49f1b2c72d9c8b1234 \
--header 'Authorization: Bearer ASA_your-admin-api-key'
{
"success": true,
"message": "Project deleted successfully"
}
ASA_<key>. Standard project API keys (AS_ prefix) will receive a 403 error."60d5ec49f1b2c72d9c8b1234"true"Project deleted successfully"{
"success": false,
"error":{
"message":"This endpoint requires an organization admin API key (ASA_ prefix)"
}
}
projectId parameter is not a valid MongoDB ObjectId.{
"success": false,
"error": [
{
"message": "Invalid project ID"
}
]
}
{
"success": false,
"error": {
"message": "Project not found"
}
}
curl --request DELETE \
--url https://api.autosend.com/v1/account/projects/60d5ec49f1b2c72d9c8b1234 \
--header 'Authorization: Bearer ASA_your-admin-api-key'
{
"success": true,
"message": "Project deleted successfully"
}