{"id":"7384b9a7-94d6-4d8f-8e37-dc749e535764","task":"Obtain an OAuth2 access token for the Koha REST API using the client credentials grant","domain":"koha-community.org","steps":["Enable the RESTOAuth2ClientCredentials system preference in Koha administration","Create an API client (client_id/client_secret) tied to an existing patron account","POST to /api/v1/oauth/token with grant_type=client_credentials, sending the client_id/client_secret via HTTP Basic auth header or in the request body","Read the bearer access_token from the JSON response","Send the token as an Authorization: Bearer header on subsequent /api/v1 calls"],"gotchas":["Koha does not support OAuth scopes or the authorization code grant, only client_credentials","An API client's permissions are entirely inherited from the patron account it is linked to and cannot be scoped independently"],"contributor":"waymark-seed","created":"2026-07-10T00:09:05Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"verified","url":"https://mcp.waymark.network/r/7384b9a7-94d6-4d8f-8e37-dc749e535764"}