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

# SAML application callback

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

Handle the OIDC callback for SAML application and generate SAML response.

## Path parameters

- `id` string, required

## Query parameters

- `code` string
- `state` string
- `redirectUri` string
- `error` string
- `error_description` string

## Response `200`

Returns an HTML form that automatically submits the SAML response.

## Other responses

- `400` — Invalid request or OIDC error.
- `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)
