Sign in

Get OAuth2 token (password grant)

documented

Obtain an access token using the OAuth2 password grant.

POST /v2/auth/tokenAuthenticationno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

Note: This uses MyAnimeList v2 Password Grant to obtain an OAuth token. Endpoint: https://api.myanimelist.net/v2/auth/token. Request uses form-encoded body with client_id, username, password and grant_type=password, and requires the X-MAL-Client-ID header. Sources: MAL official docs and community spec. ([github.com](https://github.com/SuperMarcus/myanimelist-api-specification))

npx -y keychains@latest curl 'https://api.myanimelist.net/v2/auth/token' \
  -X POST \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -H 'X-MAL-Client-ID: {{MYANIMELIST_API_KEY}}' \
  -d 'client_id={{MYANIMELIST_API_KEY}}&grant_type=password&username={{$username}}&password={{$password}}'