techrar docs
Home
Solutions
Solutions
  • eCommerce SaaS
  • Meals SaaS
  • Meals Marketplaces
API
API
  • Merchant APIs
  • Customer App APIs
  • Meals APIs
Techrar Connect
Home
Solutions
Solutions
  • eCommerce SaaS
  • Meals SaaS
  • Meals Marketplaces
API
API
  • Merchant APIs
  • Customer App APIs
  • Meals APIs
Techrar Connect
  1. User Authentication
  • Customer Account
    • Registration
      • Register Customer
      • Confirm Customer Registration
    • User Authentication
      • Request OTP
        POST
      • Get Access Token
        POST
      • Refresh Access Token
        POST
    • Customer Profile
      • Profile Details
      • Wallet Details
      • Referral Details
      • Update Platform Version
      • Activate/Create FCM Token
      • FCM Token
      • Delete Customer Account
      • Update Language
      • Update Avatar
      • Update Profile
    • Customer Locations
      • List Locations
      • Location Details
      • Create Location
      • Update Location
      • Update Location Image
      • Delete Location
    • List Received Notifications
      GET
  • Items
    • List Items
    • Item Details
    • List Item Categories
    • Item Category Details
    • List Modifier Categories
    • Item Config Details
    • List Bundle Categories
  • Orders
    • List Orders
    • Order Details
    • List Recurring Purchases
    • Recurring Purchase Details
    • Recurring Purchase Details
  • Subscriptions
    • List Subscriptions
    • Subscription Details
    • Cancel Subscription Auto Renewal
  • Fulfillments
    • List Fulfillments
    • Fulfillment Details
    • Update Fulfillment Details
  • Payment Methods
    • List Payment Methods
    • Delete Payment Method
    • List Enabled Payment Providers
  • Checkout
    • Checkout Config Details
    • Create Cart
    • Update Cart
    • Cart Details
    • List Pickup Locations
    • List Featured Vouchers
    • Get Courier Options
    • Checkout
  • Sales Channels
    • Orders
      • List Channel Subscriptions
      • Channel Subscription Details
      • List Channel Orders
      • Channel Order Details
      • Cancel Channel Subscription
    • Meals Checkout
      • Apply Voucher
      • Redeem
      • Get Discount
      • Place Order
    • List Channel Providers
  • Utilities
    • List Supported Cities
    • Supported City Details
  1. User Authentication

Get Access Token

POST
https://api.techrar.com/api/v2/auth/access/
This endpoint allows you to get customer credintials after requesting an OTP from Request OTP endpoint.
It supports login using user's email or username (phone).
You can also login using user's email & password without the need to request an OTP
You need to send either username or email

Request

Header Params

Body Params application/json

Examples

Responses

🟢200Success
application/json
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://api.techrar.com/api/v2/auth/access/' \
--header 'app-id: 4' \
--header 'Content-Type: application/json' \
--data '{
    "username": "0558291232",
    "otp": "2234"
}'
Response Response Example
{
    "refresh": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaCIsImV4cCI6MTY2NTA1NzgyNCwianRpIjoiMDIyZWZkMzZjMDkyNDUyNmExOTdhNjNmZjIxZjE4MDciLCJ1c2VyX2lkIjoxMywicm9sZXMiOlt7ImlkIjoxLCJuYW1lIjoiQ3VzdG9tZXIifV19.gss9Jgxvkd93Fv4ydnlCDcsd714KmV-88956Y5akKkc",
    "access": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjYyODExNDI0LCJqdGkiOiI5ODUxNzlmNWY1NmI0NTdkOWM3ZDQxYzM2YzFiYTE4YyIsInVzZXJfaWQiOjEzLCJyb2xlcyI6W3siaWQiOjEsIm5hbWUiOiJDdXN0b21lciJ9XX0._SfDOvalcz3zaqHOwbs8dNQMIMZM1l7CIQor0W6xXUQ"
}
Modified at 2026-06-01 12:39:09
Previous
Request OTP
Next
Refresh Access Token
Built with