WorkOS PHP SDK

AgentBlueprintsTokenMintTokenRequest
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

Table of Contents

Interfaces

JsonSerializable

Properties

$agentAccessToken  : string|null
The agent's own access token to exchange for a new session on the same instance. The token must have been minted from this blueprint; permissions are re-derived from current authority.
$intent  : string|null
Optional caller-supplied context, echoed as an object with a `text` field in the `intent` claim of the minted access token.
$organizationId  : string|null
The organization the agent acts within when operating as itself.
$refreshToken  : string|null
The refresh token issued with a previous agent access token. Refresh tokens are single-use: each refresh rotates it.
$type  : AgentBlueprintsTokenMintTokenRequestType
How the session is minted: `user_delegated`, `autonomous`, `agent_delegated`, or `refresh`.
$userAccessToken  : string|null
The access token of the user delegating to the agent. The token identifies the user and organization; effective permissions are resolved server-side.

Methods

__construct()  : mixed
fromArray()  : self
jsonSerialize()  : array<string|int, mixed>
toArray()  : array<string|int, mixed>

Properties

$agentAccessToken

The agent's own access token to exchange for a new session on the same instance. The token must have been minted from this blueprint; permissions are re-derived from current authority.

public string|null $agentAccessToken = null

$intent

Optional caller-supplied context, echoed as an object with a `text` field in the `intent` claim of the minted access token.

public string|null $intent = null

$refreshToken

The refresh token issued with a previous agent access token. Refresh tokens are single-use: each refresh rotates it.

public string|null $refreshToken = null

$userAccessToken

The access token of the user delegating to the agent. The token identifies the user and organization; effective permissions are resolved server-side.

public string|null $userAccessToken = null

Methods

__construct()

public __construct(AgentBlueprintsTokenMintTokenRequestType $type[, string|null $userAccessToken = null ][, string|null $intent = null ][, string|null $organizationId = null ][, string|null $agentAccessToken = null ][, string|null $refreshToken = null ]) : mixed
Parameters
$type : AgentBlueprintsTokenMintTokenRequestType
$userAccessToken : string|null = null
$intent : string|null = null
$organizationId : string|null = null
$agentAccessToken : string|null = null
$refreshToken : string|null = null

jsonSerialize()

public jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>
On this page

Search results