Saltar al contenido principal

Get Contact Request

Retrieve detailed information about a specific contact request by its ID.

🔹 Endpoint Details​

GET /api/v1/contact-requests/{id}

🔒 Authentication​

HeaderRequiredDescription
Content-TypeYesMust be application/json
AuthorizationYesFormat: ONLIVESITE Credential:ONLIVEAccessKeyId, Signature=CalculatedSignature

📝 Path Parameters​

ParameterTypeRequiredDescription
idstring (UUID)YesUnique identifier of the contact request

🧩 Request Example​

curl -X GET "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 Format (HTTP 200)​

See Contact Request Properties for the full entity schema.

FieldTypeDescription
idstring (UUID)Unique identifier
organizationIdstring (UUID)Owning organization
organizationNamestringDenormalized organization name
typeenumcontactmeback | keepmeinformed
statusenumpending | accepted | rejected
preferredContactenumemail | phone | whatsapp
namestringContact name
emailstringContact email
phonestringContact phone
messagestringFree-form message
relatedServicestring (UUID)Related service ID
extraFieldsobjectCustom metadata
agentIdstring (UUID)Assigned agent
agentCommentstringAgent comment
userGroupIdstring (UUID)Assigned user group
userGroupstringDenormalized user group name
taxonomiesarray of stringsTaxonomy tags
externalIdstringExternal identifier
communicationLogsarray of objectsAudit trail of messages/calls
countCommunicationLogsnumberCommunication log count
createdAtstring (ISO 8601)Creation timestamp
updatedAtstring (ISO 8601)Last update timestamp

Response Example​

{
"id": "123e4567-e89b-12d3-a456-426614174000",
"organizationId": "123e4567-e89b-12d3-a456-426614174001",
"organizationName": "Acme Inc.",
"type": "contactmeback",
"status": "pending",
"preferredContact": "email",
"name": "John Doe",
"email": "[email protected]",
"phone": "+33612345678",
"message": "Please send me a copy of the contract",
"relatedService": "7a96c97a-bcf9-42df-984a-051c0fb8487e",
"extraFields": {
"department": "Sales",
"location": "New York"
},
"agentId": "e4567-e89b-12d3-a456-426614174000",
"agentComment": "Forwarded to sales team",
"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-13T15:00:00Z"
}

❌ Error Responses​

StatusDescription
404Contact request not found

This endpoint follows the standard error format.

📘 Notes​

  • The contact request must belong to your organization
  • communicationLogs and countCommunicationLogs are server-managed

✅ Common Use Cases​

  • 🔍 Detail View: Open a single request in an agent dashboard
  • 🔁 Sync: Refresh a local cache after a webhook
  • 🧾 Audit: Fetch a request for compliance review