Elastic Stack (ELK Stack) Organizations API

The Organizations API from Elastic Stack (ELK Stack) — 15 operation(s) for organizations.

Business capability
Identity & Access Management BC-620.20

Operations 23

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 /organizations List the organizations I belong to · List organizations #
Ask an LLM
“Which Elastic Cloud organizations does my user have access to?”
“Can I see every organization available to my account in one call?”
Tell an agent
List all the organizations my user can access.
Show me which cloud organizations are available to the current user.
GET /organizations/invitations/{invitation_token} Look up an organization invitation by token · Get organization invitation #
Ask an LLM
“What organization does this invitation token belong to?”
“Can I check the details of a single invite before I accept it?”
Tell an agent
Get the organization invitation with token {invitation_token}.
Show me who invited me and to which organization using invite token {invitation_token}.
GET /organizations/{organization_id} Get an organization's details · Fetch organization information #
Ask an LLM
“How do I fetch the name and settings of one organization by its id?”
“What information is stored about my Elastic Cloud organization?”
Tell an agent
Fetch organization {organization_id}.
Show the name, contacts and alert settings of organization {organization_id}.
PUT /organizations/{organization_id} Update an organization's name and contacts · Update organization #
Ask an LLM
“Can I rename my organization or change its billing contacts?”
“Is there a way to restrict which email domains can receive organization notifications?”
Tell an agent
Rename organization {organization_id} to {name}.
Set the billing contacts on organization {organization_id} to {billing_contacts}.
GET /organizations/{organization_id}/domains List an organization's claimed domains · Get domain claims #
Ask an LLM
“Which email domains has my organization already claimed?”
“How can I see the verified domain claims for an organization?”
Tell an agent
List the domain claims for organization {organization_id}.
Show which domains organization {organization_id} owns.
DELETE /organizations/{organization_id}/domains Remove a claimed domain from an organization · Delete domain claim #
Ask an LLM
“How do I give up a domain my organization previously claimed?”
“Can I delete a domain claim that is no longer ours?”
Tell an agent destructive · confirm first
Delete the domain claim {domain_claim_request} from organization {organization_id}.
Unclaim domain {domain_claim_request} for org {organization_id}.
POST /organizations/{organization_id}/domains/_generate_verification_code Generate a domain verification code · Generate verification code #
Ask an LLM
“How do I get the verification code I need to prove we own a domain?”
“What value do I put in DNS to start a domain claim challenge?”
Tell an agent
Generate a verification code to claim domain {domain_claim_request} for organization {organization_id}.
Start the domain claim challenge for {domain_claim_request} in org {organization_id}.
POST /organizations/{organization_id}/domains/_verify Verify a domain claim challenge · Verify domain claim #
Ask an LLM
“Once the verification code is published, how do I complete the domain claim?”
“Can I check that our domain ownership challenge now passes?”
Tell an agent
Verify the domain claim for {domain_claim_request} on organization {organization_id}.
Complete the ownership check for domain {domain_claim_request} now that the code is in place for org {organization_id}.
GET /organizations/{organization_id}/idp Get an organization's SSO identity provider · Get organization IdP #
Ask an LLM
“What SAML identity provider is configured for my organization?”
“Is single sign-on enabled for our organization right now?”
Tell an agent
Show the IdP configuration for organization {organization_id}.
Check whether SSO is enabled on org {organization_id}.
PUT /organizations/{organization_id}/idp Set up SAML single sign-on for an organization · Setup organization IdP #
Ask an LLM
“How do I connect our SAML identity provider so members log in with SSO?”
“Can I set a login identifier prefix when configuring organization SSO?”
Tell an agent
Set up SAML SSO for organization {organization_id} with IdP settings {saml_idp} and login prefix {login_identifier_prefix}, enabled {enabled}.
Configure org {organization_id} to use identity provider {saml_idp} with SSO turned on ({enabled}) and prefix {login_identifier_prefix}.
DELETE /organizations/{organization_id}/idp Remove an organization's SSO identity provider · Tear down organization IdP #
Ask an LLM
“How do I tear down single sign-on for my organization?”
“Can I remove the SAML identity provider we configured?”
Tell an agent destructive · confirm first
Tear down the IdP for organization {organization_id}.
Remove SAML SSO from org {organization_id}.
GET /organizations/{organization_id}/idp/metadata.xml Download the SAML service provider metadata.xml · Get organization service provider SAML2 metadata.xml for configuring the… #
Ask an LLM
“Where do I get the SAML metadata.xml to configure our identity provider?”
“What service provider metadata does my IdP need for organization SSO?”
Tell an agent
Download the SAML2 metadata.xml for organization {organization_id}.
Get the service provider metadata file I should load into our IdP for org {organization_id}.
GET /organizations/{organization_id}/invitations List open invitations to an organization · List organization invitations #
Ask an LLM
“Which invitations to my organization are still pending?”
“Who has been invited to our organization but not joined yet?”
Tell an agent
List the open invitations for organization {organization_id}.
Show pending invites to org {organization_id}.
POST /organizations/{organization_id}/invitations Invite people to an organization · Create organization invitations #
Ask an LLM
“How do I invite teammates to my organization by email?”
“Can I set how long an organization invitation stays valid?”
Tell an agent
Invite {emails} to organization {organization_id}.
Send invitations to {emails} for org {organization_id} that expire in {expires_in}.
DELETE /organizations/{organization_id}/invitations/{invitation_tokens} Revoke organization invitations · Delete organization invitations #
Ask an LLM
“How do I cancel an invitation I sent by mistake?”
“Can I revoke several pending organization invites at once?”
Tell an agent destructive · confirm first
Delete invitations {invitation_tokens} from organization {organization_id}.
Revoke the pending invites {invitation_tokens} to org {organization_id}.
GET /organizations/{organization_id}/members List the members of an organization · List organization members #
Ask an LLM
“Who belongs to my organization?”
“How can I get the list of users in an organization?”
Tell an agent
List the members of organization {organization_id}.
Show every user that belongs to org {organization_id}.
DELETE /organizations/{organization_id}/members/{user_ids} Remove users from an organization · Delete organization memberships #
Ask an LLM
“How do I remove someone from my organization?”
“Can I force-remove members from an organization in one request?”
Tell an agent destructive · confirm first
Remove users {user_ids} from organization {organization_id}.
Force-delete the memberships of {user_ids} in org {organization_id}.
GET /organizations/{organization_id}/role_mappings Get an organization's SSO role mappings · Get role mappings #
Ask an LLM
“Which roles do SSO users get when they log in to our organization?”
“What role mappings are configured for my organization?”
Tell an agent
Get the role mappings for organization {organization_id}.
Show how SSO logins map to roles in org {organization_id}.
POST /organizations/{organization_id}/role_mappings Add SSO role mappings · Adds role mapping #
Ask an LLM
“Can I add a new SSO role mapping without replacing the existing ones?”
“How do I append role assignments for SSO logins?”
Tell an agent
Add role mappings {mappings} to organization {organization_id}.
Append {mappings} to the existing SSO mappings of org {organization_id}.
PUT /organizations/{organization_id}/role_mappings Replace all SSO role mappings · Updates role mappings #
Ask an LLM
“How do I replace the whole set of SSO role mappings at once?”
“Can I overwrite every role assignment applied at SSO login?”
Tell an agent
Replace the role mappings of organization {organization_id} with {mappings}.
Overwrite all SSO role assignments for org {organization_id} using {mappings}.
DELETE /organizations/{organization_id}/role_mappings Delete all SSO role mappings · Delete role mappings #
Ask an LLM
“How do I clear every role mapping from my organization?”
“Can I wipe out all SSO role assignments in one go?”
Tell an agent destructive · confirm first
Delete all role mappings for organization {organization_id}.
Clear every SSO role mapping in org {organization_id}.
DELETE /organizations/{organization_id}/role_mappings/{role_names} Delete specific SSO role mappings by name · Delete role mapping #
Ask an LLM
“Can I delete just one named role mapping and keep the rest?”
“How do I remove particular SSO role mappings by their names?”
Tell an agent destructive · confirm first
Delete the role mappings named {role_names} from organization {organization_id}.
Remove only mapping {role_names} in org {organization_id}.
PUT /organizations/{organization_id}/role_mappings/{role_name} Update one SSO role mapping by name · Update role mapping #
Ask an LLM
“How do I edit a single existing role mapping by its name?”
“Can I change what one named SSO mapping grants?”
Tell an agent
Update role mapping {role_name} in organization {organization_id} to {mapping}.
Change the named mapping {role_name} for org {organization_id} so it becomes {mapping}.

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/elk-stack:elk-stack-organizations-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

elk-stack-organizations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: '1'
  title: Elastic Cloud Enterprise Organizations API
  termsOfService: ''
servers:
- url: https://{{hostname}}/api/v1
security:
- basicAuth: []
- apiKey: []
tags:


# --- truncated at 32 KB (58 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/elk-stack/refs/heads/main/openapi/elk-stack-organizations-api-openapi.yml