From cf687b0d1b79b5a3ab66f4b9388a2c74d910b137 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anna=20Jungmannov=C3=A1?= Date: Tue, 24 Nov 2026 14:24:57 +0100 Subject: [PATCH 1/2] docs(openapi): describe when the Actor build OpenAPI definition endpoints need a token --- .../actor-builds@{buildId}@openapi.json.yaml | 10 ++++++++-- .../acts@{actorId}@builds@{buildId}@openapi.json.yaml | 9 +++++++-- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/apify-api/openapi/paths/actor-builds/actor-builds@{buildId}@openapi.json.yaml b/apify-api/openapi/paths/actor-builds/actor-builds@{buildId}@openapi.json.yaml index 33169673d5..5db6136043 100644 --- a/apify-api/openapi/paths/actor-builds/actor-builds@{buildId}@openapi.json.yaml +++ b/apify-api/openapi/paths/actor-builds/actor-builds@{buildId}@openapi.json.yaml @@ -9,7 +9,10 @@ get: - [Get OpenAPI definition of Actor build](/api/v2/actor-build-openapi-json-get) (`/v2/actor-builds/{buildId}/openapi.json`): Requires only `buildId`. Get the OpenAPI definition for a specific Actor build. - Authentication is based on the build's unique ID. No authentication token is required. + + For builds of public Actors, no authentication token is needed. For other Actors, you can call the endpoint + without a token only if the account that owns the build has [general resource access](https://docs.apify.com/account/collaboration/general-resource-access) + set to **Anyone with ID can read**. Otherwise, the token must have access to the build. :::note @@ -17,7 +20,6 @@ get: ::: operationId: actorBuild_openapi_json_get - security: [] parameters: - $ref: "../../components/parameters/runAndBuildParameters.yaml#/buildIdWithDefault" responses: @@ -31,6 +33,10 @@ get: description: A standard OpenAPI 3.x JSON document. "400": $ref: ../../components/responses/BadRequest.yaml + "401": + $ref: ../../components/responses/Unauthorized.yaml + "403": + $ref: ../../components/responses/Forbidden.yaml "404": $ref: ../../components/responses/NotFound.yaml "405": diff --git a/apify-api/openapi/paths/actors/acts@{actorId}@builds@{buildId}@openapi.json.yaml b/apify-api/openapi/paths/actors/acts@{actorId}@builds@{buildId}@openapi.json.yaml index 4b9446d39f..1963f7c49b 100644 --- a/apify-api/openapi/paths/actors/acts@{actorId}@builds@{buildId}@openapi.json.yaml +++ b/apify-api/openapi/paths/actors/acts@{actorId}@builds@{buildId}@openapi.json.yaml @@ -12,7 +12,13 @@ get: Get the OpenAPI definition for a specific Actor build. To fetch the default Actor build, simply pass `default` as the `buildId`. - Authentication is based on the build's unique ID. No authentication token is required. + + For builds of public Actors, no authentication token is needed. For other Actors: + + - With a build ID, you can call the endpoint without a token only if the account that owns the build has + [general resource access](https://docs.apify.com/account/collaboration/general-resource-access) + set to **Anyone with ID can read**. Otherwise, the token must have access to the build. + - With `default`, the token must have access to the Actor. :::note @@ -20,7 +26,6 @@ get: ::: operationId: actor_openapi_json_get - security: [] parameters: - $ref: "../../components/parameters/runAndBuildParameters.yaml#/actorId" - $ref: "../../components/parameters/runAndBuildParameters.yaml#/buildIdWithDefault" From 49a16c7988f91dd0f0ccf7ea4c33917953ba70a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anna=20Jungmannov=C3=A1?= Date: Tue, 24 Nov 2026 17:05:38 +0100 Subject: [PATCH 2/2] docs(openapi): shorten the token paragraphs [skip ci] --- .../actor-builds@{buildId}@openapi.json.yaml | 6 +++--- .../acts@{actorId}@builds@{buildId}@openapi.json.yaml | 10 ++++------ 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/apify-api/openapi/paths/actor-builds/actor-builds@{buildId}@openapi.json.yaml b/apify-api/openapi/paths/actor-builds/actor-builds@{buildId}@openapi.json.yaml index 5db6136043..a9853083f0 100644 --- a/apify-api/openapi/paths/actor-builds/actor-builds@{buildId}@openapi.json.yaml +++ b/apify-api/openapi/paths/actor-builds/actor-builds@{buildId}@openapi.json.yaml @@ -10,9 +10,9 @@ get: Get the OpenAPI definition for a specific Actor build. - For builds of public Actors, no authentication token is needed. For other Actors, you can call the endpoint - without a token only if the account that owns the build has [general resource access](https://docs.apify.com/account/collaboration/general-resource-access) - set to **Anyone with ID can read**. Otherwise, the token must have access to the build. + This endpoint does not require the authentication token if the Actor is public or if the build's owner has + [general resource access](https://docs.apify.com/account/collaboration/general-resource-access) set to + **Anyone with ID can read**. Otherwise, the token must have access to the build. :::note diff --git a/apify-api/openapi/paths/actors/acts@{actorId}@builds@{buildId}@openapi.json.yaml b/apify-api/openapi/paths/actors/acts@{actorId}@builds@{buildId}@openapi.json.yaml index 1963f7c49b..27224b6d93 100644 --- a/apify-api/openapi/paths/actors/acts@{actorId}@builds@{buildId}@openapi.json.yaml +++ b/apify-api/openapi/paths/actors/acts@{actorId}@builds@{buildId}@openapi.json.yaml @@ -13,12 +13,10 @@ get: To fetch the default Actor build, simply pass `default` as the `buildId`. - For builds of public Actors, no authentication token is needed. For other Actors: - - - With a build ID, you can call the endpoint without a token only if the account that owns the build has - [general resource access](https://docs.apify.com/account/collaboration/general-resource-access) - set to **Anyone with ID can read**. Otherwise, the token must have access to the build. - - With `default`, the token must have access to the Actor. + This endpoint does not require the authentication token if the Actor is public or, when you pass a build ID, + if the build's owner has [general resource access](https://docs.apify.com/account/collaboration/general-resource-access) + set to **Anyone with ID can read**. Otherwise, the token must have access to the build, or to the Actor when you + pass `default`. :::note