---
# System prepended metadata

title: API CMS Member - Documentation

---

# API CMS Member - Documentation
##### Forky Indonesia.

#### HOST: https://apidev.forky.id/cms/member

## Login
### Post
__Request__
>_Get Unlock Content_
```json
Authorization: Bearer [TOKEN]
Content-Type: application/json

GET v1/contents/unlock
```
**200 OK**
```json
[
  {
    "coin": 0,
    "id": "string",
    "unlock_content": 0
  }
]
```
**400 Bad Request**
```json
{
  "error": "7ed59eb0-0359-48a6-a8c5-4e09a7383719",
  "message": "Bad Request"
}
```
**401 Unauthorized**
```json
{
  "error": "32ab484e-8ebc-43a1-9b64-a9da6feae752",
  "message": "Unauthorized"
}
```
---
## Logout
### Post
__Request__
>_add access and refresh token to blacklist_
```json
Authorization: Bearer [TOKEN]
Content-Type: application/json

POST v1/auth/logout

{
  "device_id": "string",
  "refresh_token": "string"
}
```
**200 OK**
```json
{
  "message": "Success"
}
```
**400 Bad Request**
```json
{
  "error": "7ed59eb0-0359-48a6-a8c5-4e09a7383719",
  "message": "Bad Request"
}
```
**401 Unauthorized**
```json
{
  "error": "32ab484e-8ebc-43a1-9b64-a9da6feae752",
  "message": "Unauthorized"
}
```
---
## Refresh
### Get
__Request__
>_Refreshes access token using refresh token_
```json
Authorization: Bearer [TOKEN]
Content-Type: application/json

GET v1/auth/refresh
```
**200 OK**
```json
{
  "body": {
    "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2MjM5MDMxMDYsImlzcyI6IkZPUktZLklEIChQVC4gU1VQRVIgR0lHQSBHRU5FUkFTSSkiLCJpZCI6Im9QZ3FBbEwweVczODRWRWFZUEVZWkI1ZEtSejZlMTJEIiwicm9sZV9pZCI6Ik1SOVhkanY3MFdwZU9ERThERVBMQXliOHhWQlF6cTMxIiwidXNlcm5hbWUiOiJhZ3VzZHdpIiwidHlwZSI6IkFjY2Vzcy1Ub2tlbiJ9.MT4ckfNrS0mR2NLEYXvqEx6mlhfd7Kb1WiGgPl9Qhds"
  },
  "message": "Success"
}
```
**400 Bad Request**
```json
{
  "error": "7ed59eb0-0359-48a6-a8c5-4e09a7383719",
  "message": "Bad Request"
}
```
**401 Unauthorized**
```json
{
  "error": "8f7d1742-48fe-403c-b38b-9937d94e5c5e",
  "message": "Unauthorized"
}
```
---
## Dashboard Counts
### Get
__Request__
>_Get total member, staff, and transactions counts_
```json
Authorization: Bearer [TOKEN]
Content-Type: application/json

GET v1/dashboard/counts
```
**200 OK**
```json
{
  "total_staffs": 0,
  "total_transactions": 0,
  "total_users": 0
}
```
**401 Unauthorized**
```json
{
  "error": "8f7d1742-48fe-403c-b38b-9937d94e5c5e",
  "message": "Unauthorized"
}
```
```