v53

latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-076771,7565.2 MB
Fleet service tokens

Create a service token

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/service_tokens</span></div>

Refer to Spaces for more information.

Create a Fleet Server service token. The token is used to enroll Fleet Server instances with Kibana.<br/><br/>[Required authorization] Route required privileges: fleet-agents-all.

post/api/fleet/service_tokens

Headers

kbn-xsrfstring required
Example:true

A required header to protect against CSRF attacks

Request body

remoteboolean

Response

Successful response

namestring required
valuestring required