Playwright Service API (preview:2025-07-01)

2025/06/26 • 7 new methods

AccessTokens_List (new)
Description 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.
Reference Link ¶

⚼ 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 ,
}
,
}
,
}
,
}
AccessTokens_Get (new)
Description Gets an access-token for the workspace with given access-token id. Authorization required is Bearer JWT Access token provided by EntraID.
Reference Link ¶

⚼ Request

GET:  /playwrightworkspaces/{workspaceId}/access-tokens/{accessTokenId}
{
api-version: string ,
workspaceId: string ,
accessTokenId: string ,
x-ms-client-request-id: string ,
}

⚐ Response (200)

{
$headers:
{
x-ms-client-request-id: string ,
}
,
$schema:
{
id: string ,
name: string ,
jwtToken: string ,
createdAt: string ,
expiryAt: string ,
state: enum ,
}
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
AccessTokens_CreateOrReplace (new)
Description Creates an access-token for the workspace with given access-token id. Authorization required is Bearer JWT Access token provided by EntraID.
Reference Link ¶

⚼ Request

PUT:  /playwrightworkspaces/{workspaceId}/access-tokens/{accessTokenId}
{
api-version: string ,
workspaceId: string ,
accessTokenId: string ,
x-ms-client-request-id: string ,
resource:
{
id: string ,
name: string ,
jwtToken: string ,
createdAt: string ,
expiryAt: string ,
state: enum ,
}
,
}

⚐ Response (200)

{
$headers:
{
x-ms-client-request-id: string ,
}
,
$schema:
{
id: string ,
name: string ,
jwtToken: string ,
createdAt: string ,
expiryAt: string ,
state: enum ,
}
,
}

⚐ Response (201)

{
$headers:
{
x-ms-client-request-id: string ,
}
,
$schema:
{
id: string ,
name: string ,
jwtToken: string ,
createdAt: string ,
expiryAt: string ,
state: enum ,
}
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
AccessTokens_Delete (new)
Description Deletes an access-token for the workspace with given access-token id. Authorization required is Bearer JWT Access token provided by EntraID.
Reference Link ¶

⚼ Request

DELETE:  /playwrightworkspaces/{workspaceId}/access-tokens/{accessTokenId}
{
api-version: string ,
workspaceId: string ,
accessTokenId: string ,
x-ms-client-request-id: string ,
}

⚐ Response (204)

{
x-ms-client-request-id: string ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
Workspaces_GetBrowsers (new)
Description Gets remote browsers corresponding to given workspace id and redirects the client for executing Playwright scripts. Authorization required is Bearer JWT Access token provided by EntraID or Playwright Service.
Reference Link ¶

⚼ Request

GET:  /playwrightworkspaces/{workspaceId}/browsers
{
api-version: string ,
workspaceId: string ,
os: string ,
runId: string ,
x-ms-client-request-id: string ,
}

⚐ Response (302)

{
location: string ,
x-ms-client-request-id: string ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
TestRuns_List (new)
Description Lists test-runs for the given workspace id. It can use OData query params like $filter, $top etc. 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 or Playwright Service.
Reference Link ¶

⚼ Request

GET:  /playwrightworkspaces/{workspaceId}/test-runs
{
api-version: string ,
workspaceId: string ,
x-ms-client-request-id: string ,
}

⚐ Response (200)

{
$headers:
{
x-ms-client-request-id: string ,
}
,
$schema:
{
value:
[
{
id: string ,
displayName: string ,
creatorId: string ,
creatorName: string ,
config:
{
framework:
{
name: string ,
version: string ,
runnerName: string ,
}
,
sdkLanguage: enum ,
maxWorkers: integer ,
}
,
ciConfig:
{
providerName: string ,
branch: string ,
author: string ,
commitId: string ,
revisionUrl: string ,
}
,
summary:
{
status: enum ,
billableTime: integer ,
numBrowserSessions: integer ,
maxConcurrentBrowserSessions: integer ,
startTime: string ,
endTime: string ,
duration: integer ,
errorMessages:
[
string ,
]
,
}
,
}
,
]
,
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 ,
}
,
}
,
}
,
}
TestRuns_CreateOrUpdate (new)
Description Creates/Updates a test-run for the workspace with given test-run id. Authorization required is Bearer JWT Access token provided by EntraID or Playwright Service.
Reference Link ¶

⚼ Request

PATCH:  /playwrightworkspaces/{workspaceId}/test-runs/{runId}
{
api-version: string ,
workspaceId: string ,
runId: string ,
x-ms-client-request-id: string ,
resource:
{
displayName: string ,
config:
{
framework:
{
name: string ,
version: string ,
runnerName: string ,
}
,
sdkLanguage: enum ,
maxWorkers: integer ,
}
,
ciConfig:
{
providerName: string ,
branch: string ,
author: string ,
commitId: string ,
revisionUrl: string ,
}
,
}
,
}

⚐ Response (200)

{
$headers:
{
x-ms-client-request-id: string ,
}
,
$schema:
{
id: string ,
displayName: string ,
creatorId: string ,
creatorName: string ,
config:
{
framework:
{
name: string ,
version: string ,
runnerName: string ,
}
,
sdkLanguage: enum ,
maxWorkers: integer ,
}
,
ciConfig:
{
providerName: string ,
branch: string ,
author: string ,
commitId: string ,
revisionUrl: string ,
}
,
summary:
{
status: enum ,
billableTime: integer ,
numBrowserSessions: integer ,
maxConcurrentBrowserSessions: integer ,
startTime: string ,
endTime: string ,
duration: integer ,
errorMessages:
[
string ,
]
,
}
,
}
,
}

⚐ Response (201)

{
$headers:
{
x-ms-client-request-id: string ,
}
,
$schema:
{
id: string ,
displayName: string ,
creatorId: string ,
creatorName: string ,
config:
{
framework:
{
name: string ,
version: string ,
runnerName: string ,
}
,
sdkLanguage: enum ,
maxWorkers: integer ,
}
,
ciConfig:
{
providerName: string ,
branch: string ,
author: string ,
commitId: string ,
revisionUrl: string ,
}
,
summary:
{
status: enum ,
billableTime: integer ,
numBrowserSessions: integer ,
maxConcurrentBrowserSessions: integer ,
startTime: string ,
endTime: string ,
duration: integer ,
errorMessages:
[
string ,
]
,
}
,
}
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}