v53

latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-076771,7565.2 MB
Fleet enrollment API keys

Create an enrollment API key

Spaces method and path for this operation:

<div><span class="operation-verb post">post</span>&nbsp;<span class="operation-path">/s/{space_id}/api/fleet/enrollment_api_keys</span></div>

Refer to Spaces for more information.

Create an enrollment API key for a given agent policy.<br/><br/>[Required authorization] Route required privileges: fleet-agents-all.

post/api/fleet/enrollment_api_keys

Headers

kbn-xsrfstring required
Example:true

A required header to protect against CSRF attacks

Request body

expirationstring

The expiration time for the enrollment token, expressed as a duration (for example, 30d, 24h, 90m). By default, enrollment tokens never expire.

namestring
policy_idstring required

Response

Successful response

action'created' required