> ## Documentation Index
> Fetch the complete documentation index at: https://docs.baseten.co/llms.txt
> Use this file to discover all available pages before exploring further.

# List identity providers

> Lists your organization's identity providers.

> [!NOTE]
>
> [Workload identity federation](https://docs.baseten.co/organization/workload-identity.md) is in **Private Preview**.


## OpenAPI

````yaml get /v1/access/identity_providers
openapi: 3.1.0
info:
  description: REST API for management of Baseten resources
  title: Baseten management API
  version: 1.0.0
servers:
  - url: https://api.baseten.co
security:
  - BearerAuth: []
paths:
  /v1/access/identity_providers:
    get:
      summary: Lists identity providers
      description: >-
        Lists the organization's identity providers. Organization and team
        admins can list them.
      parameters:
        - name: cursor
          in: query
          required: false
          description: >-
            Opaque cursor returned by a previous page. Omit to fetch the first
            page.
          schema:
            anyOf:
              - type: string
              - type: 'null'
            default: null
            title: Cursor
        - name: limit
          in: query
          required: false
          description: Maximum number of items to return.
          schema:
            default: 100
            maximum: 1000
            minimum: 1
            title: Limit
            type: integer
        - name: name
          in: query
          required: false
          description: Only the provider with this name, ignoring case
          schema:
            anyOf:
              - minLength: 1
                type: string
              - type: 'null'
            default: null
            title: Name
        - name: predefined_kind
          in: query
          required: false
          description: Only this predefined provider's issuers
          schema:
            anyOf:
              - $ref: '#/components/schemas/PredefinedIdentityProviderKindV1'
              - type: 'null'
            default: null
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IdentityProvidersV1'
      x-codeSamples:
        - lang: bash
          source: |
            curl --request GET \
            --url https://api.baseten.co/v1/access/identity_providers \
            --header "Authorization: Bearer $BASETEN_API_KEY"
        - lang: python
          source: |-
            import requests
            import os
            API_KEY = os.environ.get("BASETEN_API_KEY", "<YOUR_API_KEY>")
            url = "https://api.baseten.co/v1/access/identity_providers"

            headers = {"Authorization": f"Bearer {API_KEY}"}

            response = requests.request(
                "GET",
                url,
                headers=headers,
                params={'cursor': None, 'name': None, 'predefined_kind': None}
            )

            print(response.text)
components:
  schemas:
    PredefinedIdentityProviderKindV1:
      description: An identity provider Baseten supports.
      enum:
        - GITHUB_ACTIONS
        - GCP
        - BASETEN
        - AWS_IAM
        - AWS_EKS
        - AZURE_MANAGED_IDENTITY_V1
        - AZURE_MANAGED_IDENTITY_V2
        - AZURE_AKS
      title: PredefinedIdentityProviderKindV1
      type: string
    IdentityProvidersV1:
      description: A page of identity providers.
      properties:
        items:
          description: Items in this page.
          items:
            $ref: '#/components/schemas/IdentityProviderV1'
          title: Items
          type: array
        pagination:
          $ref: '#/components/schemas/PaginationResponseV1'
          description: Pagination metadata for the page.
      required:
        - items
        - pagination
      title: IdentityProvidersV1
      type: object
    IdentityProviderV1:
      description: >-
        An OIDC issuer whose tokens the organization accepts for workload
        identity federation.
      properties:
        id:
          description: Identity provider ID
          title: Id
          type: string
        name:
          description: Name, unique in the organization
          title: Name
          type: string
        description:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: Description
          title: Description
        predefined:
          $ref: '#/components/schemas/PredefinedIdentityProviderConfigV1'
          description: Settings of the predefined provider
        created_by:
          description: ID of the user who added the provider
          title: Created By
          type: string
        created_at:
          description: Time the provider was added
          format: date-time
          title: Created At
          type: string
        updated_at:
          description: Time the provider was last updated
          format: date-time
          title: Updated At
          type: string
      required:
        - id
        - name
        - predefined
        - created_by
        - created_at
        - updated_at
      title: IdentityProviderV1
      type: object
    PaginationResponseV1:
      properties:
        has_more:
          description: Whether more items exist after this page.
          title: Has More
          type: boolean
        cursor:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: >-
            Opaque cursor to pass into the next request. Null when there is no
            next page.
          title: Cursor
      required:
        - has_more
      title: PaginationResponseV1
      type: object
    PredefinedIdentityProviderConfigV1:
      description: Settings of an identity provider that Baseten defines.
      properties:
        kind:
          $ref: '#/components/schemas/PredefinedIdentityProviderKindV1'
          description: Which predefined provider. Can't be changed.
        issuer_url:
          anyOf:
            - maxLength: 1024
              type: string
            - type: 'null'
          default: null
          description: >-
            The `iss` claim of the provider's tokens. When adding AWS IAM,
            Amazon EKS, Azure managed identity, or Azure Kubernetes Service,
            pass your issuer in the format the predefined identity providers
            endpoint shows; it's unique in the organization. Can't be passed for
            other providers, or changed. Always set in responses.
          title: Issuer Url
      required:
        - kind
      title: PredefinedIdentityProviderConfigV1
      type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Send `Authorization: Bearer <api_key>`. The legacy `Authorization:
        Api-Key <api_key>` scheme is also accepted.

````