# 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dev.smarttask.io/endpoints/project/search-projects.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
