{
  "opencollection": "1.0.0",
  "info": {
    "name": "Rubrik Security Cloud API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Issue an OAuth2 access token (service account)",
        "type": "http"
      },
      "http": {
        "method": "POST",
        "url": "https://{rsc_fqdn}/api/client_token",
        "body": {
          "type": "json",
          "data": "{}"
        }
      },
      "docs": "Submits client credentials (client_id, client_secret, grant_type)\nand returns an OAuth2 access token used as a bearer token on\nsubsequent API calls.\n"
    },
    {
      "info": {
        "name": "Exchange an authorization code for an access token",
        "type": "http"
      },
      "http": {
        "method": "POST",
        "url": "https://{rsc_fqdn}/api/oauth/token",
        "body": {
          "type": "form-urlencoded",
          "data": [
            {
              "name": "grant_type",
              "value": ""
            },
            {
              "name": "code",
              "value": ""
            },
            {
              "name": "code_verifier",
              "value": ""
            },
            {
              "name": "client_id",
              "value": ""
            },
            {
              "name": "redirect_uri",
              "value": ""
            }
          ]
        }
      },
      "docs": "OAuth2 Authorization Code with PKCE token exchange endpoint."
    },
    {
      "info": {
        "name": "Execute a GraphQL query or mutation",
        "type": "http"
      },
      "http": {
        "method": "POST",
        "url": "https://{rsc_fqdn}/api/graphql",
        "body": {
          "type": "json",
          "data": "{}"
        }
      },
      "docs": "Single GraphQL endpoint for all RSC operations. Submit GraphQL\nqueries and mutations as JSON. Responses contain only the fields\nrequested in the query.\n"
    },
    {
      "info": {
        "name": "Revoke the current session",
        "type": "http"
      },
      "http": {
        "method": "DELETE",
        "url": "https://{rsc_fqdn}/api/session"
      },
      "docs": "Revokes the session associated with the supplied bearer token."
    }
  ],
  "bundled": true
}