# User Actions

## Enroll into the Course

<mark style="color:green;">`POST`</mark> `https://yoursite.com/wp-json/wplms/v2/course/subscribe`

#### Request Body

| Name       | Type   | Description                        |
| ---------- | ------ | ---------------------------------- |
| token      | string | The JWT token to identify the user |
| Course\_id | number | Course Id to enroll the user       |

{% tabs %}
{% tab title="200 Successfully subscribed to the course. Expiry is the PHP UTC timestamp when the user's access to the course will expire." %}

```
{    
    "status": 1,    
    "message": "Successfully  subscribed to course!",    
    "status": "1",
    "expiry": 123467 
}
```

{% endtab %}
{% endtabs %}
