> For the complete documentation index, see [llms.txt](https://docs.frends.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.frends.com/tasks/tasks/confluence/request.md).

# Request

Make a request to Confluence.

Task version: 1.1.0

Required Frends version: 5.7+

Required .NET version: 8.0

Compatible Agents: Crossplatform

Source code: <https://github.com/FrendsPlatform/Frends.Confluence/tree/main/Frends.Confluence.Request>

## Task Parameters

{% tabs %}
{% tab title="Input" %}

| Name                                           | Description                                                                                                                                                                                                                                                                                                                                                                                                          |
| ---------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Username : `String`                            | <p>Username used to connect to confluence with Basic Auth.</p><p><br>Default: <code>-</code><br>Example: <code><john.doe@email.com></code></p>                                                                                                                                                                                                                                                                       |
| 🗝ApiToken : `String`                          | <p>ApiToken used to connect to confluence with Basic Auth.</p><p><br>Default: <code>-</code><br>Example: <code>AKxDuOPvOWAb2g1-HtJmeqnlcztevlXMqDGtsNURL88=2C9A9D12</code></p>                                                                                                                                                                                                                                       |
| HttpMethod : `HttpMethod`                      | <p>Define method of request.</p><p>Possible values:</p><ul><li><code>GET</code>: Define method of request.</li><li><code>POST</code>: Define method of request.</li><li><code>PUT</code>: Define method of request.</li><li><code>PATCH</code>: Define method of request.</li><li><code>DELETE</code>: Define method of request.</li></ul><p><br>Default: <code>-</code><br>Example: <code>HttpMethod.Get</code></p> |
| ApiVersion : `ApiVersion`                      | <p>Api version that will be used in a request.</p><p>Possible values:</p><ul><li><code>V1</code>: Api version that will be used in a request.</li><li><code>V2</code>: Api version that will be used in a request.</li></ul><p><br>Default: <code>-</code><br>Example: <code>ApiVersion.V1</code></p>                                                                                                                |
| ConfluenceDomainName : `String`                | <p>Confluence name</p><p><br>Default: <code>-</code><br>Example: <code>example-name</code></p>                                                                                                                                                                                                                                                                                                                       |
| OperationSufix : `String`                      | <p>Url suffix from of operation. All operations are described in Confluence Rest API documentation.</p><p><br>Default: <code>-</code><br>Example: <code>/audit/export</code></p>                                                                                                                                                                                                                                     |
| JsonBody : `String`                            | <p>Body content of a request if needed in a JSON format.</p><p><br>Default: <code>-</code><br>Example: <code>{"title": "New Page", "status": "current"}</code></p>                                                                                                                                                                                                                                                   |
| QueryParameters : `Dictionary<String, String>` | <p>Query parameters from which query string will be constructed.</p><p><br>Default: <code>-</code><br>Example: <code>{ {page, 1}, {limit, 5} }</code></p>                                                                                                                                                                                                                                                            |
| {% endtab %}                                   |                                                                                                                                                                                                                                                                                                                                                                                                                      |

{% tab title="Options" %}

| Name                             | Description                                                                                                                                              |
| -------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ThrowErrorOnFailure : `Boolean`  | <p>Whether to throw an error on failure.</p><p><br>Default: <code>True</code><br>Example: <code>true</code></p>                                          |
| ErrorMessageOnFailure : `String` | <p>Overrides the error message on failure.</p><p><br>Default: <code>-</code><br>Example: <code>Confluence request failed: invalid credentials</code></p> |
| {% endtab %}                     |                                                                                                                                                          |
| {% endtabs %}                    |                                                                                                                                                          |

## Task Result

| Name                               | Description                                                                                                            |
| ---------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| Success : `Boolean`                | <p>Indicates whether the operation completed successfully.<br>Example: <code>true</code></p>                           |
| Error : `Error`                    | <p>Error details. Null when Success is true.<br>Example: <code>null</code></p>                                         |
| Error.Message : `String`           | <p>Error message describing the failure.<br>Example: <code>Request to Confluence API failed with status 401</code></p> |
| Error.AdditionalInfo : `Exception` | <p>Additional information about the error, typically the original exception.<br>Example: <code>null</code></p>         |
| StatusCode : `Int32`               | <p>Returned status code.<br>Example: <code>200</code></p>                                                              |
| Content : `Object`                 | <p>Body of the response represented as JToken.<br>Example: <code>{ "id": 123 }</code></p>                              |

## Task Changelog

Changelog for Task Frends.Confluence.Request.

### \[1.1.0] - 2026-08-20

#### Changed

* Added a required `Options` parameter to the `Request` method for controlling error handling behavior.
* Upgraded target framework from .NET 6 to .NET 8.
* The `Result` object now includes `Success` and `Error` properties for improved error handling.

### \[1.0.0] - 2024-05-21

#### Added

* Initial implementation of Frends.Confluence.Request.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.frends.com/tasks/tasks/confluence/request.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
