Weferral API

Welcome to the Weferral API service. This is the API backend for the Weferral affiliate management system.

API Endpoints

Base URL: /api/v1

Authentication

POST /api/v1/auth/session - Login

GET /api/v1/auth/token - Get JWT token

Users

GET /api/v1/users - Get all users

GET /api/v1/users/:id - Get user by ID

Campaigns

GET /api/v1/campaigns - Get all campaigns

POST /api/v1/campaign - Create a campaign

GET /api/v1/campaigns/:id - Get campaign by ID

Participants

GET /api/v1/participants - Get all participants

POST /api/v1/participants - Create a participant