# Fetch Projects

## Fetch Projects

<mark style="color:blue;">`POST`</mark> `https://ext-v2.smarttask.io/v{api-version}/project/list/{organization_id}/{archive_flag}?group_id={group_id}&query={query}&page_no={page_no}&list_size={list_size}&is_template={is_template}`

#### Path Parameters

| Name             | Type   | Description                        |
| ---------------- | ------ | ---------------------------------- |
| api-version      | string | API Version is 1.0                 |
| organization\_id | string | OrganizationId of the organization |

#### Query Parameters

| Name         | Type    | Description                                                                                                  |
| ------------ | ------- | ------------------------------------------------------------------------------------------------------------ |
| group\_id    | number  | To fetch projects under a particular group                                                                   |
| query        | string  | The API will do its best to find projects matching the query                                                 |
| is\_template | boolean | <p>True - if you only want to fetch templates<br>False - If you only want to fetch non-template projects</p> |
| page\_no     | number  | Page number                                                                                                  |
| list\_size   | number  | Can't be bigger than 100                                                                                     |

#### Headers

| Name          | Type   | Description         |
| ------------- | ------ | ------------------- |
| Authorization | string | Bearer Access Token |

#### Request Body

* Array of except\_project\_ids
* Eg: \["550e8400-e29b-41d4-a716-446655440000"]

#### Response

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

```
[
    {
        ProjectId: "f81d4fae-7dec-11d0-a765-00a0c91e6bf6",
        Name: "Marina"
    },
    {
        ProjectId: "550e8400-e29b-41d4-a716-446655440000",
        Name: "CasaOne"
    }    
]

```

{% endtab %}

{% tab title="404 In case organization\_id does not exist" %}

```
{    "message": "NotFound"}
```

{% endtab %}
{% endtabs %}
