Skip to main content

Documentation Index

Fetch the complete documentation index at: https://api.docs.onlydrams.app/llms.txt

Use this file to discover all available pages before exploring further.

This endpoint returns a paginated list of contacts associated with a specific distillery.

API Endpoint

  • Method: GET
  • Path: /odis/v1/distilleries/:id/contacts

Query Parameters

ParameterTypeDefaultDescription
pageinteger1Page number for pagination
perinteger20Number of items per page

Response

200 OK

Returns a paginated list of contacts with metadata.
{
  "total": 2,
  "has_more": false,
  "data": [
    {
      "id": 123,
      "first_name": "Jane",
      "last_name": "Smith",
      "email": "jane@example.com",
      "phone": "+1-555-2000",
      "role": "Sales"
    }
  ]
}

Error Responses

  • 401 Unauthorized
    { "message": "Missing Token" }
    
  • 403 Forbidden
    { "message": "Insufficient privileges" }
    
  • 404 Not Found
    { "success": false, "error": "The requested resource was not found." }