GitHub Oidc API

The Oidc API from GitHub — 1 operation(s) for oidc.

GitHub OpenAPI

Operations 8

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

1 of 8 operations are conformant: apis.io called them with no credentials and the responses matched this contract. Checked 2026-11-12. how this works · status file

GET /enterprises/{enterprise}/actions/oidc/customization/properties/repo List OIDC custom property inclusions for an enterprise #
POST /enterprises/{enterprise}/actions/oidc/customization/properties/repo Create an OIDC custom property inclusion for an enterprise #
DELETE /enterprises/{enterprise}/actions/oidc/customization/properties/repo/{custom_property_name} Delete an OIDC custom property inclusion for an enterprise #
GET /orgs/{org}/actions/oidc/customization/properties/repo List OIDC custom property inclusions for an organization conformant #
POST /orgs/{org}/actions/oidc/customization/properties/repo Create an OIDC custom property inclusion for an organization #
DELETE /orgs/{org}/actions/oidc/customization/properties/repo/{custom_property_name} Delete an OIDC custom property inclusion for an organization #
GET /orgs/{org}/actions/oidc/customization/sub Get an org's OIDC subject claim template · Get the customization template for an OIDC subject claim for an organization #
Ask an LLM
“Which claim keys make up the OIDC subject claim for my organization's Actions tokens?”
“How is the OpenID Connect subject claim currently customized for our GitHub org?”
Tell an agent
Show the OIDC subject claim customization template for the {org} organization.
Check which claim keys {org} currently includes in its OIDC sub claim.
PUT /orgs/{org}/actions/oidc/customization/sub Set an org's OIDC subject claim template · Set the customization template for an OIDC subject claim for an organization #
Ask an LLM
“Can I change which claims go into the OIDC subject claim for my org's workflows?”
“How do I customize the OpenID Connect sub claim so cloud trust policies can match on repo and environment?”
Tell an agent
Set the OIDC subject claim template for {org} to include the claim keys {include_claim_keys}.
Update the {org} organization's OIDC sub claim customization to use {include_claim_keys}.

Documentation

📖
Documentation
https://docs.github.com/en/rest/apps
📖
Documentation
https://docs.github.com/en/rest/codes-of-conduct/codes-of-conduct
📖
Documentation
https://docs.github.com/en/rest/emojis
📖
Documentation
https://docs.github.com/en/rest/gitignore
📖
Documentation
https://docs.github.com/en/rest/apps/installations
📖
Documentation
https://docs.github.com/en/rest/enterprise-admin
📖
Documentation
https://docs.github.com/en/rest/activity/events
📖
Documentation
https://docs.github.com/en/rest/orgs
📖
Documentation
https://docs.github.com/en/rest/rate-limit
📖
Documentation
https://docs.github.com/en/enterprise-cloud@latest/rest/scim
📖
Documentation
https://docs.github.com/en/rest/using-the-rest-api/getting-started-with-the-rest-api
📖
Documentation
https://docs.github.com/en/rest/teams
📖
Documentation
https://docs.github.com/en/rest/meta/meta
📖
Documentation
https://docs.github.com/en/rest/actions
📖
Documentation
https://docs.github.com/en/rest/branches
📖
Documentation
https://docs.github.com/en/rest/code-scanning
📖
Documentation
https://docs.github.com/en/rest/collaborators
📖
Documentation
https://docs.github.com/en/rest/dependabot
📖
Documentation
https://docs.github.com/en/rest/webhooks
📖
Documentation
https://docs.github.com/en/rest/pulls
📖
Documentation
https://docs.github.com/en/rest/git/tags
📖
Documentation
https://docs.github.com/en/rest/repos/autolinks
📖
Documentation
https://docs.github.com/en/rest/collaborators/invitations

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/github:github-oidc-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

github-oidc-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Github Oidc API
  version: 1.1.4
  contact:
    name: Support
    url: https://support.github.com/contact?tags=dotcom-rest-api
  license:
    name: MIT
    url: https://spdx.org/licenses/MIT
  termsOfService: https://docs.github.com/articles/github-terms-of-service
  x-github-plan: api.github.com
  description: 'Operations tagged oidc across 2 of this provider''s published API definitions: github-github-full.yml, github-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.github.com
tags:
- name: OIDC
  description: Endpoints to manage GitHub OIDC configuration using the REST API.
paths:
  /enterprises/{enterprise}/actions/oidc/customization/properties/repo:
    get:
      summary: List OIDC custom property inclusions for an enterprise
      description: 'Lists the repository custom properties that are included in the OIDC token for repository actions in an enterprise.


        OAuth app tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint.


        > [!NOTE]

        > The "Enterprise administration" fine-grained permission is not available to callers. To use this API, you must use an OAuth app token or a personal access token (classic).'
      tags:
      - OIDC
      operationId: oidc/list-oidc-custom-property-inclusions-for-enterprise
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/rest/actions/oidc#list-oidc-custom-property-inclusions-for-an-enterprise
      parameters:
      - $ref: '#/components/parameters/enterprise'
      responses:
        '200':
          description: A JSON array of OIDC custom property inclusions
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/oidc-custom-property-inclusion'
              examples:
                default:
                  value:
                  - custom_property_name: environment
                    inclusion_source: enterprise
                  - custom_property_name: team
                    inclusion_source: enterprise
        '404':
          $ref: '#/components/responses/not_found'
        '403':
          $ref: '#/components/responses/forbidden'
      x-github:
        enabledForGitHubApps: true
        githubCloudOnly: false
        category: actions
        subcategory: oidc
    post:
      summary: Create an OIDC custom property inclusion for an enterprise
      description: 'Adds a repository custom property to be included in the OIDC token for repository actions in an enterprise.


        OAuth app tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint.


        > [!NOTE]

        > The "Enterprise administration" fine-grained permission is not available to callers. To use this API, you must use an OAuth app token or a personal access token (classic).'
      tags:
      - OIDC
      operationId: oidc/create-oidc-custom-property-inclusion-for-enterprise
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/rest/actions/oidc#create-an-oidc-custom-property-inclusion-for-an-enterprise
      parameters:
      - $ref: '#/components/parameters/enterprise'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/oidc-custom-property-inclusion-input'
            examples:
              default:
                $ref: '#/components/examples/oidc-custom-property-inclusion'
      responses:
        '201':
          description: OIDC custom property inclusion created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/oidc-custom-property-inclusion'
              examples:
                default:
                  $ref: '#/components/examples/oidc-custom-property-inclusion'
        '400':
          description: Invalid input
        '403':
          $ref: '#/components/responses/forbidden'
        '422':
          description: Property inclusion already exists
      x-github:
        enabledForGitHubApps: true
        githubCloudOnly: false
        category: actions
        subcategory: oidc
    servers:
    - url: https://api.github.com
  /enterprises/{enterprise}/actions/oidc/customization/properties/repo/{custom_property_name}:
    delete:
      summary: Delete an OIDC custom property inclusion for an enterprise
      description: 'Removes a repository custom property from being included in the OIDC token for repository actions in an enterprise.


        OAuth app tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint.


        > [!NOTE]

        > The "Enterprise administration" fine-grained permission is not available to callers. To use this API, you must use an OAuth app token or a personal access token (classic).'
      tags:
      - OIDC
      operationId: oidc/delete-oidc-custom-property-inclusion-for-enterprise
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/rest/actions/oidc#delete-an-oidc-custom-property-inclusion-for-an-enterprise
      parameters:
      - $ref: '#/components/parameters/enterprise'
      - name: custom_property_name
        in: path
        required: true
        schema:
          type: string
        description: The name of the custom property to remove from OIDC token inclusion
      responses:
        '204':
          description: OIDC custom property inclusion deleted
        '400':
          description: Invalid input
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          description: Property inclusion not found
      x-github:
        enabledForGitHubApps: true
        githubCloudOnly: false
        category: actions
        subcategory: oidc
    servers:
    - url: https://api.github.com
  /orgs/{org}/actions/oidc/customization/properties/repo:
    get:
      summary: List OIDC custom property inclusions for an organization
      description: 'Lists the repository custom properties that are included in the OIDC token for repository actions in an organization.


        OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.'
      tags:
      - OIDC
      operationId: oidc/list-oidc-custom-property-inclusions-for-org
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/rest/actions/oidc#list-oidc-custom-property-inclusions-for-an-organization
      parameters:
      - $ref: '#/components/parameters/org'
      responses:
        '200':
          description: A JSON array of OIDC custom property inclusions
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/oidc-custom-property-inclusion'
              examples:
                default:
                  value:
                  - property_name: environment
                  - property_name: team
        '404':
          $ref: '#/components/responses/not_found'
        '403':
          $ref: '#/components/responses/forbidden'
      x-github:
        enabledForGitHubApps: true
        category: actions
        subcategory: oidc
    post:
      summary: Create an OIDC custom property inclusion for an organization
      description: 'Adds a repository custom property to be included in the OIDC token for repository actions in an organization.


        OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.'
      tags:
      - OIDC
      operationId: oidc/create-oidc-custom-property-inclusion-for-org
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/rest/actions/oidc#create-an-oidc-custom-property-inclusion-for-an-organization
      parameters:
      - $ref: '#/components/parameters/org'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/oidc-custom-property-inclusion-input'
            examples:
              default:
                $ref: '#/components/examples/oidc-custom-property-inclusion'
      responses:
        '201':
          description: OIDC custom property inclusion created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/oidc-custom-property-inclusion'
              examples:
                default:
                  $ref: '#/components/examples/oidc-custom-property-inclusion'
        '400':
          description: Invalid input
        '403':
          $ref: '#/components/responses/forbidden'
        '422':
          description: Property inclusion already exists
      x-github:
        enabledForGitHubApps: true
        category: actions
        subcategory: oidc
    servers:
    - url: https://api.github.com
  /orgs/{org}/actions/oidc/customization/properties/repo/{custom_property_name}:
    delete:
      summary: Delete an OIDC custom property inclusion for an organization
      description: 'Removes a repository custom property from being included in the OIDC token for repository actions in an organization.


        OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.'
      tags:
      - OIDC
      operationId: oidc/delete-oidc-custom-property-inclusion-for-org
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/rest/actions/oidc#delete-an-oidc-custom-property-inclusion-for-an-organization
      parameters:
      - $ref: '#/components/parameters/org'
      - name: custom_property_name
        in: path
        required: true
        schema:
          type: string
        description: The name of the custom property to remove from OIDC token inclusion
      responses:
        '204':
          description: OIDC custom property inclusion deleted
        '400':
          description: Invalid input
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          description: Property inclusion not found
      x-github:
        enabledForGitHubApps: true
        category: actions
        subcategory: oidc
    servers:
    - url: https://api.github.com
  /orgs/{org}/actions/oidc/customization/sub:
    get:
      summary: Get the customization template for an OIDC subject claim for an organization
      description: 'Gets the customization template for an OpenID Connect (OIDC) subject claim.


        OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.'
      tags:
      - OIDC
      operationId: oidc/get-oidc-custom-sub-template-for-org
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/rest/actions/oidc#get-the-customization-template-for-an-oidc-subject-claim-for-an-organization
      parameters:
      - $ref: '#/components/parameters/org'
      responses:
        '200':
          description: A JSON serialized template for OIDC subject claim customization
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/oidc-custom-sub'
              examples:
                default:
                  $ref: '#/components/examples/oidc-custom-sub'
      x-github:
        enabledForGitHubApps: true
        category: actions
        subcategory: oidc
    put:
      summary: Set the customization template for an OIDC subject claim for an organization
      description: 'Creates or updates the customization template for an OpenID Connect (OIDC) subject claim.


        OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.'
      tags:
      - OIDC
      operationId: oidc/update-oidc-custom-sub-template-for-org
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/rest/actions/oidc#set-the-customization-template-for-an-oidc-subject-claim-for-an-organization
      parameters:
      - $ref: '#/components/parameters/org'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              title: Actions OIDC Subject customization
              description: Actions OIDC Subject customization
              type: object
              properties:
                include_claim_keys:
                  description: Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.
                  type: array
                  items:
                    type: string
                use_immutable_subject:
                  description: Whether to opt in to the immutable OIDC subject claim format for the organization. When `true`, new OIDC tokens will use a stable, repository-ID-based `sub` claim instead of the name-based format.
                  type: boolean
            examples:
              default:
                $ref: '#/components/examples/oidc-custom-sub'
      responses:
        '201':
          description: Empty response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/empty-object'
              examples:
                default:
                  value: null
        '404':
          $ref: '#/components/responses/not_found'
        '403':
          $ref: '#/components/responses/forbidden'
      x-github:
        enabledForGitHubApps: true
        previews: []
        category: actions
        subcategory: oidc
    servers:
    - url: https://api.github.com
components:
  schemas:
    oidc-custom-property-inclusion:
      title: Actions OIDC Custom Property Inclusion
      description: An OIDC custom property inclusion for repository properties
      type: object
      properties:
        custom_property_name:
          type: string
          description: The name of the custom property that is included in the OIDC token
        inclusion_source:
          type: string
          description: Whether the inclusion was defined at the organization or enterprise level
          enum:
          - organization
          - enterprise
          example: organization
      required:
      - custom_property_name
      - inclusion_source
    oidc-custom-sub:
      title: Actions OIDC Subject customization
      description: Actions OIDC Subject customization
      type: object
      properties:
        include_claim_keys:
          description: Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.
          type: array
          items:
            type: string
        use_immutable_subject:
          description: Whether to opt in to the immutable OIDC subject claim format for the organization. When `true`, new OIDC tokens will use a stable, repository-ID-based `sub` claim instead of the name-based format.
          type: boolean
      required:
      - include_claim_keys
    basic-error:
      title: Basic Error
      description: Basic Error
      type: object
      properties:
        message:
          type: string
        documentation_url:
          type: string
        url:
          type: string
        status:
          type: string
    empty-object:
      title: Empty Object
      description: An object without any properties.
      type: object
      properties: {}
      additionalProperties: false
    oidc-custom-property-inclusion-input:
      title: Actions OIDC Custom Property Inclusion Input
      description: Input for creating an OIDC custom property inclusion
      type: object
      properties:
        custom_property_name:
          type: string
          description: The name of the custom property to include in the OIDC token
      required:
      - custom_property_name
    oidc-custom-property-inclusion_2:
      title: Actions OIDC Custom Property Inclusion
      description: An OIDC custom property inclusion for repository properties
      type: object
      properties:
        custom_property_name:
          type: string
          description: The name of the custom property that is included in the OIDC token
        inclusion_source:
          type: string
          description: Whether the inclusion was defined at the organization or enterprise level
          enum:
          - organization
          - enterprise
          examples:
          - organization
      required:
      - custom_property_name
      - inclusion_source
  examples:
    oidc-custom-sub:
      value:
        include_claim_keys:
        - repo
        - context
    oidc-custom-property-inclusion:
      value:
        custom_property_name: environment
  responses:
    not_found:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/basic-error'
    forbidden:
      description: Forbidden
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/basic-error'
  parameters:
    org:
      name: org
      description: The organization name. The name is not case sensitive.
      in: path
      required: true
      schema:
        type: string
    enterprise:
      name: enterprise
      description: The slug version of the enterprise name.
      in: path
      required: true
      schema:
        type: string
externalDocs:
  description: GitHub v3 REST API
  url: https://docs.github.com/rest/
x-refined-from:
- github-github-full.yml
- github-openapi.json