Skip to main content
GET
/
users
/
auth
/
keys
/
{api_key_id}
Get API key
curl --request GET \
  --url https://api.elastic-cloud.com/api/v1/users/auth/keys/{api_key_id} \
  --header 'Authorization: <api-key>'
{
  "creation_date": "<dateTime>",
  "description": "<string>",
  "expiration_date": "<dateTime>",
  "id": "<string>",
  "key": "<string>",
  "organization_id": "<string>",
  "role_assignments": {
    "deployment": [
      {
        "all": "<boolean>",
        "application_roles": [
          "<string>",
          "<string>"
        ],
        "deployment_ids": [
          "<string>",
          "<string>"
        ],
        "organization_id": "<string>",
        "role_id": "<string>"
      },
      {
        "all": "<boolean>",
        "application_roles": [
          "<string>",
          "<string>"
        ],
        "deployment_ids": [
          "<string>",
          "<string>"
        ],
        "organization_id": "<string>",
        "role_id": "<string>"
      }
    ],
    "organization": [
      {
        "organization_id": "<string>",
        "role_id": "<string>"
      },
      {
        "organization_id": "<string>",
        "role_id": "<string>"
      }
    ],
    "platform": [
      {
        "role_id": "<string>"
      },
      {
        "role_id": "<string>"
      }
    ],
    "project": {
      "elasticsearch": [
        {
          "all": "<boolean>",
          "application_roles": [
            "<string>",
            "<string>"
          ],
          "organization_id": "<string>",
          "project_ids": [
            "<string>",
            "<string>"
          ],
          "role_id": "<string>"
        },
        {
          "all": "<boolean>",
          "application_roles": [
            "<string>",
            "<string>"
          ],
          "organization_id": "<string>",
          "project_ids": [
            "<string>",
            "<string>"
          ],
          "role_id": "<string>"
        }
      ],
      "observability": [
        {
          "all": "<boolean>",
          "application_roles": [
            "<string>",
            "<string>"
          ],
          "organization_id": "<string>",
          "project_ids": [
            "<string>",
            "<string>"
          ],
          "role_id": "<string>"
        },
        {
          "all": "<boolean>",
          "application_roles": [
            "<string>",
            "<string>"
          ],
          "organization_id": "<string>",
          "project_ids": [
            "<string>",
            "<string>"
          ],
          "role_id": "<string>"
        }
      ],
      "security": [
        {
          "all": "<boolean>",
          "application_roles": [
            "<string>",
            "<string>"
          ],
          "organization_id": "<string>",
          "project_ids": [
            "<string>",
            "<string>"
          ],
          "role_id": "<string>"
        },
        {
          "all": "<boolean>",
          "application_roles": [
            "<string>",
            "<string>"
          ],
          "organization_id": "<string>",
          "project_ids": [
            "<string>",
            "<string>"
          ],
          "role_id": "<string>"
        }
      ]
    }
  },
  "user_id": "<string>"
}

Authorizations

Authorization
string
header
required

Path Parameters

api_key_id
string
required

(Required) The API Key ID.

Example:

"<string>"

Response

The API key metadata is retrieved.

creation_date
string
Example:

"<dateTime>"

description
string
Example:

"<string>"

expiration_date
string
Example:

"<dateTime>"

id
string
Example:

"<string>"

key
string
Example:

"<string>"

organization_id
string
Example:

"<string>"

role_assignments
object
user_id
string
Example:

"<string>"

I