# Personal Access Token

This endpoint is used to create, update, search or delete organizations information inside Terrakube.

### Entity fields:

| Path        | Type   | Description                               |
| ----------- | ------ | ----------------------------------------- |
| days        | string | Numbere of days for the token to be valid |
| description | string | Some sample description for the token     |

### Example:

```
{
    "days": 7,
    "description": "Sample Personal Access Token"
}
```

### Supported Operations

<mark style="color:green;">`POST`</mark> `/api/v1`

#### Request Body

| Name                                          | Type   | Description       |
| --------------------------------------------- | ------ | ----------------- |
| days<mark style="color:red;">\*</mark>        | int    | Number of days    |
| description<mark style="color:red;">\*</mark> | String | Token description |

<mark style="color:blue;">`GET`</mark> `/pat/v1`

Get all the personal access token generated by the user
