GET/api/v6/account/cost-centers

Cost centers

Cost centers of the organization, with the default one flagged.

Scope and limits

Scope

API key with the directory capability granted

Usage limit

60 requests per minute

Cost centers of the organization. Every API key is bound to one, and that is where usage attribution comes from.

Includes personal data

The API key must have the directory capability explicitly enabled. Access to all services does NOT grant it. A key without the capability gets 403.

Responses

200

Cost centers.

{
  "success": true,
  "data": {
    "items": [
      {
        "id": 17,
        "code": "1607230448",
        "name": "Centro de costos general",
        "status": "active",
        "isDefault": true
      }
    ]
  },
  "meta": {
    "requestId": "b9b1704baffab21150213c02fd853975",
    "timestamp": "2026-06-02T19:43:59+00:00",
    "responseTimeMs": 4.1
  }
}
401

Invalid or missing credentials.

403

The API key lacks the required capability, or the organization cannot run the request.

429

Request limit exceeded.

Possible errors

Codes this endpoint can return in error.code. The full detail lives in the catalog.

See the full catalog
GET /api/v6/account/cost-centers
curl -X GET 'https://developers.hablame.co/api/v6/account/cost-centers' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer hk_YOUR_API_KEY'

Try-It

Run the request against the real API with your own API key.

The key is used only in your browser for this request. It is not stored nor sent anywhere else.

GET https://developers.hablame.co/api/v6/account/cost-centers

Response

You have not sent a request yet.