APIEndpoint referenceTipster
/tipster/preview
The preview is created as a draft.
The preview is created as a draft.
AuthorizationBearer <token>
Supabase access token.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/tipster/preview" \ -H "Content-Type: application/json" \ -d '{ "description": "string", "tags": [ "string" ], "tips": [ { "bettingTips": "string", "content": "string", "fixture": { "awayTeam": { "id": null, "name": "string", "slug": "string" }, "homeTeam": { "id": null, "name": "string", "slug": "string" }, "id": null, "slug": "string", "startTimestamp": null, "tournament": { "name": "string", "slug": "string" } } } ], "title": "string" }'{ "preview": null, "slug": "string"}/tipster/preview GET
The caller's own drafts and published previews, newest first.
/tipster/preview/create POST
The same operation as POST /api/tipster/preview with two differences the original has and clients depend on: no status is set, so the column default applies, and the slug is echoed alongside the preview.