Skip to content

Move agent to the trash

DELETE
/agents/{id}
curl --request DELETE \
--url https://api.somebodyai.co/api/v1/agents/507f1f77bcf86cd799439011 \
--header 'Authorization: Bearer <token>'

Moves an agent to the trash, where it is hidden and unplayable but can be restored for 30 days via POST /agents/trash/{id}/restore. DELETE /agents/trash/{id} removes it for good.

id
required

MongoDB ObjectId

string
/^[a-fA-F0-9]{24}$/

MongoDB ObjectId

Agent deleted

Media typeapplication/json
object
success
required
boolean
Example
{
"success": true
}

Unauthorized - missing or invalid auth

Media typeapplication/json
object
error
required
string
details
Array<string>
Example
{
"error": "Resource not found",
"details": [
"Field is required"
]
}

Resource not found

Media typeapplication/json
object
error
required
string
details
Array<string>
Example
{
"error": "Resource not found",
"details": [
"Field is required"
]
}