Flutter · colveor

Backend Integration

colveor is built to talk to a Colveor Core backend. Paths are relative to apiBaseUrl/apiVersion.

Overview

All paths live on VoApiEndpoints and can be overridden — see Configuration.

Authentication

NameDescription
POST /auth/send-otpBody { phone }. Returns a verificationId. Sent without DPoP.
POST /auth/verify-otpBody { verificationId, otp }. Returns a verificationToken and hasAccount.
POST /auth/resend-otpBody { verificationId }. Sent without DPoP.
POST /auth/loginBody { verificationToken } or { email, password }. Returns tokens and the user.
POST /auth/registerEmail/password and/or verified phone, plus profile fields.
POST /auth/refreshBody { refreshToken }. Returns a rotated token pair.
POST /auth/logoutEnds the session.
POST /auth/forgot-passwordBody { email }.

Account

NameDescription
GET /users/meThe current user.
POST /auth/account/change-passwordBody { currentPassword, newPassword }.
POST /auth/account/delete-requestStart account deletion.
POST /auth/account/delete-confirmConfirm account deletion.
GET /auth/sessionsList active sessions.
POST /auth/sessions/:id/revokeRevoke a session.

Notifications

NameDescription
POST /notifications/devicesBody { fcmToken, platform, deviceId?, deviceName? }.
DELETE /notifications/devicesBody { fcmToken }.

Error format

JSON
{
  "statusCode": 409,
  "message": "Email already in use",
  "error": "Conflict",
  "requestId": "6f1c…"
}