Momofin
  • QUICKSTART
    • Getting Started
    • Uploading a document for e-Meterai stamping
  • Reference
    • API Reference
      • Auth
        • Generate access token
        • Get list of contacts
      • Documents
        • Upload document
        • Upload document with Base64 encoded data
        • Download document
        • Get list of sent documents
        • Get list of incoming documents
        • Get document detail
        • Get Document Status
        • Get signers of the document
        • Get original document
        • Placement Document
        • Process document
        • Delete document
        • Audit trail
        • Get speciment
        • Restamping meterai
        • Get client balance
Powered by GitBook
On this page
  1. Reference
  2. API Reference
  3. Auth

Generate access token

PreviousAuthNextGet list of contacts

Last updated 7 months ago

POST /v1/auth/login

Returns an access token for a user

Login

post
Header parameters
OriginstringOptionalExample: yuretech.dev.momofingo.com
Body
emailstringOptionalExample: test@email.com
passwordstringOptionalExample: password
Responses
200
OK
application/json
400
Bad Request
application/json
post
POST /auth/login HTTP/1.1
Host: {{base_url}}v1
Content-Type: application/json
Accept: */*
Content-Length: 48

{
  "email": "test@gmail.com",
  "password": "test123!"
}
{
  "code": 200,
  "success": true,
  "data": {
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
    "refresh_token": "47f1eae8-2f4f-448c-b98d-28e5fcbdf380",
    "account": {
      "fullname": "bowo test",
      "email": "bowo000024@gmail.com",
      "business_id": "6e5d6790-f850-11ec-926e-d9207c602237",
      "is_reset": true
    },
    "activation": {
      "status": "uncomplete",
      "data": {
        "business_info": false,
        "business_detail": false,
        "personal_info": false,
        "business_documents": false,
        "email_verification": true
      }
    }
  }
}