Base URL https://api.cube-hr.co.uk/api/v1

Open the app

Reference

CubeHR API documentation

The full REST reference: 29 modules and 305 endpoints. Everything the CubeHR app does, your own systems can do too.

Base URL

https://api.cube-hr.co.uk/api/v1

JWT authentication

For user-facing web and mobile apps.

Authorization: Bearer <token>

API key authentication

For server-to-server integrations.

X-API-Key: <api_key>

Modules

Response format

Success

json
{
  "success": true,
  "data": { ... },
  "meta": {
    "total": 150,
    "page": 1,
    "per_page": 20,
    "pages": 8
  }
}

Error

json
{
  "success": false,
  "error": "Not found",
  "code": "EMPLOYEE_NOT_FOUND",
  "errors": {
    "email": "Invalid email"
  }
}

HTTP status codes

HTTP status codes returned by the CubeHR API
CodeMeaningWhen you will see it
200OKSuccessful GET, PUT or PATCH
201CreatedSuccessful POST, resource created
400Bad requestValidation error
401UnauthorisedMissing or invalid credentials
403ForbiddenAuthenticated but not permitted
404Not foundResource does not exist
422UnprocessableBusiness logic error