Delete service
Permanently archives a service. The service MUST be inactive (isActive: false) before deletion.
DELETE/api/v1/services/:idWallet JWT
For AI agents
Soft-archives a service. Guard: service MUST be deactivated (via PUT {isActive: false}) first, or this returns 409 SERVICE_DELETE_ACTIVE_CONFLICT.
Requires: Service MUST be deactivated — call PUT /services/:id {isActive: false} first
Parameters
idpath · required
Service ID
Generated OpenAPI reference
DELETE
/api/v1/services/{id}Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
id*string
Service ID
Response Body
application/json
application/json
application/json
curl -X DELETE "https://api-staging.synapse-network.ai/api/v1/services/svc_xyz"{
"status": "success",
"message": "Service deleted"
}{
"code": "SERVICE_NOT_FOUND",
"message": "No service with this ID owned by caller"
}{
"code": "SERVICE_DELETE_ACTIVE_CONFLICT",
"message": "Service is still active — deactivate with PUT {isActive: false} first"
}