> For the complete documentation index, see [llms.txt](https://docs.langstack.com/welcome/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.langstack.com/welcome/get-started/learn-langstack/introduction-to-rest-api/create-an-api/working-with-api-options.md).

# Working with API options

The options for an API are as follows:

* To copy the API, go to the API listing and click the clipboard icon.

{% embed url="<https://media.langstack.com/documentation/media/images/code/training_manual/chapter_4/ch4copyapi.png>" %}

* The API page opens. Enter a new name for the new API, update path parameters and click the \[Save] button to save it as a new API.
* If the delete icon is grey, the API cannot be deleted (as it is in use).

{% embed url="<https://media.langstack.com/documentation/media/images/code/training_manual/chapter_4/ch4greydelapi.png>" %}

* If the delete icon is red, the API can be deleted.&#x20;
* To delete the API:
  * Click the "delete" icon.
  * To confirm the deletion of the API, enter the API name. Click the \[Delete] button (which gets activated after entering the API name).

<figure><img src="https://media.langstack.com/documentation/media/images/code/training_manual/chapter_4/ch4reddelapi.png" alt=""><figcaption></figcaption></figure>

{% embed url="<https://media.langstack.com/documentation/media/images/code/training_manual/chapter_4/ch4confirmdelapi.png>" %}

* To disable or enable an API, click the toggle button. A disabled API shows a gray toggle button.

{% embed url="<https://media.langstack.com/documentation/media/images/code/training_manual/chapter_4/ch4enabledisableapi.png>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.langstack.com/welcome/get-started/learn-langstack/introduction-to-rest-api/create-an-api/working-with-api-options.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
