# Manage projects

## List your projects

*List all the projects in your account.*

> 👍 Required scope : **project.list**

```curl
curl --location --request GET 'https://api.flagship.io/v1/accounts/{ACCOUNT_ID}/projects' \
--header 'Authorization: Bearer {ACCESS_TOKEN}'
```

Swagger documentation [here](https://github.com/flagship-io/Gitbook/blob/main/reference/056fa0955173da757711663c5e0365ae/README.md).

## Create a project

> 👍 Required scope : **project.create**

```curl
curl --location --request POST 'https://api.flagship.io/v1/accounts/{ACCOUNT_ID}/projects' \
--header 'Authorization: Bearer {ACCESS_TOKEN}'
--data-raw '{
    "name": "New project"
}'
```

Swagger documentation [here](https://github.com/flagship-io/Gitbook/blob/main/reference/9c2fa3f5eeb6b5de749560ab7a799fda/README.md).

## View a project

> 👍 Required scope : **project.read**

```curl
curl --location --request GET 'https://api.flagship.io/v1/accounts/{ACCOUNT_ID}/projects/{PROJECT_ID}' \
--header 'Authorization: Bearer {ACCESS_TOKEN}'
```

Swagger documentation [here](https://github.com/flagship-io/Gitbook/blob/main/reference/80bfd9b7a2cd0f116dd43fc4ed60dfd8/README.md).

## Update a project

> 👍 Required scope : **project.update**

```curl
curl --location --request PUT 'https://api.flagship.io/v1/accounts/{ACCOUNT_ID}/projects/{PROJECT_ID}' \
--header 'Authorization: Bearer {ACCESS_TOKEN}'
--data-raw '{
    "name": "New project name"
}'
```

Swagger documentation [here](https://github.com/flagship-io/Gitbook/blob/main/reference/d0e24fcfb70fc12f1385915850f2029e/README.md).

## Toggle a project

*Toggle all the campaigns of the project to a new state*

> 👍 Required scope : **project.toggle**

```curl
curl --location --request PATCH 'https://api.flagship.io/v1/accounts/{ACCOUNT_ID}/projects/{PROJECT_ID}/toggle' \
--header 'Authorization: Bearer {ACCESS_TOKEN}'
--data-raw '{
    "state": "active"
}'
```

> 📘 The different states are **active** , **paused** , **interrupted** .

Swagger documentation [here](https://github.com/flagship-io/Gitbook/blob/main/reference/239988fe629da89b52a9fa7ffdd4d3a8/README.md).

## Delete a project

> 👍 Required scope : **project.delete**

> ❗️ Be careful, there is no confirmation step when you call this route. It will delete the project definitively.

```curl
curl --location --request DELETE 'https://api.flagship.io/v1/accounts/{ACCOUNT_ID}/projects/{PROJECT_ID}' \
--header 'Authorization: Bearer {ACCESS_TOKEN}'
--data-raw ''
```

Swagger documentation [here](https://github.com/flagship-io/Gitbook/blob/main/reference/934311b13024cb0dd7eebfaf948a2d70/README.md).


---

# 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://docs.abtasty.com/server-side/integrations/flagship-remote-control-api/manage-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.
