# Getting started

Most endpoints are public and require no credentials. Just call them directly with a JSON body:

```http
POST https://api-uicp.yelbolt.workers.dev/v1/get-palette
Content-Type: application/json
```

To publish or manage palettes in the community gallery you'll need an access token. Here's the flow:

1. Call `GET /authenticate` — it returns a Server-Sent Events stream.
2. Open the `auth_url` from the first event in your browser and sign in.
3. The stream emits a `success` event with `access_token` and `refresh_token`.
4. Pass the token on protected endpoints: `Authorization: Bearer <access_token>`


---

# 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.ui-color-palette.com/api-reference/welcome/getting-started.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.
