LoguDocs
Open Logu

Agents · denyOAuthRequest

Cancel connecting a connector

POST /v1/oauth/requests/{id}/deny

Refuses the request: nothing is created, and redirectTo sends the browser back to the client with error=access_denied.

Who may call it
any signed-in human
Server
https://api.logu.dev

Parameters#

NameInTypeRequiredDescription
idpathstringrequiredThe OAuth request's id (oar_…), from the /connect?request= link. · e.g. oar_Tq9mZ2xK7pW4vR8nB3cY6dF1gH5jL0sA

Example#

curl -s -X POST "https://api.logu.dev/v1/oauth/requests/oar_Tq9mZ2xK7pW4vR8nB3cY6dF1gH5jL0sA/deny" \
  -H "Authorization: Bearer $LOGU_SESSION_TOKEN"

Responses#

200

Where to send the browser.

{
  "redirectTo": "https://claude.ai/api/mcp/auth_callback?error=access_denied&error_description=The+human+cancelled+connecting&state=af0ifjsldkj&iss=https%3A%2F%2Fapi.logu.dev"
}
Response fields
FieldTypeRequiredNotes
redirectTostringrequired

Errors#

Every error is {"error":{"code","message","hint","docUrl","requestId"}}: branch on code. See Errors.

StatusCodeMeaning
401unauthorizedNo credentials, or the API key or session is invalid or revoked.
403forbiddenThe caller is authenticated but may not do this (wrong role, or an API key on a human-only endpoint).
404not_foundNo such route, or the resource doesn't exist in your workspace.
409conflictThe resource isn't in a state that allows this: an ask that is no longer waiting (ask has its current state), an invitation no longer pending, the last Owner.
500internal_errorSomething went wrong on Logu's side.