---
title: "Returns the SAML 2.0 Metadata XML."
method: GET
path: "/saml/metadata"
tags: ["saml"]
---

# Returns the SAML 2.0 Metadata XML.

`GET /saml/metadata`

The metadata XML can be downloaded or used for the SAML 2.0 Metadata URL discovery mechanism. This URL is the SAML 2.0 EntityID of the Service Provider implemented by this server.

## Query parameters

- `download` boolean

## Response `200`

A valid SAML 2.0 Metadata XML document. Should be cached according to the `Cache-Control` header and/or caching data specified in the document itself.

## Changes

- **2025-01-10** `61375ef4146d` — 2 info
  - the endpoint scheme security `APIKeyAuth` was added to the API
  - the endpoint scheme security `ApiKeyAuth` was removed from the API
- **2024-10-03** `b43a341e0cfe` — 1 info
  - the endpoint scheme security `ApiKeyAuth` was added to the API
- **2023-02-01** `144a34ca6d74` — 1 info
  - the endpoint scheme security `APIKeyAuth` was removed from the API

[Change history](https://skmtc.dev/supabase/apis/supabase-auth-rest-api/changes/saml/metadata/get.md)

---

[API](https://skmtc.dev/supabase/apis/supabase-auth-rest-api.md) · [All operations](https://skmtc.dev/supabase/apis/supabase-auth-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/supabase/supabase-auth-rest-api/revisions/2e2a74a7459f/schema)
