Skip to content

Me

Get application informations

  • URL: /me
  • Method: GET
  • Headers:
    • Authorization: Bearer YOUR_ACCESS_TOKEN

Request Example

bash
curl --location 'https://developer.easyslip.com/api/v1/me' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Response Type

typescript
type Data = {
    status: number
    data: {
        application: string
        usedQuota: number
        maxQuota: number
        remainingQuota: number
        expiredAt: string
        currentCredit: number
    }
}

Response Example

Success (HTTP 200)

json
{
  "status": 200,
  "data": {
    "application": "EasySlip Developer",
    "usedQuota": 16,
    "maxQuota": 35000,
    "remainingQuota": 34984,
    "expiredAt": "2024-02-22T18:47:34+07:00",
    "currentCredit": 1000
  }
}

Error (HTTP 401)

unauthorized

json
{
  "status": 401,
  "message": "unauthorized"
}

Error (HTTP 403)

access_denied

json
{
  "status": 403,
  "message": "access_denied"
}

Error (HTTP 500)

server_error

json
{
  "status": 500,
  "message": "server_error"
}