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
| Name | Description |
|---|---|
POST /auth/send-otp | Body { phone }. Returns a verificationId. Sent without DPoP. |
POST /auth/verify-otp | Body { verificationId, otp }. Returns a verificationToken and hasAccount. |
POST /auth/resend-otp | Body { verificationId }. Sent without DPoP. |
POST /auth/login | Body { verificationToken } or { email, password }. Returns tokens and the user. |
POST /auth/register | Email/password and/or verified phone, plus profile fields. |
POST /auth/refresh | Body { refreshToken }. Returns a rotated token pair. |
POST /auth/logout | Ends the session. |
POST /auth/forgot-password | Body { email }. |
Account
| Name | Description |
|---|---|
GET /users/me | The current user. |
POST /auth/account/change-password | Body { currentPassword, newPassword }. |
POST /auth/account/delete-request | Start account deletion. |
POST /auth/account/delete-confirm | Confirm account deletion. |
GET /auth/sessions | List active sessions. |
POST /auth/sessions/:id/revoke | Revoke a session. |
Notifications
| Name | Description |
|---|---|
POST /notifications/devices | Body { fcmToken, platform, deviceId?, deviceName? }. |
DELETE /notifications/devices | Body { fcmToken }. |
Error format
JSON
{
"statusCode": 409,
"message": "Email already in use",
"error": "Conflict",
"requestId": "6f1c…"
}