Skip to main content

📱 App Info API

The App Info API provides information about the Pika application, including system status, available features, version information, and application lists. This API is useful for getting application metadata and checking system health.

📡 Base URL​

All app info endpoints are prefixed with:

/wp-json/pika/v1/app

🚀 Endpoints​

Get App Info​

Retrieve general information about the Pika application.

Endpoint: GET /wp-json/pika/v1/app/info

Headers:

  • None required (public endpoint)

Response:

{
"name": "Pika Finance",
"version": "1.0.0",
"description": "AI-Powered Personal Finance &amp; Expense Tracking for WordPress <cite>By e-lab innovations.<\/cite>",
"app_id": "562f6819-9357-454d-a82b-23a45137a3cd",
"base_url": "http:\/\/localhost:8000"
}

Example Request:

curl -X GET http://localhost:8000/wp-json/pika/v1/app/info

Get All App Lists​

Retrieve lists of available data and features in the application.

Endpoint: GET /wp-json/pika/v1/app/lists

Headers:

  • Cookie: Authentication cookie

Response:

{
"categories": [
{
"id": "33",
"name": "Personal Care",
"icon": "smile",
"color": "#FFFFFF",
"bgColor": "#48BB78",
"description": "Personal care expenses",
"isSystem": true,
"isParent": true,
"type": "expense",
"parentId": null,
"children": [
{
"id": "36",
"name": "Fitness",
"icon": "dumbbell",
"color": "#FFFFFF",
"bgColor": "#2F855A",
"description": "Fitness and gym expenses",
"isSystem": true,
"isParent": false,
"type": "expense",
"parentId": "33",
"children": []
},
...
]
},
...
],
"accounts": [
{
"id": "1",
"name": "Federal",
"description": "Main Account",
"avatar": {
"id": "1",
"url": "http:\/\/localhost:8000\/wp-content\/uploads\/pika\/avatars\/account-6889ac3ac6f73-1753859306.jpg",
"type": "image",
"name": "1000118509.jpg",
"size": "9444"
},
"lastTransactionAt": null,
"totalTransactions": 0,
"balance": "-50921.7500",
"icon": "wallet",
"bgColor": "#3B82F6",
"color": "#ffffff"
},
...
],
"people": [
{
"id": "7",
"name": "Lucy",
"description": "Aunty",
"email": "",
"phone": "",
"avatar": null,
"lastTransactionAt": "2025-08-03 03:38:37",
"totalTransactions": "5",
"balance": "0.0000"
},
...
],
"tags": [
{
"id": "6",
"name": "Business",
"color": "#FFFFFF",
"bgColor": "#2D3748",
"icon": "briefcase-business",
"description": "Business transactions",
"isSystem": true
},
{
"id": "1",
"name": "Initial Balance",
"color": "#FFFFFF",
"bgColor": "#38A169",
"icon": "plus-circle",
"description": "Initial account balance transaction",
"isSystem": true
},
...
]
}

Example Request:

curl -X GET http://localhost:8000/wp-json/pika/v1/app/lists \
-H "Cookie: pika_token=token"

🚨 Error Responses​

Application Information Not Found​

This error is returned when essential application information or configuration settings cannot be located.

{
"code": "app_info_not_found",
"message": "App info not found",
"data": {
"status": 404
}
}