# Members

## Get Members

<mark style="color:blue;">`GET`</mark> `https://api.suble.io/projects/:projectId/members`

Retrieve list of members apart of the project.

#### Path Parameters

| Name      | Type   | Description               |
| --------- | ------ | ------------------------- |
| projectId | string | Unique id for the project |

#### Headers

| Name          | Type   | Description                |
| ------------- | ------ | -------------------------- |
| Authorization | string | User token or project key. |

{% tabs %}
{% tab title="200 " %}

```
[
    {
        "_id": ObjectId,
        "fullname": String,
        "email": String,
        "image": String,
        "pending": Boolean
    }
]
```

{% endtab %}
{% endtabs %}

## Invite Member

<mark style="color:green;">`POST`</mark> `https://api.suble.io/projects/:projectId/members`

Invite user to the project

#### Path Parameters

| Name      | Type   | Description               |
| --------- | ------ | ------------------------- |
| projectId | string | Unique id for the project |

#### Headers

| Name          | Type   | Description                |
| ------------- | ------ | -------------------------- |
| Authorization | string | User token or project key. |

#### Request Body

| Name  | Type   | Description             |
| ----- | ------ | ----------------------- |
| email | string | Email of user to invite |

{% tabs %}
{% tab title="200 " %}

```
{
    "success": true
}
```

{% endtab %}

{% tab title="401 " %}

```
{
    "error": String
}
```

{% endtab %}
{% endtabs %}
