Backend API
The Backend is the primary API surface for the frontend application. It provides endpoints for authentication, market management, trading, user profiles, and file uploads.
Base URL: https://backend-production-ef0b.up.railway.app
Authentication
| Mechanism | Header | Purpose |
|---|---|---|
| API Key | x-api-key: YOUR_KEY | Required on most endpoints |
| JWT Bearer | Authorization: Bearer TOKEN | Required for authenticated user actions |
bash
# Example: list all markets
curl -H "x-api-key: 019cccd3-bfc1-7503-ab84-25907019f053" \
https://backend-production-ef0b.up.railway.app/marketsEndpoints
Create or update user after signature verification (Internal usage)
Retrieve a user profile by wallet address
Update your own user profile
Check if a username is currently available
Retrieve all markets
Create a new canonical app market and register it with the matcher when trading ids are present
POST
/markets
Authorizations
bearer
Type
HTTP (bearer)
or
api-key
Type
API Key (header: x-api-key)
Request Body
application/json
{
}
Responses
application/json
{
}
Retrieve a single market by ID
Permanently delete a market and all related data (Admin only)
Update a market (Admin only)
PATCH
/markets/{id}
Authorizations
bearer
Type
HTTP (bearer)
or
api-key
Type
API Key (header: x-api-key)
Parameters
Path Parameters
id*
Type
Requiredstring
Request Body
application/json
{
}
Responses
application/json
{
}