Create a remote Agent Skill target enrollment

POST
/v1/skill/remote/target/create

Create a pending project target and return one short-lived enrollment code exactly once.

Authorization

BearerAuth
AuthorizationBearer <token>

Static bearer token used when local Server authentication is enabled.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/skill/remote/target/create" \  -H "Content-Type: application/json" \  -d '{    "scope_id": "string",    "agent_kind": "codex",    "display_name": "string"  }'
{  "target": {    "scope_id": "string",    "target_id": "string",    "display_name": "string",    "agent_kind": "codex",    "installation_scope": "project",    "delivery_mode": "agent_pull",    "installation_id": "string",    "state": "pending",    "receiver_version": "string",    "environment_fingerprint": "string",    "machine_hostname": "string",    "workspace_name": "string",    "last_seen_at": "2019-08-24T14:15:22Z",    "generation": 0  },  "enrollment_code": "stringstringstringstringstringst",  "enrollment_expires_at": "2019-08-24T14:15:22Z"}