Skip to content

Client API Overview

The Client API powers the Daakey mobile application, providing everything needed for end users to discover vehicles, make bookings, control cars during rentals, and manage their accounts. This API is designed for mobile app integration with a focus on user experience and real-time vehicle interaction.

All Client API requests are scoped to a specific agency through the X-Agency-Signature header, enabling white-label deployments where each agency has their own branded mobile app while sharing the same backend infrastructure.

Base URL

https://api.daakey.com/api/v1/client

Authentication

All Client API requests require:

  1. Bearer Token - Obtained after login
  2. Agency Signature - HMAC-signed payload identifying the agency

See Authentication and Agency Signature for details.

Available Endpoints

Configuration (Public)

MethodEndpointDescription
GET/configGet agency configuration

Authentication

MethodEndpointDescription
POST/auth/loginLogin with email/password
POST/auth/registerRegister new account
POST/auth/forgot-passwordRequest password reset
POST/auth/reset-passwordReset password with token
POST/auth/logoutLogout (revoke token)
GET/auth/meGet current user info

Verification

MethodEndpointDescription
GET/verification/statusGet verification status
POST/verification/verify-phoneVerify phone number
POST/verification/resend-phoneResend phone verification
POST/verification/verify-emailVerify email address
POST/verification/resend-emailResend email verification

Home

MethodEndpointDescription
GET/homeGet home feed data

Profile

MethodEndpointDescription
GET/profileGet current user profile
PUT/profileUpdate profile
PUT/profile/passwordChange password

Documents

MethodEndpointDescription
GET/documentsList uploaded documents
POST/documentsUpload document
DELETE/documents/{type}Delete document

Stations

MethodEndpointDescription
GET/stationsList stations
GET/stations/{id}Get station details

Vehicles

MethodEndpointDescription
GET/vehicles/{id}Get vehicle details
GET/vehicles/{id}/statusGet vehicle status
POST/vehicles/{id}/control/lockLock vehicle
POST/vehicles/{id}/control/unlockUnlock vehicle
POST/vehicles/{id}/control/enable-drivingEnable driving
POST/vehicles/{id}/control/disable-drivingDisable driving

Bookings

MethodEndpointDescription
GET/bookingsList user bookings
POST/bookingsCreate new booking
GET/bookings/{id}Get booking details
POST/bookings/{id}/cancelCancel booking
POST/bookings/{id}/request-extensionRequest extension

Payment Methods

MethodEndpointDescription
GET/payment-methodsList payment methods
POST/payment-methodsAdd payment method
POST/payment-methods/{id}/defaultSet as default
DELETE/payment-methods/{id}Remove payment method

Support Tickets

MethodEndpointDescription
GET/ticketsList support tickets
POST/ticketsCreate ticket
GET/tickets/{id}Get ticket details
POST/tickets/{id}/messagesAdd message

Response Format

All responses follow the standard format:

json
{
  "success": true,
  "message": "Operation completed",
  "data": { ... },
  "meta": {
    "agency_id": 123,
    "agency_code": "AGENCY123"
  },
  "request_id": "uuid",
  "timestamp": "2024-01-01T00:00:00.000Z"
}

Daakey Car Sharing Platform