Skip to main content
GET
/
levels
/
{id}
curl -X GET "https://api.companyflow.com/levels/550e8400-e29b-41d4-a716-446655440000" \
  -H "Authorization: Bearer YOUR_TOKEN"
{
  "success": true,
  "data": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "company_id": "123e4567-e89b-12d3-a456-426614174000",
    "name": "Senior Engineer",
    "hierarchy_level": 3,
    "min_salary": 80000,
    "max_salary": 120000,
    "description": "Senior level individual contributor",
    "created_at": "2024-01-15T10:30:00Z",
    "updated_at": "2024-01-15T10:30:00Z"
  }
}

Authorization

Requires authentication with a Bearer token. Only users with the following roles can retrieve levels:
  • Super Admin
  • HR Manager

Path Parameters

id
string
required
The unique identifier of the level (UUID format)

Response

success
boolean
Indicates if the request was successful
data
object
The level object
curl -X GET "https://api.companyflow.com/levels/550e8400-e29b-41d4-a716-446655440000" \
  -H "Authorization: Bearer YOUR_TOKEN"
{
  "success": true,
  "data": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "company_id": "123e4567-e89b-12d3-a456-426614174000",
    "name": "Senior Engineer",
    "hierarchy_level": 3,
    "min_salary": 80000,
    "max_salary": 120000,
    "description": "Senior level individual contributor",
    "created_at": "2024-01-15T10:30:00Z",
    "updated_at": "2024-01-15T10:30:00Z"
  }
}

Error Responses

{
  "success": false,
  "message": "invalid level id"
}
{
  "success": false,
  "message": "unauthorized"
}
{
  "success": false,
  "message": "internal server error"
}

Build docs developers (and LLMs) love