Garment.id
🇺🇸 English
  • 🇮🇩 Indonesian
  • 🇺🇸 English
HomeCore API
Tenant APISupport CenterChangelog
HomeCore API
Tenant APISupport CenterChangelog
Github
Instagram
|
🇺🇸 English
  • 🇮🇩 Indonesian
  • 🇺🇸 English
🇺🇸 English
  • 🇮🇩 Indonesian
  • 🇺🇸 English
  1. Authentication
  • Authentication
    • Google OAuth Redirect
      GET
    • Google OAuth Callback
      GET
    • Register
      POST
    • Login
      POST
    • Refresh Token
      POST
    • Login with Google
      POST
    • Two Factor Challenge
      POST
    • Request Password Reset
      POST
    • Reset Password
      POST
    • Verify Email
      GET
    • Resend Verification Email
      POST
    • Select Tenant
      POST
    • Tenant Onboarding
      POST
    • Logout
      POST
    • Logout All
      POST
    • Me
      GET
  • Auth Activity
    • Auth Activities
      GET
    • Suspicious Activities
      GET
    • Tenant Auth Activities
      GET
    • User Security Activities
      GET
  • Billing
    • Public Plan Catalog
      GET
    • Billing Webhook
      POST
    • Billing Audit List
      GET
    • Billing Audit Detail
      GET
    • List Plans
      GET
    • Upsert Plan
      PUT
    • Upsert Plan Feature Value
      PUT
    • List Features
      GET
    • Upsert Feature
      PUT
  • Master Data
    • List Master Taxonomies
    • Create Master Taxonomy
    • Master Taxonomy Detail
    • Update Master Taxonomy
    • Delete Master Taxonomy
HomeCore API
Tenant APISupport CenterChangelog
HomeCore API
Tenant APISupport CenterChangelog
Github
Instagram
|
🇺🇸 English
  • 🇮🇩 Indonesian
  • 🇺🇸 English
🇺🇸 English
  • 🇮🇩 Indonesian
  • 🇺🇸 English
  1. Authentication

Login

POST
http://localhost/api/v1/auth/login
Authentication
Terakhir diubah:2026-03-03 20:17:53
OperationId:central.auth.login
Login user dengan kredensial dan mengembalikan access token (atau token sementara untuk selection tenant/2FA).

Request

Otorisasi
Berikan token Bearer anda pada header
Authorization
ketika melakukan request ke resource yang dilindungi.
Contoh:
Authorization: Bearer ********************
Body Parameterapplication/jsonWajib

Contoh

Response

🟢200
application/json
Body

🟠422ValidationException
request Contoh Request
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost/api/v1/auth/login' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "credentials": "superadmin",
    "password": "password",
    "device_name": "web-browser"
}'
response Contoh Response
200 - Contoh 1
"string"
Diubah pada 2026-03-03 20:17:53
Sebelumnya
Register
Berikutnya
Refresh Token
Built with