GET 5 min read

List Companies

GET /api/v1/companies

Retrieve all companies you have access to

List Companies

Retrieve a paginated list of all companies you have access to.

Request

GET /api/v1/companies

Query Parameters

Parameter Type Description
per_page integer Number of results per page (default: 15, max: 100)
page integer Page number

Response

{
    "data": [
        {
            "id": 1,
            "name": "AutoCare Manila",
            "slug": "autocare-manila",
            "email": "[email protected]",
            "phone": "+63 2 1234 5678",
            "address": "123 Main Street",
            "city": "Manila",
            "status": "active",
            "created_at": "2024-01-15T08:30:00Z",
            "updated_at": "2024-01-15T08:30:00Z"
        }
    ],
    "links": {
        "first": "...",
        "last": "...",
        "prev": null,
        "next": "..."
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 3,
        "per_page": 15,
        "to": 15,
        "total": 42
    }
}

Example

curl -X GET "https://hydra.marketdragon.ph/api/v1/companies?per_page=10" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"
Back to Companies
Was this helpful?