Get Contact By ID
Get a specific contact form submission by its ID.
Endpoint
Authentication
Required
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id |
integer | Yes | Contact ID |
Response
Success (200 OK)
{
"id": 1,
"first_name": "John",
"last_name": "Doe",
"email": "john.doe@example.com",
"phone": "+994501234567",
"county": "Baku",
"subject": "Inquiry about products",
"message": "I have a question regarding...",
"created": "2025-01-15T10:30:00Z"
}
Error Responses
Contact Not Found (404)
Missing ID Parameter (400)
Example Request
curl -X GET "https://api.luxmart.site/v1/contacts/get-by/?id=1" \
-H "Authorization: Token your_access_token"
Notes
- Only returns non-deleted contacts