Skip to main content
Mythic’s UI and scripting clients use the same GraphQL queries, mutations, and subscriptions. GraphQL lets a caller request an exact result shape and subscribe to live operational updates without joining data from several REST endpoints. All GraphQL HTTP requests are sent to /graphql. Subscriptions use the corresponding WebSocket endpoint. Supported operations begin with query, mutation, or subscription.

Authentication

Protected HTTP and GraphQL endpoints require a Bearer token:
The value can be a current access token returned by /auth or an opaque, scoped API token. The v3 apitoken header and cookie-only authentication are not accepted.
Use read-only resource scopes for monitors and reports, and add write scopes only for mutations the integration performs. Query scopeCheck during startup when a tool requires a known set of permissions.

Choosing an interface

  • Use the Mythic Python package for common workflows and subscriptions.
  • Use the Hasura console to explore the current schema and test queries.
  • Use direct GraphQL when another language already has a mature GraphQL client.
The public schema is the source of truth for argument names. In v4, action names are camelCase and many actions accept operation-scoped task_display_id or callback_display_id rather than internal database IDs.