GET /api/categories/:id
Retrieve detailed information about a specific category by its UUID.Authentication
This endpoint requires a valid JWT token in the Authorization header.Path Parameters
UUID of the category to retrieve
Response
Returns the category object with all its properties.Category UUID
Category name
Category type: INCOME, EXPENSE, or BOTH
Whether this is a fixed expense/income
Hex color code for UI display
Icon name (Font Awesome compatible)
Parent category UUID for hierarchical categories, or null for root categories
UUID of the user who owns this category
ISO 8601 timestamp of creation
ISO 8601 timestamp of last update
ISO 8601 timestamp of soft deletion, or null if active
Example Request
cURL
JavaScript
Python
Example Response
Error Responses
404 - Category Not Found
404 - Category Not Found
- The category ID doesn’t exist
- The category belongs to another user
- The category has been soft-deleted
401 - Unauthorized
401 - Unauthorized
400 - Invalid UUID
400 - Invalid UUID
Use Cases
Category Details
Display full category information in a detail view
Edit Form
Fetch category data to pre-populate an edit form
Validation
Verify category existence before creating transactions
Hierarchy Display
Show parent-child relationships in UI
Related Endpoints
List Categories
Get all categories with filtering
Update Category
Modify category properties
Delete Category
Soft delete a category
