---
title: "Get OpenAPI definition"
method: GET
path: "/v2/actor-builds/{buildId}/openapi.json"
tags: ["Actor builds"]
---

# Get OpenAPI definition

`GET /v2/actor-builds/{buildId}/openapi.json`

Get the OpenAPI definition for Actor builds. Two similar endpoints are available:

- [First endpoint](/api/v2/actor-openapi-json-get): Requires both `actorId` and `buildId`. Use `default` as the `buildId` to get the OpenAPI schema for the default Actor build.
- [Second endpoint](/api/v2/actor-build-openapi-json-get): 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.

:::note

You can also use the [`/api/v2/actor-openapi-json-get`](/api/v2/actor-openapi-json-get) endpoint to get the OpenAPI definition for a build.

:::

## Path parameters

- `buildId` string, required

## Response `200`

The OpenAPI specification document for the Actor build.

- object — A standard OpenAPI 3.x JSON document.

## Other responses

- `400` — Bad request - invalid input parameters or request body.
- `404` — Not found - the requested resource does not exist.
- `405` — Method not allowed.
- `429` — Too many requests - rate limit exceeded.

---

[API](https://skmtc.net/apify/apis/apify-api.md) · [All operations](https://skmtc.net/apify/apis/apify-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/apify/apify-api/versions/01a71794279b/schema)
