---
title: "Trusted publishers"
method: GET
path: "/api/organizations/{name}/service-accounts/{serviceAccountId}/trusted-publishers"
tags: ["service-accounts"]
---

# Trusted publishers

`GET /api/organizations/{name}/service-accounts/{serviceAccountId}/trusted-publishers`

## Request

- Base URL: `https://huggingface.co`
- URL: `https://huggingface.co/api/organizations/{name}/service-accounts/{serviceAccountId}/trusted-publishers`
- Auth: HTTP bearer

List the [trusted publishers](https://huggingface.co/docs/hub/trusted-publishers) of a service account.

## Path parameters

- `name` string, required
- `serviceAccountId` string, required

## Response `200`

Trusted publishers

- object[]
  - `_id` string, required: A hex string of 24 characters representing an ObjectId.
  - `issuerUrl` string, required
  - `claims` object, required
  - `configuredBy` 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
  - `createdAt` string, date-time, required
  - `lastUsedAt` string, date-time
  - `capabilities` string[]
  - `permissions` string[]

## Changes

- **2026-11-18** `96394c80e643`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/huggingface/apis/hub-api-endpoints/changes/api/organizations/:name/service-accounts/:serviceAccountId/trusted-publishers/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/175fe7d60d6b?raw)
