> For the complete documentation index, see [llms.txt](https://docs.curra.io/curra-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.curra.io/curra-documentation/features/authorization.md).

# Authorization

Curra is operated by the coordinator (trustless authority), which indexes various blockchains to obtain data related to Curra features. All Curra features are completely non-custodial and doesn't require access to your private keys to work, you can treat it as "read-only".

### Prerequisites <a href="#prerequisites" id="prerequisites"></a>

To perform authorized requests, you can use JS/TS SDK or form HTTP requests by providing your [API key](broken://pages/gQZzk6jNxkbEXkk5e8Nc).

### Obtain API key <a href="#obtain-api-key" id="obtain-api-key"></a>

To get the API secret you should complete onboarding on the Curra [application](https://app.curra.io/). After that, the secret can be obtained on the [configuration page](https://app.curra.io/configuration):<br>

<figure><img src="/files/UYmBtaYR1Lnzn5eR6Qhi" alt="" width="563"><figcaption><p>Configuration page</p></figcaption></figure>

### JS/TS SDK <a href="#jsts-sdk" id="jsts-sdk"></a>

Install SDK:

```
npm i @curra/sdk
```

Create `Curra` instance:

```js
const { Blockchain, Curra } = require("@curra/sdk");

const curra = Curra.fromApiKey({
  apiKey: "paste your API key here",
});
```

Now you can use the instance to perform requests, and create an address for example:

```js
const address = await curra.getNextAddress();
```

### HTTP <a href="#http" id="http"></a>

API URL is [https://api.curra.io](https://api.curra.io/)

Set `X-API-KEY` header to your API key to authorize your HTTP request

HTTP request example to create an address on Ethereum blockchain:

```
GET /me
HOST: api.curra.io
```


---

# 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.curra.io/curra-documentation/features/authorization.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.
