Skip to main content

Intentions List

This endpoint provides a list of available intentions in the LAX application.

Request

Endpoint

  • Method: GET
  • URL: /api/lists/intentions

Request Headers

HeaderValueRequired
Content-Typeapplication/jsonYes
Acceptapplication/jsonYes

Success Response

{
"success": true,
"message": "Data has been retrieved successfully",
"data": [
{
"id": 1,
"name": "Personal Growth"
},
{
"id": 2,
"name": "Career Development"
}
],
"status_code": 200
}

Error Responses

Server Error (500)

{
"success": false,
"message": "Something went wrong",
"data": null,
"status_code": 500
}

Example Implementation Flow

  1. Make a GET request to /api/lists/intentions
  2. Upon success:
    • Store the intentions list in local state
    • Use for goal setting and intention selection
    • Can be used in user profile or daily planning
  3. Upon error:
    • Display error message to user
    • Implement retry mechanism if needed