TokenLine API

Base URL: https://tokenline.top/api

Authentication

Register to get JWT token. Include: Authorization: Bearer <token>

POST /api/auth/register

{"email":"user@example.com","password":"min6char"}

Returns: {"token":"eyJ...","user":{"id":1,"email":"...","plan":"gratis"}}

POST /api/auth/login

{"email":"user@example.com","password":"min6char"}

POST /api/chat 🔒

{"message":"Halo!","model":"deepseek-v4-flash"}

Response: SSE stream (text/event-stream)

GET /api/me 🔒

Returns user profile and current plan

GET /api/chat/history 🔒

?conversation_id= (optional) — List or get messages

POST /api/payment/create 🔒

{"plan":"bulanan"}

Plans: harian (Rp5K), bulanan (Rp30K), premium (Rp50K), tahunan (Rp250K)

Models

ModelDescription
deepseek-v4-flashFast & efficient
deepseek-v4-proAnalytical & deep