# Core

[How to create an API Key ?](https://abyss-project.gitbook.io/abyss/onboarding/projects-and-applications#create-api-key)

### Using the NPM Core Package

The Core setup will allow you to use the core methods to access the service API.

{% code overflow="wrap" lineNumbers="true" %}

```typescript
AbyssStorageCore.setConfig({
  // Your Application Storage API Key
  applicationApiKey: "application-storage-api-key",
  // Your Application ID
  userApplicationId: "user-application-id",
});
// This method will enable automatic retry on failed http request to AbyssStorage API
AbyssStorageCore.enableAxiosRetry();
```

{% endcode %}

### Standalone

If you are not using the [NPM package](https://www.npmjs.com/package/@abyss-project/storage) to access the API, you can skip this step and just set your API key on the HTTP request header.

{% code overflow="wrap" lineNumbers="true" %}

```http
// HTTP Version
GET /api/user/me HTTP/1.1
Host: storage-api.abyss-project.fr
abyss-storage-api-key-application: "abyss-storage-api-key-application"

// Curl Version
curl --location 'https://storage-api.abyss-project.fr/api/user/me' \
--header 'abyss-storage-api-key-user-application: abyss-storage-api-key-user-application'
```

{% endcode %}

{% hint style="info" %}
`abyss-storage-api-key-application:` allow you to access application endpoint
{% 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://abyss-project.gitbook.io/abyss-storage/setup/core.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.
