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

# Getting Started

## Endpoint

The ArtistHub API is a GraphQL endpoint that takes `POST` requests.

```
https://api.artisthub.io/v1/graphql
```

### Why GraphQL?

GraphQL is a query language for APIs and a runtime for executing those queries by using a type system you define for your data. Unlike REST, which relies on rigid endpoint structures, GraphQL allows clients to shape their queries and mutations exactly as needed, reducing over-fetching and under-fetching of data.

## Building a Request

There are two pieces of information you'll need to start using the ArtistHub API endpoint.

**Authentication Token:** To use the ArtistHub API, you need to get and send an authentication token first.  You will send this token via a Bearer token in the HTTP headers.

**Artist ID:** Each artist has a unique artist ID. You'll typically need to send this ID to reference the specific artist you're interested in from the ArtistHub database.


---

# 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:

```
GET https://developers.artisthub.io/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.
