---
title: "Get kernel"
method: GET
path: "/api/kernels/{namespace}/{repo}/revision/{rev}"
tags: ["kernels"]
---

# Get kernel

`GET /api/kernels/{namespace}/{repo}/revision/{rev}`

## Path parameters

- `namespace` string, required
- `repo` string, required
- `rev` string, required

## Response `200`

Kernel overview information

- object
  - `_id` string, required
  - `author` string, required
  - `downloads` number, required
  - `id` string, required
  - `isLikedByUser` boolean, required
  - `lastModified` string, date-time, required
  - `likes` number, required
  - `private` boolean, required
  - `repoType` 'kernel', required
  - `sha` string, required
  - `gated` union, required
    - false
    - 'auto' | 'manual'
  - `resourceGroup` object
    - `id` string, required — A hex string of 24 characters representing an ObjectId.
    - `name` string, required
    - `numUsers` number
  - `authorData` union
    - object
      - `_id` string, required — A hex string of 24 characters representing an ObjectId.
      - `avatarUrl` string, required
      - `fullname` string, required
      - `name` string, required
      - `isHf` boolean, required
      - `isHfAdmin` boolean, required
      - `isMod` boolean, required
      - `followerCount` number
      - `type` 'org', required
      - `plan` 'team' | 'enterprise' | 'plus' | 'academia'
      - `isUserFollowing` boolean
    - object
      - `_id` string, required — A hex string of 24 characters representing an ObjectId.
      - `avatarUrl` string, required
      - `fullname` string, required
      - `name` string, required
      - `isHf` boolean, required
      - `isHfAdmin` boolean, required
      - `isMod` boolean, required
      - `followerCount` number
      - `type` 'user', required
      - `isPro` boolean, required
      - `isUserFollowing` boolean
      - `primaryOrg` object
        - `avatarUrl` string, required
        - `fullname` string, required
        - `name` string, required
        - `type` 'org', required
        - `isHf` boolean, required
        - `isFollowing` boolean
        - `plan` 'team' | 'enterprise' | 'plus' | 'academia'
        - `details` string
        - `hasPrivateMembersList` boolean
        - `userRole` 'admin' | 'write' | 'contributor' | 'read' | 'no_access'
        - `numUsers` number
  - `files` string[]
  - `supportedDriverFamilies` string[]
  - `trustedPublisher` boolean

## Changes

- **2026-09-08** `bd17546f47b8` — 3 breaking, 4 info
  - added `subschema #1, subschema #2` to the `authorData` response property `oneOf` list for the response status `200`
  - the `repoType` response's property type changed from no type to `string` for status `200`
  - the `supportedDriverFamilies/items/` response's property type changed from no type to `string` for status `200`
  - added `subschema #1, subschema #2` to the `gated` response property `anyOf` list for the response status `200`
  - …3 more
- **2026-08-31** `b0a971016594` — 1 warning
  - added the new `webgpu` enum value to the `supportedDriverFamilies/items/` response property for the response status `200`
- **2026-08-13** `99cb19038135` — 5 warning, 1 info
  - added the new `admin` enum value to the `authorData/anyOf[subschema #2]/primaryOrg/userRole` response property for the response status `200`
  - added the new `contributor` enum value to the `authorData/anyOf[subschema #2]/primaryOrg/userRole` response property for the response status `200`
  - added the new `no_access` enum value to the `authorData/anyOf[subschema #2]/primaryOrg/userRole` response property for the response status `200`
  - added the new `read` enum value to the `authorData/anyOf[subschema #2]/primaryOrg/userRole` response property for the response status `200`
  - …2 more

[Change history](https://skmtc.dev/huggingface/apis/hub-api-endpoints/changes/api/kernels/:namespace/:repo/revision/:rev/get.md)

---

[API](https://skmtc.dev/huggingface/apis/hub-api-endpoints.md) · [All operations](https://skmtc.dev/huggingface/apis/hub-api-endpoints/llms.txt) · [OpenAPI document](https://skmtc.dev/huggingface/apis/hub-api-endpoints/revisions/b88d4a4da99f?raw)
