Hasura auth hook endpoint

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://openapi.logto.io/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "Logto API references MCP server": {
    "url": "https://openapi.logto.io/mcp"
  }
}

Close
GET /api/authn/hasura

The HASURA_GRAPHQL_AUTH_HOOK endpoint for Hasura auth. Use this endpoint to integrate Hasura's webhook authentication flow.

Query parameters

  • resource string Required

    Minimum length is 1.

  • unauthorizedRole string

Responses

  • 200 application/json

    The authenticated user claims in Hasura format. See Hasura docs for more information.

    Hide response attributes Show response attributes object
    • X-Hasura-User-Id string
    • X-Hasura-Role string
  • 400

    Bad Request

  • 401

    Unauthorized

GET /api/authn/hasura
curl \
 --request GET 'https://[tenant_id].logto.app/api/authn/hasura?resource=string'
Response examples (200)
{
  "X-Hasura-User-Id": "string",
  "X-Hasura-Role": "string"
}