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

# Authentication

#### API Keys

To use the DRESSX paywall API, you need an API key.

Open the DRESSX API Dashboard:

[https://dashboard.dressxagent.com](https://dashboard.dressxagent.com/dashboard)

If you are not signed in, you will be redirected to the login page. After signing in, open the Dashboard page and copy your API key from the **API Keys** section.

API keys use the following format:

```
drx_live_1234567890abcdef1234567890ab888f1234567890abcdef
```

If a request is made without a valid API key, the API will return an authentication error.

**Using API Keys**

For paywall API endpoints, send your key in one of these headers:

```http
Api-Key: drx_live_1234567890abcdef1234567890abcdef1234567890abcdef
```

or:

```http
X-Api-Key: drx_live_1234567890abcdef1234567890abcdef1234567890abcdef
```

Example:

```bash
curl -X POST 'https://api.dressxagent.com/api_paywall/size/ask-image-size/' \
  -H 'Api-Key: drx_live_1234567890abcdef1234567890abcdef1234567890abcdef' \
  -H 'Content-Type: application/json' \
  -d '{
    "image_url": "https://example.com/model.jpg"
  }'
```

#### Security

Keep your API key private. Anyone who obtains your API key can use it to access the DRESSX API on your behalf.

If you suspect your API key has been compromised, contact your DRESSX administrator or manage access through the dashboard:

[https://dashboard.dressxagent.com](https://dashboard.dressxagent.com/dashboard)


---

# 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://dressx.gitbook.io/dressx-docs/getting-started/authentication.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.
