Skip to main content
POST
/
api
/
lifecycle
/
assessment
Submit lifecycle self-assessment
curl --request POST \
  --url https://app.dacard.ai/api/lifecycle/assessment \
  --header 'Content-Type: application/json' \
  --cookie __session= \
  --data '
{
  "productId": "550e8400-e29b-41d4-a716-446655440000",
  "answers": {
    "task_define_problem": "completed",
    "task_user_research": "in_progress",
    "task_competitive_analysis": "not_started"
  }
}
'
{
  "overallScore": 123,
  "currentStage": "<string>",
  "stageScores": {},
  "completedTasks": 123,
  "totalTasks": 123
}

Authorizations

__session
string
cookie
required

Clerk session cookie. Authentication is handled by Clerk. Sign in at https://app.dacard.ai/sign-in to obtain a session.

Body

application/json
productId
string
required

Product UUID to assess

Example:

"550e8400-e29b-41d4-a716-446655440000"

answers
object
required

Map of task IDs to completion status

Example:
{
"task_define_problem": "completed",
"task_user_research": "in_progress",
"task_competitive_analysis": "not_started"
}

Response

Computed lifecycle score

overallScore
number

Overall lifecycle completion percentage (0-100)

currentStage
string

Current lifecycle stage name

stageScores
object

Per-stage completion percentages

completedTasks
integer

Number of completed tasks

totalTasks
integer

Total tasks across all stages