cURL
curl --request GET \ --url https://app.sure.am/api/v1/categories \ --header 'X-Api-Key: <api-key>'
{ "categories": [ { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "<string>", "classification": "income", "color": "<string>", "icon": "<string>", "subcategories_count": 1, "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "parent": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "<string>" } } ], "pagination": { "page": 2, "per_page": 2, "total_count": 1, "total_pages": 1 } }
API key
Page number (default: 1)
Items per page (default: 25, max: 100)
Filter by classification (income or expense)
income
expense
Return only root categories (no parent)
Filter by parent category ID
categories filtered by parent
Show child attributes