GET 5 min read

Get Company

GET /api/v1/companies/{id}

Retrieve a single company by ID

Get Company

Retrieve details of a specific company by its ID.

Path Parameters

Parameter Type Description
id integer The company ID

Example Request

curl -X GET "https://hydra.marketdragon.ph/api/v1/companies/1" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"

Example Response

{
    "data": {
        "id": 1,
        "name": "AutoCare Manila",
        "slug": "autocare-manila",
        "email": "[email protected]",
        "phone": "+63 2 1234 5678",
        "address": "123 Main Street",
        "city": "Manila",
        "state": "Metro Manila",
        "postal_code": "1000",
        "country": "PH",
        "timezone": "Asia/Manila",
        "currency": "PHP",
        "status": "active",
        "logo_url": "https://hydra.marketdragon.ph/storage/companies/1/logo.png",
        "created_at": "2024-01-15T08:30:00+00:00",
        "updated_at": "2024-01-15T08:30:00+00:00"
    }
}

Error Responses

403 Forbidden

{
    "message": "You do not have access to this company."
}

404 Not Found

{
    "message": "No query results for model [Company] 999"
}
Back to Companies
Was this helpful?