> ## 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.

# Verify an identity provider

> Checks an identity provider's settings without adding it.

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


## OpenAPI

````yaml post /v1/access/identity_providers/verify
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/verify:
    post:
      summary: Checks an identity provider before adding it
      description: >-
        Runs the checks that adding the identity provider runs, without adding
        it: the issuer's format, that the organization doesn't have it yet, and,
        for a provider with a per-customer issuer, that its signing keys can be
        fetched. A failed check returns 200 with `valid` false and the reason.
        Only organization admins can call this endpoint.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VerifyIdentityProviderRequestV1'
        required: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VerificationV1'
      x-codeSamples:
        - lang: bash
          source: |-
            curl --request POST \
            --url https://api.baseten.co/v1/access/identity_providers/verify \
            --header "Authorization: Bearer $BASETEN_API_KEY" \
            --data '{
              "predefined": {
                "kind": "AWS_EKS",
                "issuer_url": "https://oidc.eks.us-west-2.amazonaws.com/id/EXAMPLED539D4633E53DE1B71EXAMPLE"
              }
            }'
        - 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/verify"

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

            response = requests.request(
                "POST",
                url,
                headers=headers,
                json={'predefined': {'kind': 'AWS_EKS', 'issuer_url': 'https://oidc.eks.us-west-2.amazonaws.com/id/EXAMPLED539D4633E53DE1B71EXAMPLE'}}
            )

            print(response.text)
components:
  schemas:
    VerifyIdentityProviderRequestV1:
      additionalProperties: false
      description: Request to check an identity provider before adding it.
      properties:
        predefined:
          $ref: '#/components/schemas/VerifyPredefinedIdentityProviderConfigV1'
          description: The predefined provider to check, as you'd pass it when adding it
      required:
        - predefined
      title: VerifyIdentityProviderRequestV1
      type: object
    VerificationV1:
      description: Whether a create request would pass the checks the server runs on it.
      properties:
        valid:
          description: Whether the input passes every check
          title: Valid
          type: boolean
        error:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: >-
            Why the input fails, as creating it would report. Null when it's
            valid.
          title: Error
      required:
        - valid
      title: VerificationV1
      type: object
    VerifyPredefinedIdentityProviderConfigV1:
      additionalProperties: false
      description: Settings of the predefined identity provider to check.
      properties:
        kind:
          $ref: '#/components/schemas/PredefinedIdentityProviderKindV1'
          description: Which predefined provider
        issuer_url:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: >-
            The issuer to check, for AWS IAM, Amazon EKS, Azure managed
            identity, and Azure Kubernetes Service, in the format the predefined
            identity providers endpoint shows
          title: Issuer Url
      required:
        - kind
      title: VerifyPredefinedIdentityProviderConfigV1
      type: object
    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
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Send `Authorization: Bearer <api_key>`. The legacy `Authorization:
        Api-Key <api_key>` scheme is also accepted.

````