---
title: "Read a revision"
method: GET
path: "/packages/{id}/revisions/{revisionId}"
tags: ["Package"]
---

# Read a revision

`GET /packages/{id}/revisions/{revisionId}`

## Request

- Base URL: `https://api.nullplatform.com`
- URL: `https://api.nullplatform.com/packages/{id}/revisions/{revisionId}`
- Auth: HTTP bearer

Read one revision of a package: its version and bill of materials.

## Path parameters

- `id` string, uuid, required
- `revisionId` string, uuid, required

## Response `200`

The package revision.

- PackageRevision
  - `id` string, uuid: The revision id. This is what a service's `package_revision_id` points at.
  - `package_id` string, uuid: The package this revision belongs to.
  - `version` string: Semver of this revision.
  - `parent_revision_id` string, uuid, nullable: The package's latest revision when this one was published.
  - `parent_version` string, nullable: Semver of parent_revision_id, or null for a first revision.
  - `slug` string: The package's slug.
  - `name` string: The package's name.
  - `components` PackageComponent[]: The revision's bill of materials. Omitted on `GET /packages/{id}/revisions` unless you filter by `name`.
    - `name` string, required: Name of the component within the revision, for example "spec" or "runtime:main". Unique within the revision; opaque to the package server.
    - `resource_type` string, required: Routing key that identifies which owning service resolves resource_id, for example "service_specification", "action_specification", "link_specification" or "artifact".
    - `resource_id` string, uuid, required: UUID of the underlying resource at its owning service.
    - `resource_revision_id` string, uuid, required: UUID of the revision this component pins: a specification snapshot for service, action and link specifications, or an artifact revision for artifacts.
    - `parent_id` string, uuid, nullable: The resource_id of the parent component within this revision. Required for action_specification components (the parent is a service or link specification component) and link_specification components (the parent is a service specification component); null for service_specification and artifact components.
  - `created_at` string, date-time: When the revision was published.
  - `created_by` string, nullable: The user who published the revision, or null.

## Other responses

- `4XX`: Client error responses due to invalid input, missing parameters or insufficient permissions.
- `5XX`: Server error responses.

## Changes

- **2026-09-17** `43b3c1ecdfd8`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/nullplatform/apis/nullplatform-api/changes/packages/:id/revisions/:revisionId/get.md)

---

[API](https://skmtc.dev/nullplatform/apis/nullplatform-api.md) - [All operations](https://skmtc.dev/nullplatform/apis/nullplatform-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nullplatform/apis/nullplatform-api/revisions/d3f66bc633d4?raw)
