Admiral
Agents

Issue an enrollment key

POST
/v1/agents/{agent_id}/enrollment-keys

Scope: agent:write

Authorization

bearerAuth
AuthorizationBearer <token>

Personal Access Token (PAT) or Service Access Token (SAT). Pass the token in the Authorization header: Bearer admp_...

In: header

Path Parameters

agent_id*agent_id

The agent_id path parameter.

Formatuuid

Response Body

application/json

curl -X POST "https://example.com/v1/agents/497f6eca-6276-4993-bfeb-53cbbbba6f08/enrollment-keys"
{  "enrollment_key": {    "key": "string",    "expires_at": "2023-01-15T01:30:15.01Z"  }}