0.0.0
OAS 3.0.0

Common API

Client Libraries
Shell
Ruby
Node.js
PHP
Python
C
More
Authentication
Bearer Authentication (BearerAuth)

/me

Get authenticated user

Responses
  • 200

    The request has succeeded.

GET/me
Shell cURL
curl --request GET \
  --url https://dpt-api.finema.dev/me \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "id": "c667df88-4de8-442b-a64a-5fbce59086f0",
  "access_token": "kpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ",
  "title_name": "นาย",
  "name": "นายสุริยา แสนสวัสดิ์",
  "family_name": "Saensawat",
  "given_name": "Surinya",
  "family_name_th": "แสนสวัสดิ์",
  "given_name_th": "สุริยา",
  "user_type_code": "1",
  "user_type_name": "บุคลากรภายในกรม",
  "position_name": "นักวิเคราะห์นโยบายและแผน",
  "registration_id": "…",
  "tax_id": "…",
  "juristic_name_th": "…",
  "juristic_name_en": "…",
  "identification_number": "3737036019181",
  "email": "surinyasaensawat@yahoo.com",
  "phone_number": "0624436279",
  "sub": "surinya.sae",
  "addresses": [
    {
      "id": "c667df88-4de8-442b-a64a-5fbce59086f0",
      "name": "บ้านหลัก",
      "address": "56/96 หมู่บ้านเซนส์ สายไหม 56",
      "address_code": "104202",
      "address_type": "current",
      "address_master": {
        "code": "104202",
        "province_code": "10",
        "district_code": "1042",
        "sub_district_code": "104202",
        "province": "กรุงเทพมหานคร",
        "district": "สายไหม",
        "sub_district": "ออเงิน",
        "postal_code": "10220"
      },
      "is_default": true
    }
  ],
  "is_super_admin": true,
  "system_admin_scopes": [
    "dpt11",
    "dpt12",
    "dpt54"
  ],
  "officer_scopes": [
    "dpt31",
    "dpt32"
  ],
  "sig": "24d9d53cc2938725a9e0cf261aa6d2def4fbeb546caeab9052b4"
}