---
title: "Get SAML application metadata"
method: GET
path: "/api/saml-applications/{id}/metadata"
tags: ["SAML applications"]
---

# Get SAML application metadata

`GET /api/saml-applications/{id}/metadata`

Get the SAML metadata XML for the application.

## Path parameters

- `id` string, required

## Response `200`

The SAML metadata XML.

- string

## Other responses

- `400` — Bad Request
- `404` — The SAML application was not found.

---

[API](https://skmtc.net/logto/apis/logto-api-references.md) · [All operations](https://skmtc.net/logto/apis/logto-api-references/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/logto/logto-api-references/versions/a163dc77d842/schema)
