curl --request GET \
--url https://aarwcjjzhlmkgdwrisyt.supabase.co/functions/v1/milestone-list \
--header 'Authorization: Bearer <token>'{
"success": true,
"status": 200,
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"escrow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"milestone_index": 1,
"title": "Design mockups",
"description": "Deliver Figma screens for all main flows",
"amount": 150000,
"due_date": "2026-05-01",
"status": "proposed",
"initiator_approved": true,
"counterparty_approved": true,
"changes_note": "Please split into two separate milestones",
"release_tx_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"accepted_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"released_at": "2023-11-07T05:31:56Z"
}
]
}Returns all milestones for the given escrow, ordered by milestone_index ascending. Only accessible to escrow parties.
curl --request GET \
--url https://aarwcjjzhlmkgdwrisyt.supabase.co/functions/v1/milestone-list \
--header 'Authorization: Bearer <token>'{
"success": true,
"status": 200,
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"escrow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"milestone_index": 1,
"title": "Design mockups",
"description": "Deliver Figma screens for all main flows",
"amount": 150000,
"due_date": "2026-05-01",
"status": "proposed",
"initiator_approved": true,
"counterparty_approved": true,
"changes_note": "Please split into two separate milestones",
"release_tx_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"accepted_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"released_at": "2023-11-07T05:31:56Z"
}
]
}JWT access token obtained from /auth-verify (login context) or /auth-signup. Set the bearer_token environment variable in your API client to apply it globally.