WorkOS PHP SDK

AgentAdminValidateCredentialRequest
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

Table of Contents

Interfaces

JsonSerializable

Properties

$audience  : string|null
When provided, the access token's `aud` claim is verified against this value. Tokens issued for a different resource are rejected.
$credential  : string
The credential value to validate: the API key value for `api_key`, or the access token (JWT) for `access_token`.
$type  : AgentAdminValidateCredentialRequestType
The kind of credential being validated — an agent API key or an agent access token.

Methods

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

Properties

$audience

When provided, the access token's `aud` claim is verified against this value. Tokens issued for a different resource are rejected.

public string|null $audience = null

$credential

The credential value to validate: the API key value for `api_key`, or the access token (JWT) for `access_token`.

public string $credential

Methods

jsonSerialize()

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

Search results