---
title: "Get the customization template for an OIDC subject claim for a repository"
method: GET
path: "/repos/{owner}/{repo}/actions/oidc/customization/sub"
tags: ["actions"]
---

# Get the customization template for an OIDC subject claim for a repository

`GET /repos/{owner}/{repo}/actions/oidc/customization/sub`

Gets the customization template for an OpenID Connect (OIDC) subject claim.

OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.

## Path parameters

- `owner` string, required
- `repo` string, required

## Response `200`

Status response

- OidcCustomSubRepo — Actions OIDC subject customization for a repository
  - `use_default` boolean, required — Whether to use the default template or not. If `true`, the `include_claim_keys` field is ignored.
  - `include_claim_keys` string[] — Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.

## Other responses

- `400` — Bad Request
- `404` — Resource not found

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-7.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-7/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-7/versions/5438365412fe/schema)
