# \_auth\_ANILIST

AniList authentication provider (OAuth).

{% tabs %}
{% tab title="End users" %}

### What this auth provider does

Handles AniList OAuth so CrossWatch can call the AniList GraphQL API.

### Auth flow

* `oauth_code` (redirect URI + code exchange)

### Writes to config

Namespace:

* `cfg["anilist"]`

### Related docs

* UI setup: [Auth: AniList](/crosswatch/providers/authentication/auth-trackers/auth-anilist.md)
* Adapter: [Adapter: AniList](/crosswatch/providers/synchronization/adapter-anilist.md)
* Sync module: [AniList module](/blueprint-architecture/sync/_mod_anilist.md)

### Gotchas

* Redirect URL must match exactly (scheme/host/port/path).
* Switching HTTP ↔ HTTPS requires updating the AniList app settings.
  {% endtab %}

{% tab title="Power users" %}

### Code map

* `providers/auth/_auth_ANILIST.py`

### Public surface

* class: `AniListAuth`
* functions: `log()`, `html()`

### External endpoints

* `https://anilist.co/api/v2/oauth/authorize`
* `https://anilist.co/api/v2/oauth/token`
* `https://graphql.anilist.co`

### Capabilities

<details>

<summary>Capabilities (raw)</summary>

```json
{
  "features": {
    "watchlist": {
      "read": true,
      "write": true
    }
  }
}
```

</details>
{% endtab %}
{% endtabs %}


---

# 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://wiki.crosswatch.app/blueprint-architecture/auth/_auth_anilist.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.
