Skip to main content
All examples in this guide use the development base URL http://localhost:8080. Replace this with your production base URL when you deploy.
1

Request an OTP

Before creating an account, verify your email address by requesting a one-time passcode.
A successful response confirms that the OTP was generated and sent to your email:
2

Create your account

Submit your name, email, password, and the OTP you received to create an account.
A successful response confirms account creation:
3

Log in and get your tokens

Log in with your email and password. The response includes a JWT access token and a refresh token.
Save the accessToken and refreshToken from the response:
Use the accessToken to authorize subsequent requests. When it expires, use the refreshToken to get a new one — see Authentication for details.
4

Make an authenticated request

Pass the access token in the Authorization header on every authenticated request. This example fetches a fare estimate for a 5 km trip.