Delete Contact Request
Permanently remove a contact request from the system. This operation cannot be undone.
πΉ Endpoint Detailsβ
DELETE /api/v1/contact-requests/{id}
π Authenticationβ
| Header | Required | Description |
|---|---|---|
| Content-Type | Yes | Must be application/json |
| Authorization | Yes | Format: ONLIVESITE Credential:ONLIVEAccessKeyId, Signature=CalculatedSignature |
π Path Parametersβ
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string (UUID) | Yes | ID of the contact request to delete |
π§© Request Exampleβ
curl -X DELETE "https://openapi.onlive.site/api/v1/contact-requests/123e4567-e89b-12d3-a456-426614174000" \
-H "Content-Type: application/json" \
-H "Authorization: ONLIVESITE Credential:ONLIVEAccessKeyId, Signature=CalculatedSignature"
π₯ Responseβ
Success Response (200 OK)β
Returns the deleted Contact Request entity.
Response Exampleβ
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"organizationId": "123e4567-e89b-12d3-a456-426614174001",
"organizationName": "Acme Inc.",
"type": "contactmeback",
"status": "rejected",
"preferredContact": "email",
"name": "John Doe",
"phone": "+33612345678",
"message": "Please send me a copy of the contract",
"relatedService": "7a96c97a-bcf9-42df-984a-051c0fb8487e",
"extraFields": { "department": "Sales" },
"userGroupId": "550e8400-e29b-41d4-a716-446655440000",
"userGroup": "Sales Team",
"taxonomies": ["/model/contact-request"],
"externalId": "frm_abc123",
"communicationLogs": [],
"countCommunicationLogs": 0,
"createdAt": "2025-05-13T15:00:00Z",
"updatedAt": "2025-05-13T17:05:22Z"
}
β Error Responsesβ
| Status | Description |
|---|---|
| 404 | Contact request not found |
This endpoint follows the standard error format.
π Notesβ
- Deletion is permanent and cannot be undone
- The contact request must belong to your organization
- You must have appropriate permissions to delete contact requests
β Common Use Casesβ
- π§Ή Cleanup: Remove duplicate or test contact requests
- π Compliance: Erase contact requests on right-to-be-forgotten requests
- ποΈ Spam: Discard contact requests flagged as spam