| Description | : Lists access tokens for the specified workspace ID. Supports OData query parameters: $select, $filter, $orderby, $top, and $skip. Default page size is 10. Use nextLink in response to fetch additional results. Requires Bearer JWT access token provided by Entra ID. |
| Reference | : Link ¶ |
⚶ Changes
{
"#id": "AccessTokens_List",
"Description": {
"new": "Lists access tokens for the specified workspace ID. Supports OData query parameters: $select, $filter, $orderby, $top, and $skip. Default page size is 10. Use nextLink in response to fetch additional results. Requires Bearer JWT access token provided by Entra ID.",
"old": "Lists access-tokens for the given workspace id. It can use OData query params like $select, $filter, $orderby, $top and $skip. The default page size is 10. Use nextLink in response to fetch more objects in the list. Authorization required is Bearer JWT Access token provided by EntraID."
},
"$parameters": [
{
"#name": "workspaceId",
"Description": {
"new": "The workspace ID in GUID format.",
"old": "The workspace id in GUID format."
}
}
],
"$responses": {
"200": {
"$properties": {
"value": {
"Description": {
"new": "Model of an access token linked to a workspace.",
"old": "Model of an access-token linked to a workspace."
},
"$properties": [
{
"#name": "id",
"Description": {
"new": "The access token ID in GUID format.",
"old": "The access-token id in GUID format."
}
},
{
"#name": "name",
"Description": {
"new": "The access token name.",
"old": "The access-token name."
}
},
{
"#name": "jwtToken",
"Description": {
"new": "The access token value in JWT format.",
"old": "The access-token value in JWT format."
}
},
{
"#name": "createdAt",
"Description": {
"new": "The access token creation timestamp in UTC.",
"old": "The access-token createdAt utcDateTime."
}
},
{
"#name": "expiryAt",
"Description": {
"new": "The access token expiration timestamp in UTC.",
"old": "The access-token expiryAt utcDateTime."
}
},
{
"#name": "state",
"Description": {
"new": "The access token state.",
"old": "The access-token state - Active | Expired."
},
"Enum": {
"new": [
[
"Active",
"The access token is active and can be used for authentication."
],
[
"Expired",
"The access token has expired and cannot be used for authentication."
]
],
"old": [
[
"Active",
"The access-token is Active."
],
[
"Expired",
"The access-token is Expired."
]
]
}
}
]
}
}
}
}
}
⚼ Request
GET:
/playwrightworkspaces/{workspaceId}/access-tokens
{
api-version:
string
,
workspaceId:
string
,
x-ms-client-request-id:
string
,
}
⚐ Response (200)
{
$headers:
{
,
x-ms-client-request-id:
string
,
}
$schema:
}
{
,
value:
[
]
,
{
,
id:
string
,
name:
string
,
jwtToken:
string
,
createdAt:
string
,
expiryAt:
string
,
state:
enum
,
}
nextLink:
string
,
}
⚐ Response (default)
{
$headers:
{
,
x-ms-error-code:
string
,
}
$schema:
}
{
,
error:
}
{
,
code:
string
,
message:
string
,
target:
string
,
details:
[
,
string
,
]
innererror:
}
{
,
code:
string
,
innererror:
string
,
}