> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.mixlayer.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.mixlayer.com/_mcp/server.

# Verify an OIDC issuer

POST https://api.mixlayer.com/v1/organizations/{org_id}/workload_identity/verify_oidc_issuer
Content-Type: application/json

Requires an organization owner or an API key with `api-admin`. Resolves and pins public DNS addresses, then validates OIDC discovery and its public JWKS without persisting changes.

Reference: https://docs.mixlayer.com/api-reference/platform-api/workload-identity-providers/verify-oidc-issuer-configuration

## Authentication

- `Authorization` header (bearer token, required) — Console user session, Mixlayer API key, or Mixlayer workload access token supplied as a Bearer token.

## Request

### Path parameters

- `org_id` (string, required) — Organization ID

### Body (application/json)

This endpoint expects a VerifyOidcIssuerRequest.

- `issuer_uri` (string, required) — Exact issuer URI to verify.

## Response

### 200

Verified OIDC issuer

- `data` (ApiDataResponseOidcIssuerVerificationData, required) — Successful verification of an OIDC issuer and its public JWKS.

## Errors

### 400 Bad Request Error

The request body contains malformed JSON or invalid values.

- `error` (ApiErrorBody, required) — Structured error details.

### 401 Unauthorized Error

Authentication is missing or invalid.

- `error` (ApiErrorBody, required) — Structured error details.

### 403 Forbidden Error

The authenticated principal cannot perform this operation.

- `error` (ApiErrorBody, required) — Structured error details.

### 413 Content Too Large Error

The request body exceeds the configured size limit.

- `error` (ApiErrorBody, required) — Structured error details.

### 415 Unsupported Media Type Error

The request does not have a JSON content type.

- `error` (ApiErrorBody, required) — Structured error details.

### 422 Unprocessable Entity Error

The JSON body does not match the request schema or contains a rejected field value.

- `error` (ApiErrorBody, required) — Structured error details.

### 500 Internal Server Error

An unexpected server or database error occurred.

- `error` (ApiErrorBody, required) — Structured error details.

## Types

### ApiDataResponseOidcIssuerVerificationData

Successful verification of an OIDC issuer and its public JWKS.

- `issuer_uri` (string, required) — Issuer URI confirmed by the discovery document.
- `jwks_key_count` (integer, required) — Number of valid public verification keys in the JWKS.
- `jwks_uri` (string, required) — Public JWKS URI returned by OIDC discovery.

### ApiErrorBody

Structured error details returned by the platform API.

- `message` (string, required) — Human-readable error message.
- `code` (string, optional, nullable) — Stable machine-readable error code, when available.
- `details` (any, optional) — Error-specific structured context, when available.

## Examples

**Request**

```json
{
  "issuer_uri": "string"
}
```

**Response**

```json
{
  "data": {
    "issuer_uri": "string",
    "jwks_key_count": 1,
    "jwks_uri": "string"
  }
}
```

**SDK Code**

```python
import requests

url = "https://api.mixlayer.com/v1/organizations/org_id/workload_identity/verify_oidc_issuer"

payload = { "issuer_uri": "string" }
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.mixlayer.com/v1/organizations/org_id/workload_identity/verify_oidc_issuer';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"issuer_uri":"string"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.mixlayer.com/v1/organizations/org_id/workload_identity/verify_oidc_issuer"

	payload := strings.NewReader("{\n  \"issuer_uri\": \"string\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.mixlayer.com/v1/organizations/org_id/workload_identity/verify_oidc_issuer")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"issuer_uri\": \"string\"\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.mixlayer.com/v1/organizations/org_id/workload_identity/verify_oidc_issuer")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"issuer_uri\": \"string\"\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.mixlayer.com/v1/organizations/org_id/workload_identity/verify_oidc_issuer', [
  'body' => '{
  "issuer_uri": "string"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```