# HTTP API methods

The IPFS documentation lists the [IPFS HTTP API methods](https://docs.ipfs.io/reference/http/api/).

Wetez supports a subset of these which are detailed in this section.

{% hint style="warning" %}
All Wetez IPFS methods require including the Admin Key or use Dedicated Gateway
{% endhint %}

## Arguments

Arguments are added through the special query string key `arg`:

```bash
curl -X POST "https://mainnet-rpc.wetez.io/ipfs/$AdminKey/api/v0/add?recursive=false&quiet=<value>&quieter=<value>&silent=<value>&progress=<value>&trickle=<value>&only-hash=<value>&wrap-with-directory=<value>&hidden=<value>&chunker=<value>&pin=true&raw-leaves=<value>&nocopy=<value>&fscache=<value>&cid-version=0&hash=sha2-256"
```

Note that `arg` can be used multiple times to signify multiple arguments.

## NDJSON responses

When a bunch of objects are requested, IPFS returns them in the Newline Delimited JSON, [NDJSON](http://ndjson.org/), format.&#x20;

This is because the calls are asynchronous and the responses are processed one object at a time.

{% hint style="warning" %}
Response JSON includes `\n` separators that must be dealt with.
{% endhint %}


---

# 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.wetez.io/wetez/developer/storage/http-api-methods.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.
