Grafana SAML API

The saml API from Grafana — 4 operation(s) for saml.

GitHub OpenAPI
Business capability
Identity & Access Management BC-620.20

Operations 5

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /logout/saml Start a SAML single logout · GetLogout initiates single logout process #
Ask an LLM
“How do I start a SAML single logout from Grafana?”
“Can I send a SAML logout request to the identity provider?”
Tell an agent
Start a SAML single logout.
Send a SAML logout request to the identity provider.
POST /saml/acs Handle a SAML assertion consumer service request · It performs Assertion Consumer Service (ACS) #
Ask an LLM
“What does the SAML assertion consumer service endpoint receive from the identity provider?”
“Can I keep the RelayState value when processing a SAML assertion?”
Tell an agent
Process the SAML assertion consumer service request.
Send the SAML assertion back to the identity provider with RelayState {RelayState}.
GET /saml/metadata Get the SAML service provider metadata · It exposes the SP (Grafana's) metadata for the IdP's consumption #
Ask an LLM
“Where can I get the SAML metadata for the Grafana service provider?”
“What does the SAML SP metadata expose for my identity provider?”
Tell an agent
Get the SAML service provider metadata.
Download the SAML SP metadata for my identity provider.
GET /saml/slo Handle a SAML single logout callback · It performs Single Logout (SLO) callback #
Ask an LLM
“What happens when the identity provider sends a logout response back to Grafana after SLO?”
“Can I get the SAML single logout callback to end a user's session?”
Tell an agent
Receive the SAML single logout callback.
Process the IdP-initiated logout callback.
POST /saml/slo Respond to a SAML single logout request · It performs Single Logout (SLO) callback #
Ask an LLM
“How do I send a SAML logout response back to the identity provider?”
“Can I accept a SAML logout request as a POST body?”
Tell an agent
Send a SAML logout response to the identity provider.
Accept the SAML logout request {SAMLRequest} as a POST body.

Documentation

📖
Documentation
https://grafana.com/docs/grafana/latest/developers/http_api/
📖
Authentication
https://grafana.com/docs/grafana/latest/developers/http_api/authentication/
📖
Documentation
https://grafana.com/docs/grafana/latest/developers/http_api/dashboard/
📖
Documentation
https://grafana.com/docs/grafana/latest/developers/http_api/dashboard_versions/
📖
Documentation
https://grafana.com/docs/grafana/latest/developers/http_api/dashboard_permissions/
📖
Documentation
https://grafana.com/docs/grafana/latest/developers/http_api/dashboard_public/
📖
Documentation
https://grafana.com/docs/grafana/latest/developers/http_api/folder/
📖
Documentation
https://grafana.com/docs/grafana/latest/developers/http_api/folder_dashboard_search/
📖
Documentation
https://grafana.com/docs/grafana/latest/developers/http_api/folder_permissions/
📖
Documentation
https://grafana.com/docs/grafana/latest/developers/http_api/data_source/
📖
Documentation
https://grafana.com/docs/grafana/latest/developers/http_api/datasource_permissions/
📖
Documentation
https://grafana.com/docs/grafana/latest/developers/http_api/datasource_lbac_rules/
📖
Documentation
https://grafana.com/docs/grafana/latest/developers/http_api/alerting_provisioning/
📖
Documentation
https://grafana.com/docs/grafana/latest/developers/http_api/annotations/
📖
Documentation
https://grafana.com/docs/grafana/latest/developers/http_api/org/
📖
Documentation
https://grafana.com/docs/grafana/latest/developers/http_api/user/
📖
Documentation
https://grafana.com/docs/grafana/latest/developers/http_api/team/
📖
Documentation
https://grafana.com/docs/grafana/latest/developers/http_api/team_sync/
📖
Documentation
https://grafana.com/docs/grafana/latest/developers/http_api/preferences/
📖
Documentation
https://grafana.com/docs/grafana/latest/developers/http_api/access_control/
📖
Documentation
https://grafana.com/docs/grafana/latest/developers/http_api/serviceaccount/
📖
Documentation
https://grafana.com/docs/grafana/latest/developers/http_api/sso-settings/
📖
Documentation
https://grafana.com/docs/grafana/latest/developers/http_api/admin/
📖
Documentation
https://grafana.com/docs/grafana/latest/developers/http_api/licensing/
📖
Documentation
https://grafana.com/docs/grafana/latest/developers/http_api/reporting/
📖
Documentation
https://grafana.com/docs/grafana/latest/developers/http_api/query_and_resource_caching/
📖
Documentation
https://grafana.com/docs/grafana/latest/developers/http_api/library_element/
📖
Documentation
https://grafana.com/docs/grafana/latest/developers/http_api/correlations/
📖
Documentation
https://grafana.com/docs/grafana/latest/developers/http_api/snapshot/
📖
Documentation
https://grafana.com/docs/grafana/latest/developers/http_api/short_url/
📖
Documentation
https://grafana.com/docs/grafana/latest/developers/http_api/query_history/

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/grafana-com:grafana-com-saml-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

grafana-com-saml-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: 'The Grafana backend exposes an HTTP API, the same API is used by the frontend to do

    everything from saving dashboards, creating users and updating data sources.'
  title: Grafana HTTP API. SAML API
  contact:
    name: Grafana Labs
    url: https://grafana.com
    email: hello@grafana.com
  version: 0.0.1
servers:
- url: /api
security:
- basic: []
- api_key: []
tags:
- name: SAML
paths:
  /logout/saml:
    get:
      tags:
      - SAML
      summary: GetLogout initiates single logout process
      operationId: getSAMLLogout
      responses:
        '302':
          description: (empty)
        '404':
          $ref: '#/components/responses/notFoundError'
        '500':
          $ref: '#/components/responses/internalServerError'
  /saml/acs:
    post:
      tags:
      - SAML
      summary: It performs Assertion Consumer Service (ACS)
      operationId: postACS
      parameters:
      - name: RelayState
        in: query
        schema:
          type: string
      responses:
        '302':
          description: (empty)
        '403':
          $ref: '#/components/responses/forbiddenError'
        '500':
          $ref: '#/components/responses/internalServerError'
  /saml/metadata:
    get:
      tags:
      - SAML
      summary: It exposes the SP (Grafana's) metadata for the IdP's consumption
      operationId: getMetadata
      responses:
        '200':
          $ref: '#/components/responses/contentResponse'
  /saml/slo:
    get:
      description: 'There might be two possible requests:

        1. Logout response (callback) when Grafana initiates single logout and IdP returns response to logout request.

        2. Logout request when another SP initiates single logout and IdP sends logout request to the Grafana,

        or in case of IdP-initiated logout.'
      tags:
      - SAML
      summary: It performs Single Logout (SLO) callback
      operationId: getSLO
      responses:
        '302':
          description: (empty)
        '400':
          $ref: '#/components/responses/badRequestError'
        '403':
          $ref: '#/components/responses/forbiddenError'
        '500':
          $ref: '#/components/responses/internalServerError'
    post:
      description: 'There might be two possible requests:

        1. Logout response (callback) when Grafana initiates single logout and IdP returns response to logout request.

        2. Logout request when another SP initiates single logout and IdP sends logout request to the Grafana,

        or in case of IdP-initiated logout.'
      tags:
      - SAML
      summary: It performs Single Logout (SLO) callback
      operationId: postSLO
      parameters:
      - name: SAMLRequest
        in: query
        schema:
          type: string
      - name: SAMLResponse
        in: query
        schema:
          type: string
      responses:
        '302':
          description: (empty)
        '400':
          $ref: '#/components/responses/badRequestError'
        '403':
          $ref: '#/components/responses/forbiddenError'
        '500':
          $ref: '#/components/responses/internalServerError'
components:
  schemas:
    ErrorResponseBody:
      type: object
      required:
      - message
      properties:
        error:
          description: Error An optional detailed description of the actual error. Only included if running in developer mode.
          type: string
        message:
          description: a human readable version of the error
          type: string
        status:
          description: 'Status An optional status to denote the cause of the error.


            For example, a 412 Precondition Failed error may include additional information of why that error happened.'
          type: string
  responses:
    contentResponse:
      description: (empty)
      content:
        application/json:
          schema:
            type: array
            items:
              type: integer
              format: uint8
    forbiddenError:
      description: ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponseBody'
    notFoundError:
      description: NotFoundError is returned when the requested resource was not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponseBody'
    badRequestError:
      description: BadRequestError is returned when the request is invalid and it cannot be processed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponseBody'
    internalServerError:
      description: InternalServerError is a general error indicating something went wrong internally.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponseBody'
  securitySchemes:
    api_key:
      type: apiKey
      name: Authorization
      in: header
    basic:
      type: http
      scheme: basic