---
title: "Get an SSO connection's SAML SP metadata"
method: GET
path: "/v1/sso/connections/{connectionId}/metadata"
tags: ["SSO"]
---

# Get an SSO connection's SAML SP metadata

`GET /v1/sso/connections/{connectionId}/metadata`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/sso/connections/{connectionId}/metadata`
- Auth: HTTP bearer

Returns the generated Service Provider metadata for one SSO connection by id, when it uses SAML.

## Path parameters

- `connectionId` string, required

## Response `200`

SAML Service Provider metadata (an `EntityDescriptor` XML document) served as `application/xml`.

## Other responses

- `400`: Invalid request
- `401`: Unauthorized
- `403`: The caller needs the View single sign-on permission.
- `404`: The connection does not exist in this organization.

## Changes

- **2026-11-06** `133d32d0939a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/sso/connections/:connectionId/metadata/get.md)

---

[API](https://skmtc.dev/openworklabs/apis/den-api.md) - [All operations](https://skmtc.dev/openworklabs/apis/den-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openworklabs/apis/den-api/revisions/84fb0f99fb95?raw)
