Job Creation & Completion Flow
The following flowchart illustrates the complete lifecycle of jobs on the WURK platform, from creation to reward distribution.Flow Explanation
1. Payment Processing
x402 USDC Payment
Steps: Request payment details (402) → Process with X-PAYMENT
Balance Payment
Steps: Job lists immediately if balance sufficient
2. Job Execution
3. Reward Distribution
1
Job Completion
Job reaches target completions or selection deadline
2
Winner Determination
- Social: Automatic verification
- Random: System selection
- Creator: Manual selection via API
3
Reward Processing
Winners receive SOL rewards
4
Job Closure
Job marked as complete in system
API Endpoints by Flow Stage
| Flow Stage | Endpoint | Description |
|---|---|---|
| Create Job | POST /api/external/jobs/create | Initial job creation |
| x402 Payment | GET /api/x402/jobs/{jobId}/pay | Process USDC payment |
| View Submissions | GET /api/external/jobs/{jobId}/submissions | For creator selection |
| Choose Winners | POST /api/external/jobs/{jobId}/choose-winners | Manual winner selection |
| Check Balance | GET /api/external/balance | Verify platform balance |

- WURK verifies X/Twitter engagement
- Validates completion requirements
- Distributes rewards automatically
- No creator intervention needed
Timeline: Rewards distributed after cooldown period- System randomly selects winners
- No creator input required
- Automatic reward distribution
Creator Selection: